site ok in Firefox, not in IE : float problem??

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 29th, 2005, 14:35
New Member
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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....
Reply With Quote

  #2 (permalink)  
Old Sep 30th, 2005, 08:16
Junior Member
Join Date: Aug 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
site, firefox, float, problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 10:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43