SilverBean
Programmer
I came across this I've been doing some experimenting trying to stay away from the absolute positioning that I've grown so accustomed too.
I checked out a 3 column CSS style lay out and it seemed to be what I wanted. I cut and pasted from an old CSS file to keep the names I already had setup. By mistake 1 div was still positioned absolute. But it was strange that it wouldn't show at all. Hence my posting.
If you check out the code below in IE you will see 2 lines of "Traditional Web header, Logo..." with a green container(contentabsolute2) below them.
What you will not see is a blue container (contentabsolute). However you will see blue in NN8.1.2, and FF 1.5.0.7.
IE seems to have a problem with webheaderbad, followed by an absolute position div. If I remove the width 100% or float from webheaderbad the blue container will be displayed. However if both float, width AND width=100%. IE doesn't show blue.
Is this another absolute problem? BTW: Checked it out with W3Validator and got the strict ok both HTML and CSS so any obvious things are cut and paste errors
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>Test</title>
<style type="text/css">
body {height:100%; border-style:solid; border-color:green;border-width:0px;}
.webheaderbad { float:left; width:100%;border-style:solid; border-color:yellow; border-width:0px; margin-top:0px; margin-left:0px}
.webheadergood{ width:100%;border-style:solid; border-color:yellow; border-width:0px; margin-top:0px; margin-left:0px}
.contentabsolute { position:absolute; top:35%; left:0%; width:10%; border-style:solid; border-color:blue; border-width:5px; margin-left:0%; overflow:visible}
.contentabsolute2 { position:absolute; top:30%; left:0%; width:25%; border-style:solid; border-color:green; border-width:5px; margin-left:0%; overflow:visible}
</style>
</head>
<body>
<div class="webheaderbad">
<p>Traditional Web header, Logo Site, navigation, etc. all very nice.</p>
</div>
<div class="contentabsolute">
<p> element absolutely positioned</p>
</div>
<div class="webheadergood">
<p>Traditional Web header, Logo Site, navigation, etc. all very nice.</p>
</div>
<div class="contentabsolute2">
<p> element absolutely positioned</p>
</div>
</body>
</html>
I checked out a 3 column CSS style lay out and it seemed to be what I wanted. I cut and pasted from an old CSS file to keep the names I already had setup. By mistake 1 div was still positioned absolute. But it was strange that it wouldn't show at all. Hence my posting.
If you check out the code below in IE you will see 2 lines of "Traditional Web header, Logo..." with a green container(contentabsolute2) below them.
What you will not see is a blue container (contentabsolute). However you will see blue in NN8.1.2, and FF 1.5.0.7.
IE seems to have a problem with webheaderbad, followed by an absolute position div. If I remove the width 100% or float from webheaderbad the blue container will be displayed. However if both float, width AND width=100%. IE doesn't show blue.
Is this another absolute problem? BTW: Checked it out with W3Validator and got the strict ok both HTML and CSS so any obvious things are cut and paste errors
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>Test</title>
<style type="text/css">
body {height:100%; border-style:solid; border-color:green;border-width:0px;}
.webheaderbad { float:left; width:100%;border-style:solid; border-color:yellow; border-width:0px; margin-top:0px; margin-left:0px}
.webheadergood{ width:100%;border-style:solid; border-color:yellow; border-width:0px; margin-top:0px; margin-left:0px}
.contentabsolute { position:absolute; top:35%; left:0%; width:10%; border-style:solid; border-color:blue; border-width:5px; margin-left:0%; overflow:visible}
.contentabsolute2 { position:absolute; top:30%; left:0%; width:25%; border-style:solid; border-color:green; border-width:5px; margin-left:0%; overflow:visible}
</style>
</head>
<body>
<div class="webheaderbad">
<p>Traditional Web header, Logo Site, navigation, etc. all very nice.</p>
</div>
<div class="contentabsolute">
<p> element absolutely positioned</p>
</div>
<div class="webheadergood">
<p>Traditional Web header, Logo Site, navigation, etc. all very nice.</p>
</div>
<div class="contentabsolute2">
<p> element absolutely positioned</p>
</div>
</body>
</html>