HighDots Forums  

IE5 borders

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE5 borders in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Walker
 
Posts: n/a

Default IE5 borders - 07-10-2003 , 12:31 PM






Can someone please confirm my suspicion that IE5 on Windows is including
borders in the dimensions of a block object? The block in question has the
following css:

div.headerbox
{
position: relative;
left: 169px;
height: 70px;
margin: 5px;
margin-top: 0px;
width: 640px;
color:#99ffff;
background-color: #6699cc;
background-image: url(images/site/logotop.png);
background-position: top right;
background-repeat: no-repeat;
border: 2px solid #003399;
cursor: default;
z-index: 2;
}

and works fine in IE6, Mozilla 1.3, Opera 7.11, but is 4px too short in IE5.

Any ideas why its doing this wrong?
Thanks

David



Reply With Quote
  #2  
Old   
David Walker
 
Posts: n/a

Default Re: IE5 borders - 07-10-2003 , 03:41 PM






Quote:
Yes, Windows IE5.5 (and IE6 in Quirks mode) includes padding and
borders as part of the width and height values. A search for IE and
"box model" should reveal lots of pages that discuss this.
OK, I give up. I've moved to separate style sheets for different browsers.
Its working OK now so it'll have to do.
Thanks

David




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.