- Ruthsarian :
- Layouts :
- Labs :
- Blog :
- Contact :
December 10, 2004
Skidoo Side Columns
Took the server down today to perform some routine maintenance. Everything went fine and the server is back up.
importrival posted a question to the We Are All Made Of Stars entry asking about photos in the right-column of a skidoo layout causing the content (middle) column to drop down.
The problem is that you have padding applied to the right column which makes the available width of that column too small to fit the pictures. FireFox/Mozilla will allow the overflow, and handles it in a way that keeps the layout looking fine. IE handles the overflow by pushing the column down.
A quick fix would be to add the following CSS to the layout:
#rightColumn .inside {
padding-left: 0;
padding-right: 0;
}
And that should take care of the problem.
However, it's important to note that you're using the default column widths, which are set in EMs. You are then using images which have widths defined in pixels. Not everybody has the same pixel width for 1em. Meaning 15ems on your screen and 15ems on another may not match and you could run into this problem again.
So what you need to really do is define the rightColumn's width in pixels. (and sure to define the other 2 values associated with the rightColumn's width in pixels too!)
#rightColum { width: 200px; margin-right: -200px; }
#outerColumnContainer { border-right-width: 200px; }
Cool?
Post a comment