D
D
DTX2016-03-30 14:38:08
HTML
DTX, 2016-03-30 14:38:08

Is it possible to make an adaptive image through flexbox?

The task is next. There are two blocks on one line. Text on the left, picture on the right.
The height of the image should be equal to the left block. The problem is that when the text runs out of space, it wraps to the next line. Is it possible to make a picture imitate it?)
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyber_bober, 2016-03-30
@Cyber_bober

Emulate the same height of the blocks using js or create a container in which you will wrap these blocks, and set the height of the block to be equal to the height of the container.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question