Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE6 CSS bug?

Status
Not open for further replies.

jemminger

Programmer
Jun 25, 2001
3,453
US
hi all,

check this out in IE6:

<div style=&quot;border:1px solid black;height:50%;&quot;>I should be 50% tall!</div>

works fine in IE5, NS6 & Mozilla. anyone know of a workaround?

=========================================================
if (!succeed) try();
-jeff
 
Hi,

What's the problem? In IE 6.0.2600, it looks 50% of the window to me!

Bye.
 
I also looks fine in IE6 for me too.

You should be aware that browsers calculate percentages differently, some take it as 50% of the paretn while others take it as 50% of the window, not sure which does what! :)

I wouldn't use height unless you need to!

Be aware also that if you specify a pixel size it will look differently in IE5. In most browsers the border width will ADD to the specified width but in IE5x PC it will put the border inside the specified width! (and also height of course)


É

- :: my FIRST site in XHTML, comments/ criticism/ questions much appreciated!! :)
-
 
that's strange! doesn't work for me at work or home in ie6. guess i'll have to mess around a bit more - thanks!
=========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top