Forum Moderators: not2easy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
#top_left_pad {
background-image: url('images/lpanel_drop.png');
background-repeat: repeat-y;
background-position: center;
position: relative;
left: -11px;
width: 266px;
z-index: 1;
} #top_left {
width: 230px;
position: relative;
left: 12px;
}
</style>
</head>
<body>
<div id="top_left_pad">
<div id="top_left">
stuff here, more divs, etc.
</div>
</div>
</body>
</html>
My intent is to create a DIV outside of the left panel content DIV that has a buffer on each side so I can create a drop shadow. Using the above code, the outer "padding" DIV is not stretched to the height of the inner div. How can I get this concept to work without specifying html>body #top_left_pad { height: x; }
There is a drop-shadow around the wrapper and also a drop shadow around the top-left and bottom-right divs.
*+---------+
[ ¦**]*****¦
[ ¦**]*****¦
*¦********¦
*¦********¦
*+---------+
You can see in this crude drawing in which [ is the top_left_pad div that I want it to go outside the main content area of the page.