SilverBean
Programmer
This little gem has been kicking my butt for the last couple of days. I'm a little fustrated so making a posting is helping me to vent. This is the older versions of stuff the only thing keeping my sanity is that maybe newer works ok. I'm not sure exactly why but the thought is giving me a little comfort. For the most part I've seen NN 8 work as I would expect. IE 6 is broken. I haven't fired up by Linux box yet to check FF.
I start a block level with a div set the top, left, height, width in pixels. Then start another block level with P specifiying percentages for same. The div tag overflow is set for hidden and I put in enough copy so that I know I'm going to overflow. Both versions of NN and IE indicated above work the same Ok.
The problem? I go back change the div tag top, left, height, and width to percentages do a refresh and IE closes the whole div container. NN still displays something at least. Ran into this with IE my whole page disappeared I took it apart piece by piece relearning years of knowledge overnight. The right answer(I think) is for something to be displayed at least not to just close the whole box. Pixels vs. Percents shouldn't cause that?
My guess is IE 6 has a problem with a block level parent which has percentages as tlhw, when its trying to calculate a child's block level also in percentages. I just simply change div class="contentarea" to div class="contentareapx" to reproduce.
I'm hoping I'm just coming across old bugs here if I was seeing in this in newer versions I'd just totally give up on IE at this point. Any chance I'm missing something simple here? I would consider the time well spent if I learned something at least.
Almost forgot Windows2000, and using position:absolute. Sample code below.
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe"><title>CBC Voices Main Login Page</title>
<link rel="stylesheet" type="text/css" href="another.css">
</head>
<body>
<div class="contentarea">
<p class="introcopy2">Welcome to a place where I can write alot of copy and make it cutoff
</p>
</div>
</body></html>
div.contentarea
{
position:absolute;left:30%;top:40%;width:80%;height:80%;
border-color:green;
border:1;
border-style:solid;
overflow:hidden;
}
div.contentareapx
{
position:absolute;left:300px;top:200px;width:190px;height:190px;
border-color:red;
border:1;
border-style:solid;
overflow:hidden:
}
p.introcopy2
{
position:absolute;top:10%;left:45%;height:20%;width:70%;
font:bold small-caps 16px Arial;
color:#996633;
}
I start a block level with a div set the top, left, height, width in pixels. Then start another block level with P specifiying percentages for same. The div tag overflow is set for hidden and I put in enough copy so that I know I'm going to overflow. Both versions of NN and IE indicated above work the same Ok.
The problem? I go back change the div tag top, left, height, and width to percentages do a refresh and IE closes the whole div container. NN still displays something at least. Ran into this with IE my whole page disappeared I took it apart piece by piece relearning years of knowledge overnight. The right answer(I think) is for something to be displayed at least not to just close the whole box. Pixels vs. Percents shouldn't cause that?
My guess is IE 6 has a problem with a block level parent which has percentages as tlhw, when its trying to calculate a child's block level also in percentages. I just simply change div class="contentarea" to div class="contentareapx" to reproduce.
I'm hoping I'm just coming across old bugs here if I was seeing in this in newer versions I'd just totally give up on IE at this point. Any chance I'm missing something simple here? I would consider the time well spent if I learned something at least.
Almost forgot Windows2000, and using position:absolute. Sample code below.
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe"><title>CBC Voices Main Login Page</title>
<link rel="stylesheet" type="text/css" href="another.css">
</head>
<body>
<div class="contentarea">
<p class="introcopy2">Welcome to a place where I can write alot of copy and make it cutoff
</p>
</div>
</body></html>
div.contentarea
{
position:absolute;left:30%;top:40%;width:80%;height:80%;
border-color:green;
border:1;
border-style:solid;
overflow:hidden;
}
div.contentareapx
{
position:absolute;left:300px;top:200px;width:190px;height:190px;
border-color:red;
border:1;
border-style:solid;
overflow:hidden:
}
p.introcopy2
{
position:absolute;top:10%;left:45%;height:20%;width:70%;
font:bold small-caps 16px Arial;
color:#996633;
}