Why is my div not expanding to the size of the content

I'm sure I have to use clearfix or something to fix this, but I have been struggling with this layout for too long and I am switching over with code code, so bear with me.

My example shows what happens when the rightmost column ( #rightbox) has too much information and it breaks out of the main wrapper ( #interior_wrap).

Since the plugin #rightbox, I am sure that it calls it, but I think that I am too close to seeing a solution, so that any help would be great.

Thanks in advance!

+3
source share
2 answers

ah, the most asked css question on SO ..

#container { overflow:hidden; zoom:1; } 

or #container:after { content:""; clear:both; display:block; }if you get cropped.

PS - : , margin:0 auto

+7

Source: https://habr.com/ru/post/1776510/


All Articles