Forum Moderators: not2easy
html, body
{
height: 100%
}
#header
{
position: relative;
background-image: url(/images/resume_bookend.gif);
background-repeat: no-repeat;
z-index: 0;
height: 53px;
margin-left: 300px;
}
#left
{
position: absolute;
background-image: url(/images/resume_bevel_left.gif);
width: 10px;
left: -10px;
height: 100%;
overflow: hidden;
}
#center
{
position: absolute;
float: left;
top: 25px;
left:50%;
width: 610px;
margin-left: -300px;
/*background-color: #F2F0E1;*/
font-family: Geneva, Verdana, Arial, Helvetica, sans-serif;
color: #444444;
font-size: 7pt;
height: 100%;
}
#right
{
position: absolute;
margin: 0px 0px 50px 938px;
width: 20px;
background-image: url(/images/resume_bevel_right.gif);
background-repeat: repeat-y;
height: 200%;
}
And here is the barebones html associated with the above css:
<html>
<body>
<div id=header></div>
<div id=left></div>
<div id=center>
[content]
</div>
<div id=right></div>
</body>
</html>
It should be noted that placing the right and left divs inside the center div, in the hopes that they would inherent the 100% height from the center div, does not work.
here are my dtd and html standards declarations but it should be noted that changing them seems to have no effect on the problem.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Here is a rough representation of what this code produces:
LCR
LCR
LCR
-CR
-CR
-CR
-C-
-C-
-C-
-C-
-C-
-C-
-C-
From the code you provided, I would put one of the shadow backgrounds in the #center div:
#center {
background: #F2F0E1 url(/images/resume_bevel_right.gif) repeat-y top right;
padding-right: 10px;
margin-left: 10px;
}
And the second one in the body
body {
background: url(/images/resume_bevel_left.gif) repeat-y; }
If you can't put the backgrounds in those containers (maybe they already have backgrounds), you can add your left and right containers around #center, instead of before and after.
Hope this helps.