CSS two column layout - fine in Firefox. IE pushes right sidebar down

Discussion in 'CSS' started by mr. bowes, Mar 16, 2009.

  1. #1
    I'm new to CSS and am having issues in IE6 when viewing the following page:
    http://apcointl.org/frequency/redesign/new_afc_page.php

    It looks fine in Firefox but IE always pushes the right sidebar down below the content.

    I have tried vertical-align:top and float:right. vertical-align doesn't work. float:right works only in moving the sidebar to the right, but it doesn't force it to be in line with the content.

    Any ideas? I can't seem to figure it out. Thanks!
     
    mr. bowes, Mar 16, 2009 IP
  2. rikun

    rikun Peon

    Messages:
    85
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try putting the html for the "sidebar" div before the "content" div. so

    <div id="sidebar">...</div>
    <div id="content">...</div>

    I usually have that problem when putting left floated and right floated divs next to each other
     
    rikun, Mar 16, 2009 IP
  3. mr. bowes

    mr. bowes Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    rikun,

    Thanks for the suggestion - I made the change but now have the opposite problem. The sidebar is displayed correctly but the content section is moved down below.

    It's updated at the link above.
     
    mr. bowes, Mar 16, 2009 IP
  4. mr. bowes

    mr. bowes Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    got it working...

    reduced padding and increased width... moved sidebar to left and it looks good now in IE6.

    i hate ie6
     
    mr. bowes, Mar 16, 2009 IP
  5. rikun

    rikun Peon

    Messages:
    85
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    keep the css the same as it was before you switched it. i think you switch "content" to right and "sidebar" to left right? the way it was before was fine i think.
     
    rikun, Mar 16, 2009 IP
  6. rikun

    rikun Peon

    Messages:
    85
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ah n/m. glad you got it working.
     
    rikun, Mar 16, 2009 IP