You are here: IE6, XHTML & height in % « HTML « IT news, forums, messages
IE6, XHTML & height in %

Posted by Muffinman on 11/01/05 15:14

Howdy,

A while ago I created a little website which has a little problem. I
have defined all layers and frames in percentages, so if somebody
reduces the size of the browser, it still looks fine. This works very
well in Mozille and alike. However, in Internet Explorer 6 it doesn't.
Somehow the height attribute in both the CSS and xhtml tag is ignored if
it is given in percentages. I have written it as below. Is there anyway
I can solve this without having to go back to the html doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Thanks in advance, Maarten

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Untitled</title>

<style type="text/css">

#frame_menu {
position: absolute;
left: 2%;
top: 2%;
width: 22%;
height: 80%;
border: none;
visibility: visible;
background: #ffffff;
z-index: 4;
}

</style>
</head>

<body>

<iframe src="5004230661" id="frame_menu" name="frame_menu"
scrolling="auto" marginwidth="0" marginheight="0" frameborder="0"></iframe>


</body>
</html>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация