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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #250017

    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.

    Thank you!


    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.