Bojangles
02-03-2008, 07:34 PM
Okay so I'm coding a layout for gangster but I need everything to be centred.. Also I need the black gradient fixed to the top of the page. And so the banner isn't fixed onto the blackgradient. This is the code, what shall I change?
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana;
font-size: 10px;
color: #000000;
}
body {
background-color: #9BCDFF;
text-align: center;
}
#top {
height: 32px;
width: 900px;
background-image: url(images/topgradient.gif);
padding-top: 5px;
}
#banner{
height: 133px;
width: 850px;
background-image: url(images/banner.gif);
}
-->
</style></head>
<body>
<div id="top"></div>
<div id="banner"></div>
</body>
</html>What bits do I need to change, if any?
EDIT: I have sorted the centering problem, just need the blackgradient to be up the top and a way to move the banner down from the blackgradient.
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana;
font-size: 10px;
color: #000000;
}
body {
background-color: #9BCDFF;
text-align: center;
}
#top {
height: 32px;
width: 900px;
background-image: url(images/topgradient.gif);
padding-top: 5px;
}
#banner{
height: 133px;
width: 850px;
background-image: url(images/banner.gif);
}
-->
</style></head>
<body>
<div id="top"></div>
<div id="banner"></div>
</body>
</html>What bits do I need to change, if any?
EDIT: I have sorted the centering problem, just need the blackgradient to be up the top and a way to move the banner down from the blackgradient.