The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Issues placing 2 divs side by side
I created a sidebar and I have text next to it on the right. I would like the text to continue down the page and be contained inside the right div. For some reason, the right div is wrapping around the left div.
Here’s my code:
I appreciate any help I can get as I’m trying to learn all of this stuff.
The behavior is the result of floating #questions-sidebar
The look you’re after can be achieved with display:table and display:table-cell:
You’ll probably need to use media queries to prevent it from looking weird at small screen widths