2
img{
width: 100%;
max-width: 300px; /* coloque aqui o tamanho real da imagem em px */
}
So the image will suit your box, but your box should also be 100%.
Example:
<div style="width: 100%">
<img style="width: 100%; max-width: 300px;" src="imagem.png">
</div>
I made CSS Inline to show you, but it can be the other way.
So Diego, it even works! But the texts would be variable, needed the texts to fit as the page was resized.
– Bruno Cesar
Use
media queries
, or leave the fountain too with100%
.font-size: 100%
. You didn’t explain it in your question, you just talked about image...– Diego Souza
hello, you have to do it a la pata...@media screen and (max-width: 640px) { } something of this genre and put this code you want
– usersantos
use of media queries can solve your problem
– DiChrist