6
I have the following code:
<div class="container-fluid">
<h1> Áreas de Atuação </h1>
<div id="hr-atuacao">
<hr>
<div class="card-columns">
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
<a id="botao1-card" href="#" class="btn btn-primary">Saiba Mais</a>
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
</div>
</div>
</div>
</div>
<div class="card-columns">
<div class="card-img">
<img id="civil" class="img-fluid" src="Imagens/saiba-mais-1.png">
<div class="col-xs-12 hidden-sm hidden-md hidden-lg">
<div class="col-xs-12 hidden-sm hidden-md hidden-lg">
<img class="img-responsive" src="../../card.jpg" /> <!--Mobile-->
</div>
</div>
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
</div>
</div>
</div>
</div>
<div class="card-columns">
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
<div class="card-img">
<img class="img-fluid" src="Imagens/saiba-mais-1.png">
</div>
</div>
</div>
</div>
</div>
</div>
Is there any way when I change the screen to mobile devices, the image that appears inside the cards change? I needed to put a smaller and different image when this happens but I have no idea how to do it.
PS: In HTML5 theory you could use SRCSET and SIZES to exchange without JS https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img
– Bacco