Programmer2006
Programmer
Hi all I am trying to add my banner image as a header in css but it doesn't work and I don't know why. here is the css:
.............................................
body{
background-color:#8470ff
}
p{
color:darkred;
}
a{
text-decoration:none
}
.banner {
background-image: url(images/Banner2.gif);
background-repeat: no-repeat;
background-position: center top
}
.............................................
Here is the html:
...........................................
<html>
<head>
<title>MyTitle</title>
<link rel="stylesheet" type="text/css" href="body.css"/>
</head>
<body text="660000" link="ffffff">
<div class="banner"></div>
</body>
</html>
.............................................
body{
background-color:#8470ff
}
p{
color:darkred;
}
a{
text-decoration:none
}
.banner {
background-image: url(images/Banner2.gif);
background-repeat: no-repeat;
background-position: center top
}
.............................................
Here is the html:
...........................................
<html>
<head>
<title>MyTitle</title>
<link rel="stylesheet" type="text/css" href="body.css"/>
</head>
<body text="660000" link="ffffff">
<div class="banner"></div>
</body>
</html>