hey
I have a rounded box, which has been sliced into 3 separate images (top, middle, bottom). ive managed to code the box fine.
But im trying to place my header image at the top of this box using layers, but its not working, the image creates a gap inbetween the box. please see this link:
http://www.kumar.adsl24.co.uk/mk.html
the z-index does not appear to be working. appreciate any help at alll
here is my
css code:
- Code: Select all
/* CSS Document */
body {
/*this centers everything, use text-align as a ressurance */
text-align: center;
color: white; /* font color */
/* if we dont set the background to blue if the window is resized the viewer
will see white space, we dont want this. so set background to light blue and for the
top apply background image */
background: #aed0e4 url(images2/background.gif) repeat-x fixed top left;
}
#container
{
position: relative;
width: 744px;
margin: 0 auto;
text-align: left;
padding: 50px 50px;
}
#header
{
z-index: 1;
background: url(images2/tophalf.gif) no-repeat;
height: 50px;
}
#middle{
z-index: 2;
background: url(images2/middle.gif) repeat-y;
height: 600px;
}
#bottom {
z-index:3;
background: url(images2/bottomhalf.gif) no-repeat;
height: 60px;
}
#logo{
z-index: 4;
background: url(images2/header.gif) no-repeat;
height: 85px;
}
html code:
- Code: Select all
<!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">
<head>
<title>Portfolio v1</title>
<link href="layout.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="container">
<div id="header">
</div>
<div id="logo"></div>
<div id="middle"></div>
<div id="bottom"></div>
</div>
</body>
</html>