BaptistKitty
12-02-2005, 09:34 AM
I'm just learning all about the div tags and find that they're the greatest thing once you figure them out but I have a problem...
I'm trying to build this page: http://projectidaho.baptistrevival.com/new2
but if you look there's a small gap on the right of the moose pic in the top right corner. It wasnt there till I put the title pic in.... how do I get rid of it?
Also I dont understand the % width thing.... I have the maroon bar set to 102% and it looks good but I the striped div set to 80%, the grey bar set to 80% and the main white box set to 80% and all 3 of them are not the same size... how do I get them to line up?
Here's the code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Northwest Baptist Church</title>
</head>
<body>
<div style="position: absolute; left: 0px; top: 0px; height: 30px; width:102%; padding: 0em; z-index: 1; background-image: url(topgrad.gif); repeat-x"></div>
<div style="position: absolute; left: 216px; top: 29px; height: 140px; width:80%; padding: 0em; z-index: 3; background-image: url(linebkg.gif);">
<img src="title.gif" align="left"><img src="mooseline.jpg" align="right">
</div>
<div style="position: absolute; left: 0px; top: 29px; height: 330px; width:220px; padding: 0em; z-index:2; background-image: url(menu.gif); background-repeat: no-repeat"></div>
<div style="position: absolute; left: 0px; top: 359px; height: 100%; width:217px; padding: 0em; z-index: 4; background: #dddddd url(shadow.jpg) repeat-x"></div>
<div style="position: absolute; left: 217px; top: 160px; height: 20px; width:80%; padding: 0em; border: 2px white solid; z-index:4; background: #dddddd"></div>
<div style="position: absolute; left: 218px; top: 182px; height: 100%; width:80%; padding: 0em; z-index: 5; background: #ffffff url(lightshadow.jpg) repeat-x">
<br>
<br>
main body
</div>
</body>
Thanks...
I'm trying to build this page: http://projectidaho.baptistrevival.com/new2
but if you look there's a small gap on the right of the moose pic in the top right corner. It wasnt there till I put the title pic in.... how do I get rid of it?
Also I dont understand the % width thing.... I have the maroon bar set to 102% and it looks good but I the striped div set to 80%, the grey bar set to 80% and the main white box set to 80% and all 3 of them are not the same size... how do I get them to line up?
Here's the code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Northwest Baptist Church</title>
</head>
<body>
<div style="position: absolute; left: 0px; top: 0px; height: 30px; width:102%; padding: 0em; z-index: 1; background-image: url(topgrad.gif); repeat-x"></div>
<div style="position: absolute; left: 216px; top: 29px; height: 140px; width:80%; padding: 0em; z-index: 3; background-image: url(linebkg.gif);">
<img src="title.gif" align="left"><img src="mooseline.jpg" align="right">
</div>
<div style="position: absolute; left: 0px; top: 29px; height: 330px; width:220px; padding: 0em; z-index:2; background-image: url(menu.gif); background-repeat: no-repeat"></div>
<div style="position: absolute; left: 0px; top: 359px; height: 100%; width:217px; padding: 0em; z-index: 4; background: #dddddd url(shadow.jpg) repeat-x"></div>
<div style="position: absolute; left: 217px; top: 160px; height: 20px; width:80%; padding: 0em; border: 2px white solid; z-index:4; background: #dddddd"></div>
<div style="position: absolute; left: 218px; top: 182px; height: 100%; width:80%; padding: 0em; z-index: 5; background: #ffffff url(lightshadow.jpg) repeat-x">
<br>
<br>
main body
</div>
</body>
Thanks...