Ready to get started?Download WordPress


[resolved] Side by side floated div layout goes vertical if one div too long (2 posts)

  1. lovdia86
    Posted 6 months ago #

    I was able to have two divs floating side by side successfully, but that's only if the left div(blog posts) doesn't have multiple posts listed. The right div is a sidebar.

    Anyone know how to deal with an issue where if the left div is too long the right falls beneath it instead of staying beside it?

    This is basically the blog page setup and I pasted the important aspects of the css.
    .post {float:left; width:500px;}
    #sidebar {float:right; width:295px;}

    <section id="main">
    <div class="post">"The Loop" blog posts</div>
    <div id="sidebar">Call Sidebar</div>

  2. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    What theme are you using?

    It's impossible to help with CSS questions without seeing a live site.


You must log in to post.

About this Topic