plushenator
06-14-2010, 06:26 AM
i have a horizontal menu that won't stay to the left in internet explorer 5.5/6/7. i finally got the div that contains the background button image to stay where it is supposed to, but the text is shoved over to the right (it should overlay the buttons). i am afraid that the positioning issue may be part of the dropdown menu coding, which took me a long time to get to work/be positioned properly (the menus were adapted from css3menu). i am still learning css but did try everything i could think of, including adding/subtracting relative/absolute positioning selectors, removing all margins and padding on anything with a width declaration, and floating everything.
http://www.plushdesign.net/skylights/template_final2.html
only necessary floats
http://www.plushdesign.net/skylights/template_final4.html
float everything i thought would affect the nav
thank you. code below if you want a quick look:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="skylights2.css" rel="stylesheet" type="text/css"><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColLiqHdr #sidebar2, .thrColLiqHdr #sidebar1 { padding-top: 30px; }
.thrColLiqHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<style type="text/css">
<!--
.bottomnav {
font-size: 70%;
line-height: auto;
}
.imgright {
float: right;
clear: both;
display: inline;
}
-->
</style>
<style type="text/css">
<!--
body {
background-color: #E4EFFF;
}
-->
</style>
</head>
<body class="thrColLiqHdr">
<div id="container">
<div id="header">
<div id="nav" class="centerme">
<div id="navLeft">
<!-- **************************************************************************************************** ******** -->
<ul id="css3menu">
<li class="mainbuttonrollover"><a href="about.html" title="ABOUT US"><span>ABOUT US</span></a></li>
<li class="mainbuttonrollover"><a href="residential.html" title="RESIDENTIAL"><span>RESIDENTIAL</span></a>
<ul>
<li><a href="res_acrylic.html" title="Acrylic"><span>Acrylic</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Hatch</a></li>
<li class="level2"><a href="#">Pyramid</a></li>
</ul>
</li>
<li><a href="res_glass.html" title="Glass"><span>Glass</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Ridge</a></li>
</ul>
</li>
<li><a href="res_velux.html" title="Velux"><span>Acrylic</span></a>
<ul>
<li class="level2"><a href="shopvelux.html">Shop Online</a></li>
<li class="level2"><a href="warrantyvelux.html">Warranty</a></li>
<li class="level2"><a href="installvelux.html">Installation</a></li>
</ul>
</li>
<li><a href="res_suntunnel.html" title="Sun Tunnel"><span>Sun Tunnel</span></a>
<ul>
<li class="level2"><a href="shopvelux.html">Shop Online</a></li>
<li class="level2"><a href="warrantyvelux.html">Warranty</a></li>
<li class="level2"><a href="installvelux.html">Installation</a></li>
</ul>
</li>
</ul>
<!-- **************************************************************************************************** ******** -->
<li class="mainbuttonrollover"><a href="commercial.html" title="COMMERCIAL"><span>COMMERCIAL</span></a>
<ul>
<li><a href="res_acrylic.html" title="Acrylic"><span>Acrylic</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Hatch</a></li>
<li class="level2"><a href="#">Pyramid</a></li>
</ul>
</li>
<li><a href="res_glass.html" title="Glass"><span>Glass</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Ridge</a></li>
</ul>
</li>
</ul>
</li>
<!-- **************************************************************************************************** ******** -->
</ul>
</div>
<!-- end #navleft -->
<div id="navRight">
<ul id="css3menu2">
<li class="mainbuttonrollover"><a href="gallery.html" title="GALLERY"><span>GALLERY</span></a></li>
<li class="mainbuttonrollover"><a href="faqs.html" title="FAQs"><span>FAQs</span></a></li>
<li class="mainbuttonrollover"><a href="contact.html" title="contact"><span>CONTACT</span></a></li></ul>
<!-- end #navright --></div>
<!-- end #nav --></div>
<!-- end #header --></div>
<div id="sidebar1">
<p><img src="images/velux_logo.gif" width="124" height="48" alt="velux"></p>
<p><img src="images/traditional.gif" width="110" height="57" alt="traditional skylights"></p>
<p><img src="images/tubular.gif" width="99" height="59" alt="tubular skylights"></p>
<p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. </p>
<!-- end #sidebar1 --></div>
<div id="sidebar2">
<p class="imgmiddle"><img src="images/BBB_ValueStar.gif" width="72" height="137" alt="valuestar">. </p>
<p class="clearfloat"> </p>
<p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. </p>
<!-- end #sidebar2 --></div>
<div id="mainContent">
<h1 class="h1"> Let the Sun In!</h1>
<p>Since 1972, SKYLIGHT & SUN, INC. has been dedicated to providing intelligent and inexpensive solutions to customers who wanted to add
or improve natural light in their living and working environments. A naturally-lit space is more cheerful, more healthy, and more beautiful.</p>
<p><span class="caption">residential</span><span class="captionR">commercial</span>
<br>
<img src="images/GGBridge.jpg" width="166" height="107"> <img src="images/AmericanBagLG.jpg" width="257" height="189" class="imgmiddle"> <img src="images/schroeder1.jpg" width="176" height="117" class="imgmiddle"><br>
<img src="images/GGBridge.jpg" width="166" height="107" style="position: relative; top: -82px; margin: 0 0; padding: 0 0;">
<img src="images/AmericanBagLG.jpg" width="257" height="189" class="imgmiddle">
<img src="images/schroeder1.jpg" width="176" height="117" style="position: relative; top: -72px; margin: 0 0; padding: 0 0;"></p>
<br><br>
<!-- end #mainContent --></div>
<div> <p class="clearfloat"><br></p> </div>
<div id="footer">
<p class="bottomnav">ABOUT US • RESIDENTIAL • COMMERCIAL • GALLERY • FAQs • CONTACT<br>
©2010 SUN & SKYLIGHT, INC.</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
http://www.plushdesign.net/skylights/template_final2.html
only necessary floats
http://www.plushdesign.net/skylights/template_final4.html
float everything i thought would affect the nav
thank you. code below if you want a quick look:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="skylights2.css" rel="stylesheet" type="text/css"><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColLiqHdr #sidebar2, .thrColLiqHdr #sidebar1 { padding-top: 30px; }
.thrColLiqHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<style type="text/css">
<!--
.bottomnav {
font-size: 70%;
line-height: auto;
}
.imgright {
float: right;
clear: both;
display: inline;
}
-->
</style>
<style type="text/css">
<!--
body {
background-color: #E4EFFF;
}
-->
</style>
</head>
<body class="thrColLiqHdr">
<div id="container">
<div id="header">
<div id="nav" class="centerme">
<div id="navLeft">
<!-- **************************************************************************************************** ******** -->
<ul id="css3menu">
<li class="mainbuttonrollover"><a href="about.html" title="ABOUT US"><span>ABOUT US</span></a></li>
<li class="mainbuttonrollover"><a href="residential.html" title="RESIDENTIAL"><span>RESIDENTIAL</span></a>
<ul>
<li><a href="res_acrylic.html" title="Acrylic"><span>Acrylic</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Hatch</a></li>
<li class="level2"><a href="#">Pyramid</a></li>
</ul>
</li>
<li><a href="res_glass.html" title="Glass"><span>Glass</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Ridge</a></li>
</ul>
</li>
<li><a href="res_velux.html" title="Velux"><span>Acrylic</span></a>
<ul>
<li class="level2"><a href="shopvelux.html">Shop Online</a></li>
<li class="level2"><a href="warrantyvelux.html">Warranty</a></li>
<li class="level2"><a href="installvelux.html">Installation</a></li>
</ul>
</li>
<li><a href="res_suntunnel.html" title="Sun Tunnel"><span>Sun Tunnel</span></a>
<ul>
<li class="level2"><a href="shopvelux.html">Shop Online</a></li>
<li class="level2"><a href="warrantyvelux.html">Warranty</a></li>
<li class="level2"><a href="installvelux.html">Installation</a></li>
</ul>
</li>
</ul>
<!-- **************************************************************************************************** ******** -->
<li class="mainbuttonrollover"><a href="commercial.html" title="COMMERCIAL"><span>COMMERCIAL</span></a>
<ul>
<li><a href="res_acrylic.html" title="Acrylic"><span>Acrylic</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Hatch</a></li>
<li class="level2"><a href="#">Pyramid</a></li>
</ul>
</li>
<li><a href="res_glass.html" title="Glass"><span>Glass</span></a>
<ul>
<li class="level2"><a href="#">Cut Sheet</a></li>
<li class="level2"><a href="#">Fixed</a></li>
<li class="level2"><a href="#">Openable</a></li>
<li class="level2"><a href="#">Ridge</a></li>
</ul>
</li>
</ul>
</li>
<!-- **************************************************************************************************** ******** -->
</ul>
</div>
<!-- end #navleft -->
<div id="navRight">
<ul id="css3menu2">
<li class="mainbuttonrollover"><a href="gallery.html" title="GALLERY"><span>GALLERY</span></a></li>
<li class="mainbuttonrollover"><a href="faqs.html" title="FAQs"><span>FAQs</span></a></li>
<li class="mainbuttonrollover"><a href="contact.html" title="contact"><span>CONTACT</span></a></li></ul>
<!-- end #navright --></div>
<!-- end #nav --></div>
<!-- end #header --></div>
<div id="sidebar1">
<p><img src="images/velux_logo.gif" width="124" height="48" alt="velux"></p>
<p><img src="images/traditional.gif" width="110" height="57" alt="traditional skylights"></p>
<p><img src="images/tubular.gif" width="99" height="59" alt="tubular skylights"></p>
<p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. </p>
<!-- end #sidebar1 --></div>
<div id="sidebar2">
<p class="imgmiddle"><img src="images/BBB_ValueStar.gif" width="72" height="137" alt="valuestar">. </p>
<p class="clearfloat"> </p>
<p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. </p>
<!-- end #sidebar2 --></div>
<div id="mainContent">
<h1 class="h1"> Let the Sun In!</h1>
<p>Since 1972, SKYLIGHT & SUN, INC. has been dedicated to providing intelligent and inexpensive solutions to customers who wanted to add
or improve natural light in their living and working environments. A naturally-lit space is more cheerful, more healthy, and more beautiful.</p>
<p><span class="caption">residential</span><span class="captionR">commercial</span>
<br>
<img src="images/GGBridge.jpg" width="166" height="107"> <img src="images/AmericanBagLG.jpg" width="257" height="189" class="imgmiddle"> <img src="images/schroeder1.jpg" width="176" height="117" class="imgmiddle"><br>
<img src="images/GGBridge.jpg" width="166" height="107" style="position: relative; top: -82px; margin: 0 0; padding: 0 0;">
<img src="images/AmericanBagLG.jpg" width="257" height="189" class="imgmiddle">
<img src="images/schroeder1.jpg" width="176" height="117" style="position: relative; top: -72px; margin: 0 0; padding: 0 0;"></p>
<br><br>
<!-- end #mainContent --></div>
<div> <p class="clearfloat"><br></p> </div>
<div id="footer">
<p class="bottomnav">ABOUT US • RESIDENTIAL • COMMERCIAL • GALLERY • FAQs • CONTACT<br>
©2010 SUN & SKYLIGHT, INC.</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>