This is a 2 part question
1 - I am using the following CSS for a 3 column layout and I need to know how to get it work for both IE 8 and Firefox.
This is the code, I've indicated what line I put in to make it work in IE 8.
The attached images show how it appears in the 2 browsers, when theHTML Code:#content { height: auto; width: 100%; overflow: hidden; background-color: #F9F9FD; border:0; } #leftBlock1 { width: 5%; height: auto; background-color: #B3B3D9; float: left; padding: 0 1em; } #leftBlock2 { width: 10%; height: auto; background-color: #9999CC; float: left; padding: 0 1em; } #mainBlock { height: auto; background-color: #F9F9FD; padding: 0 1em; float: left; /* THIS WORKS IN IE 8 * - REMOVE IT AND IT WORKS IN FIREFOX */ overflow: hidden; }float: left;is not in the #mainBlock section the 'wrong' image is displayed in IE 8 , the 'right' image is displayed in Firefox.
The situation is reversed whenfloat: left;is included.
Is there a way to get this to display correctly in both browsers?
2 - I want to get rid of the space between the 2 image blocks, this is a space between the layout of #leftBlock2 and #mainBlock.



Reply With Quote

Bookmarks