
Originally Posted by
NXArmada
In Firefox everything shows up fine but when you try it out in IE the left navigation menus goes off of the screen to the left.
Your combination of floats, relative positioning, and negative margins, all on the same element, probably has IE confused.
Remember to backup your current work before proceeding!
There are two directions to consider: floats (again) or absolute positioning. If you choose the former, you'll need to alter the markup, moving the left and right columns before the centre one. You'll only be floating those outer columns, so they need to occur first in order to appear at the right vertical position. If you choose absolute positioning, the markup can stay as it is.
Whichever you choose, start by removing the "#container .column" rule (and the class attributes in the markup, if you wish). Next, change the padding-left and -right properties in the "#container" rule to margin-, and apply those two declarations to the "#center" rule. You can remove the width declaration in the latter, and also in "#warning". Finally, remove all except the width declarations from the "#left" and "#right" rules.
You should now have:
Code:
#warning {
height: 35px;
/* ... */
}
#container {
padding-top: 13px;
}
#center {
margin-left: 128px; /* LC width */
margin-right: 152px; /* RC width */
}
#left {
width: 128px; /* LC width */
}
#right {
width: 152px; /* RC width */
}
Now the paths diverge:
To use floating, float "#left" left, and "#right" right. That's it.
To use absolute positioning:
Code:
#container {
/* ... */
position: relative;
}
#left {
position: absolute;
left: 0;
width: 128px; /* LC width */
}
#right {
position: absolute;
right: 0;
width: 152px; /* RC width */
}
That should be all you need (checked briefly in Fx and IE6).
Mike
Bookmarks