• hi,

    I’ve been trying for the past couple of days without any success to work out how to line construct a two column css with the right one of fixed size and the left variable filling out the rest of the page. It should in theory be fairly simple but whenever i test it with data the sidebar drops down so that the two columns arent aligned. I’d appreciate any help. I have the content and sidebar sitting inside the main div (colors were there just so i could see them.

    CSS
    #main
    {background:lightblue; height:700px;}

    #content
    {background:lightyellow; float:left;}

    #sidebar{background:lightgreen;width:320px; height:450px; float:right;}

    main index
    <div id=”main”>

    <div id=”content”> some content some content some content some content some content some content some content some content some content some content some content some content some content
    </div>

    <div id=”sidebar”> sidebar goes in here
    </div>

    </div>

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, mrwolf, you might find the Layout Gala helpful, particularly this layout that does what I think you’re looking for.

    You might have to play with the CSS a bit to get it how you want it, but usually it’s just a matter of tweaking the widths.

    Hope that helps!

    Thread Starter mrwolf

    (@mrwolf)

    thanks bookchiq, thats exactly what i am looking for.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fixed right sidebar’ is closed to new replies.