This is a discussion on "site ok in Firefox, not in IE : float problem??" within the Web Page Design section. This forum, and the thread "site ok in Firefox, not in IE : float problem?? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
site ok in Firefox, not in IE : float problem??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
site ok in Firefox, not in IE : float problem??
I am working on a site at http://v4.beta.beerbergman.com/fr/
In firefox it shows up like it should be but in IE the textblock shows up 'under' the menu in spite of the float:left setting for the menu-layer. I've made several sites with the same system but I cannot seem to find out what I did wrong this time:-) The stylesheets are on http://v4.beta.beerbergman.com/-http/-style/general.css and http://v4.beta.beerbergman.com/-http/-style/menu.css Any help would be greatly appreciated. It's been 3 days.... |
|
|
|
|||
|
I think, the reason you have the problem is because IE does not follow the CSS spec whereas FF does. Specifically, in your case, IE uses the "width" element incorrectly.
IE includes the padding and border width in the determination of box "width". FF does not. Remove your padding and borders from layout boxes and FF and IE will act identically with respect to box widths. I have how-tos on my website that give more detail if you are interested. Your content box is moving down because: (its width (according to IE) + the nav width ) > the width of your enclosing parent. I think you can also get rid of some of your IE kludges too. I've never used one myself. I just work within the spec using code that works identically for both browsers. The only problem with what I told you is I do not know how these things act on legacy browsers. But nobody has complained yet either. You can still use borders and padding, but only if they are not pushing the limits of the width of your enclosing parent box. You can also put borders inside layout boxes to achieve the same goal. |
![]() |
| Tags |
| site, firefox, float, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Float problem with Firefox | Emzi | Web Page Design | 10 | Apr 4th, 2008 12:02 |
| Float: Left with firefox | magnetica | Web Page Design | 2 | Aug 24th, 2007 16:55 |
| css float problem | milly | Starting Out | 3 | Jul 9th, 2007 02:51 |
| Margin different in IE and Firefox when using float | cyberseed | Web Page Design | 8 | Apr 17th, 2007 14:55 |
| right float problem... | c_martini | Web Page Design | 11 | Aug 2nd, 2006 13:47 |