Fixed size image like?

8035ba1852b54c2a95b0a67b499eb2dc.png
Question about the pictures comments, I dropped a fairly large sized pictures and need to shove them the question
You need to cut at a fixed size? it can be done differently?
July 9th 19 at 13:32
3 answers
July 9th 19 at 13:34
Stepan Spanov anything like this :)
Leading experts of Google - they are ) And building codes all do in time ) - lily.Kozey commented on July 9th 19 at 13:37
July 9th 19 at 13:36
Generally it depends on what the job is. If you do good - better larger photos not to put on avatars and pre-trimmed. But if the job is just in the layout, then I would do this:
1) I Wrapped the image in div blocks, which would be the right size (in pixels or percent, whatever), for example
div{
 width: 100px
 height: 170px
}

2) the Images inside the blocks would be set
img{
width:100%;
}
And what do you give a fixed height from a diva? - lily.Kozey commented on July 9th 19 at 13:39
: Yeah, I guess the image can climb over the block - Willie.Bruen71 commented on July 9th 19 at 13:42
July 9th 19 at 13:38
img{
 width: Npx;
height:auto;
}

Or Vice versa
img{
 width: auto;
 height: Npx;
}

Find more questions by tags CSSJPEGHTML