1
I have a problem with the responsive version of the navbar. I put a background image as below:
For that, I did it that way:
.navbar{
padding: 1.3rem 1rem;
background: url('../imagens/barra-superior.png') no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
But when I try to visualize in the responsive, this image "stretches". See:
The dark gray background of the menu, is like this:
@media only screen and (max-width: 600px) {
.navbar .navbar-collapse{
z-index: 999999999999999999999999999999;
background-color: #343A40;
padding: 10px;
margin-top: 20px;
}
}
How do I make sure the image doesn’t stretch and stay on the gray background picking from end to end?
Hello Renan. Welcome! Unfortunately your tip did not work, I removed the
padding: 10px
, but the problem persists.– user24136
You have a link so we can see the project?
– Renan Gonçalves
It is running locally.
– user24136