A
A
Artem Maximum2015-10-19 14:33:57
css
Artem Maximum, 2015-10-19 14:33:57

How to implement two fluid columns, one of which depends on the content of the second in width?

Hello, the following problem appeared, to which I could not find an answer, so I want to ask experienced people for advice.
There is a container for two blocks, the first of which is search block #1 and the second block is for icons #2.
it is necessary to make the layout with the expectation that if the number of icons is reduced or added in the second block, the first block would automatically adjust its width.
ac40328c79f74277a09a250e609251c3.png
If anyone knows how this is implemented, please help with advice. If possible, a cross-browser solution is desirable.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail, 2015-10-19
Chirskiy @chirskiy_mixail

Here is an example
Try adding icons to see the result

A
Alexander, 2015-10-19
@alexis78i

display:table for the parent, and then a fixed-width display:table-cell for one of the columns

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question