Jump to content
  • 0

Как сделать, чтобы два div-а тянулись один за другим


RacerChampion1
 Share

Question

Есть один внешний div, в него вложены два других, которые образуют собой две колонки. Мне нужно, чтобы при увеличении высоты одной из колонок увеличивалась высота другой. Сейчас у меня в зависимости от количества материала увеличивается только одна из двух.

Реализовать попробывал задав внешнему слою height: auto, остальным задал height: 100%. По логике вроде нормально все - задаем auto размер для внешнего слоя, и если одна из колонок тянется, то соответственно размеры внешнего становятся больше, и размеры другой колонки занимают все свободное пространство.

Но не работает нифига. Может поможет кто?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy