I have a question about divs
with imagens
inside, in this case, the question is:
- If I have a
div
, with400x400
, how do I make an image with200x400
(or other resolution) occupy the total size ofdiv
, without distortingimagem
, and without usebackground
ofcss
For example:
* the first imagem
is how the final result would be, as stated, the second is how it normally looks, the imagem
is placed in div
, always with whitespace, vertical
, as horizontal
, and the image should be adjusted according to the size of div
.