homepage Welcome to WebmasterWorld Guest from 54.145.183.190
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
DIVs and Firefox/IE
Drimacus

10+ Year Member



 
Msg#: 156 posted 12:57 pm on Jun 13, 2005 (gmt 0)

Hi there,

i'm sure there are other threads about this, but i can't find one right now.

How can i have a div with the exactly same px at firefox and IE? I know that Firefoxs includes the border and IE doesn't (at given width/height).

Is there a command that would ignored by IE? so that i can tell FF the correct width? (well, i know IE does the mistake, but just to fix my problem ;))

thanks in advance!

 

photon

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 156 posted 6:48 pm on Jun 13, 2005 (gmt 0)

If you do a search on the "box model hack" you'll find tons of information.

Are you declaring a DOCTYPE for your web pages? For example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

coopersita

5+ Year Member



 
Msg#: 156 posted 7:21 pm on Jun 13, 2005 (gmt 0)

The box model discrepancy only applies to IE 5.x, not 6.

You can find a solution at: [tantek.com...]

photon

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 156 posted 12:48 pm on Jun 14, 2005 (gmt 0)

IE6 does it correctly only if there is a complete DOCTYPE declared. Otherwise, it has the same issues as IE5.x.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved