caitlin
01-04-2008, 08:49 PM
Having some weird issues in IE6.
Way it should look (taken in IE7):
http://www.nolemonplease.com/hp/ie7.jpg
Way it looks in IE6:
http://www.nolemonplease.com/hp/ie6.jpg
I have a sidebar div (looks like a parchment of paper on the page) that is positioned absolutely. Inside it has three divs. There is a top and bottom, both of which to handle images to show ripped edges. These images are transparent pngs, which I am using the filter hack so they can work in IE. The middle is an expandable div to show sub nav links. It usually has a repeated background image, but I changed it to a solid red color to show my problem.
My problem is that the bottomdiv is using the same background as the middle div, even though I close the middle div. Adding a transparent background color (even inline) to the bottom div does not help. The same problem happened in IE7, but I fixed it with a clear div. This clear div did not help in IE6.
If I take the unordered list out, and just put in plain text, it works like it should. What's wrong with my unordered list?
Appropriate HTML Section:
<div id="sidebar">
<div id="sidebar-top"></div>
<div id="sidebar-inside">
<h4>Coffee 101</h4>
<ul>
<li><a href="/terms/">Terms</a></li>
<li><a href="/brewing/">Brewing</a></li>
<li><a href="/coffee/">Coffee</a></li>
<li><a href="/devotion/">Devotion</a></li>
</ul>
</div>
<div class="clear"></div>
<div id="sidebar-bottom"></div>
</div
Appropriate CSS Section:
#sidebar {
display: block;
position: absolute;
width: 188px;
top: 20px;
left: 0;
padding: 0 16px 0 0;
}
#sidebar #sidebar-top {
display: block;
height: 30px;
width: 188px;
background: url(/layout_files/images/sidebartop.png);
* background: none;
* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/layout_files/images/sidebartop.png', sizingMethod='fixed');
}
#sidebar #sidebar-inside {
display: block;
background: red;
padding: 0 25px;
margin: 0;
}
#sidebar #sidebar-bottom {
display: block;
height: 30px;
width: 188px;
background: url(/layout_files/images/sidebarbottom.png);
* background: none;
* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/layout_files/images/sidebarbottom.png', sizingMethod='fixed');
}
#sidebar ul {
margin: 0;
padding: 0 0 0 20px;
}
#sidebar ul li {
margin-bottom: 0;
margin-top: 0;
* margin-left: 5px;
padding-bottom: 5px;
}
Way it should look (taken in IE7):
http://www.nolemonplease.com/hp/ie7.jpg
Way it looks in IE6:
http://www.nolemonplease.com/hp/ie6.jpg
I have a sidebar div (looks like a parchment of paper on the page) that is positioned absolutely. Inside it has three divs. There is a top and bottom, both of which to handle images to show ripped edges. These images are transparent pngs, which I am using the filter hack so they can work in IE. The middle is an expandable div to show sub nav links. It usually has a repeated background image, but I changed it to a solid red color to show my problem.
My problem is that the bottomdiv is using the same background as the middle div, even though I close the middle div. Adding a transparent background color (even inline) to the bottom div does not help. The same problem happened in IE7, but I fixed it with a clear div. This clear div did not help in IE6.
If I take the unordered list out, and just put in plain text, it works like it should. What's wrong with my unordered list?
Appropriate HTML Section:
<div id="sidebar">
<div id="sidebar-top"></div>
<div id="sidebar-inside">
<h4>Coffee 101</h4>
<ul>
<li><a href="/terms/">Terms</a></li>
<li><a href="/brewing/">Brewing</a></li>
<li><a href="/coffee/">Coffee</a></li>
<li><a href="/devotion/">Devotion</a></li>
</ul>
</div>
<div class="clear"></div>
<div id="sidebar-bottom"></div>
</div
Appropriate CSS Section:
#sidebar {
display: block;
position: absolute;
width: 188px;
top: 20px;
left: 0;
padding: 0 16px 0 0;
}
#sidebar #sidebar-top {
display: block;
height: 30px;
width: 188px;
background: url(/layout_files/images/sidebartop.png);
* background: none;
* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/layout_files/images/sidebartop.png', sizingMethod='fixed');
}
#sidebar #sidebar-inside {
display: block;
background: red;
padding: 0 25px;
margin: 0;
}
#sidebar #sidebar-bottom {
display: block;
height: 30px;
width: 188px;
background: url(/layout_files/images/sidebarbottom.png);
* background: none;
* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/layout_files/images/sidebarbottom.png', sizingMethod='fixed');
}
#sidebar ul {
margin: 0;
padding: 0 0 0 20px;
}
#sidebar ul li {
margin-bottom: 0;
margin-top: 0;
* margin-left: 5px;
padding-bottom: 5px;
}