M
M
megamutex2015-11-24 11:54:19
css
megamutex, 2015-11-24 11:54:19

How to make elements not change structure when the screen is reduced?

Good afternoon. There is a block in which there are 2 pictures in a row. Each image has a property max-width:100%and float:left(or display:inline-block)
How can I make the images shrink in width and height, respectively, when the browser size is reduced, without changing the structure? Now, when decreasing, the extreme picture moves down to the 2nd line. Thank you.
9a0cfa1bc49640ecabbea1338d21a841.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Pyrkin, 2015-11-24
@megamutex

make images 50% wide

A
Alexander Sharomet, 2015-11-24
@sharomet

For the picture

display: block;
height: auto;
max-width: 100%;

And the pictures are generally desirable in separate blocks of 50% in width. like in bootstrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question