0
How do I change the size of an image according to the device? I have the code below:
<div class="header-outs" id="header">
<div class="slider">
<div class="callbacks_container">
<ul class="rslides" id="slider4">
<li>
<div class="slider-img one-img">
<div class="container">
<div class="slider-info ">
<div class="bottom-info">
<div class="col-mb-4">
<img src="images/logo.png" class="logoMarca">
</div>
<div class="col-md-12 text-center">
<p style="font-size: 48px;
line-height: 80px;
font-weight: 800;
margin-top: -12px;
text-shadow: 2px 2px #000;">SEJA BEM-VINDO <br>AO NOSSO SITE</p>
</div>
</div>
</div>
</div>
</div>
</li>
....
In CSS I tried that way, but I couldn’t:
.logoMarca{
width: 400px;
margin-top: -150px;
}
@media(max-width:991px){
width: 280px;
margin-top: -100px;
}
I’m using Bootstrap 4 and I’ve tried img-Fluid, but nothing!
Enter full text markup (HTML), and don’t forget CSS either...
– user148754
Hello Thiago. HTML code has more than 600 lines and CSS more than 1900. The section I passed is isolated, that is, before it comes the beginning of the body tag. If it makes it necessary to put all this?
– user24136
When I say everything is only the part related to your question, for example in the HTML above can the code until it closes the first DIV, so the CSS you put the classes you used in the DIVS parent image.
– user148754