Forums

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
    Posts
  • #250017
    knbfoster
    Participant

    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:
    http://codepen.io/knfoster/pen/NdNZEd

    I appreciate any help I can get as I’m trying to learn all of this stuff.

    Thank you!

    #250018
    bearhead
    Participant

    The behavior is the result of floating #questions-sidebar
    The look you’re after can be achieved with display:table and display:table-cell:
    http://codepen.io/kvana/pen/ygJpNp

    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.