M
Muffinman
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>
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>