I have created a header div which has a background image of a gradient that repeats across it. I want to put an image over the top of this header div so I made a logo div but the logo div isn’t displaying. What am I doing wrong?
[CODE]<style type=”text/css”>
body {
margin: 0px;
padding: 0px;
}
#header {
width: 760px;
height: 100px;
padding: 0px;
background-image: url(images/headergradient.jpg);
background-repeat: repeat-x;
text-align: bottom;
}
#logo {
/*float: left;*/
vertical-align: top;
background: url(images/companylogo.jpg);
background-repeat: no-repeat;
}
#navtext {
float:right;
vertical-align: bottom;
}
</style>
</head>
<body>
<div id=”header”>
<div id=”logo”>
</div>
<div id=”navtext”>
Weddings | Portraits | Dogs | Enquiry | Feedback
</div>
</div>
<!– <div id=”header”> <img src=”images/companylogo1.jpg” style=”vertical-align: top;”> –>
</body>
[CODE]<style type="text/css">
body {
margin: 0px;
padding: 0px;
}
#header {
width: 760px;
height: 100px;
padding: 0px;
background-image: url(images/headergradient.jpg);
background-repeat: repeat-x;
text-align: bottom;
}
#logo {
float: left;
vertical-align: top;
background: url(images/companylogo.jpg);
background-repeat: no-repeat;
height: 59px;
width: 314px;
}
#navtext {
float:right;
vertical-align: bottom;
}
</style>
</head>
<body>
<div id="header">
<div id="logo">
</div>
<div id="navtext">
Weddings | Portraits | Dogs | Enquiry | Feedback
</div>
</div>
<!-- <div id="header"> <img src="images/companylogo1.jpg" style="vertical-align: top;"> -->
</body>[/CODE]
<i>
</i>#navtext {
float:right;
margin-top: 70px;
}
<i>
</i><style type="text/css">
body {
margin: 0px;
padding: 0px;
}
#header {
width: 760px;
height: 100px;
padding: 0px;
background-image: #fff url(images/headergradient.jpg) top left repeat-x;
}
#header h1 {
margin: 0;
padding:0;
font-size: medium;
}
#header span {
position: absolute;
width :314px;
height: 59px;
background: transparent url(images/companylogo.jpg) top left no-repeat;
}
#header ul {
list-style: none;
}
#header ul li {
float: left;
padding:2px;
margin-top:2em;
border:solid 1px #000;
}
</style>
</head>
<body>
<div id="header">
<h1 title="Logo title"> <span></span>Logo title</h1>
<ul>
<li>Weddings</li>
<li>Portraits</li>
<li>Dogs</li>
<li>Inquiry</li>
<li>Feedback</li>
</ul>
</div>
</body>
[CODE]<div id="header">
<hi> code here </hi>
</div>[[/CODE]
[CODE]<div id="header">
<logo></logo>
</div>[/CODE]
[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
margin: 0px;
padding: 0px;
}
#header {
width: 760px;
height: 100px;
padding: 0px;
background-image: url(images/headergradient.jpg);
background-repeat: repeat-x;
}
#logo {
float: left;
/*vertical-align: bottom;*/
background: url(images/companylogo.jpg);
background-repeat: no-repeat;
height: 100px;
width: 314px;
}
#navtext {
float:right;
text-align: right;
margin-right: 5px;
}
</style>
</head>
<body>
<div id="header">
<div id="logo">
</div>
<div id="navtext">
Weddings | Portraits | Dogs | Enquiry | Feedback
</div>
</div>
<!-- <div id="header"> <img src="images/companylogo1.jpg" style="vertical-align: top;"> -->
</body>
</html>[/CODE]
[size=1]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
margin: 0px;
padding: 0px;
}
#header {
width: 760px;
height: 100px;
padding: 0px;
background-image: url(images/headergradient.jpg);
background-repeat: repeat-x;
}
#header h1 {
margin: 0;
padding:0;
font-size: medium;
}
#header span {
position: absolute;
width :314px;
height: 59px;
background: transparent url(images/companylogo.jpg) top left no-repeat;
}
#navtext {
padding: 0;
margin: 0;
list-style: none;
float: right;
margin-right: 5px;
margin-top: 55px;
}
#navtext li {
display: block;
padding: 0 5px;
line-height: 110%;
border-right: 1px solid #000;
float: left;
}
#navtext li#last {
border-right: 0;
}
</style>
</head>
<body>
<div id="header">
<h1><span></span>Company Title</h1>
<i> </i><ul id="navtext">
<i> </i> <li><a href="">Weddings</a></li>
<i> </i> <li><a href="">Portraits</a></li>
<i> </i> <li><a href="">Dogs</a></li>
<i> </i> <li><a href="">Enquiry</a></li>
<i> </i> <li id="last"><a href="">Feedback</a></li>
<i> </i></ul>
</div>
<!-- <div id="header"> <img src="images/companylogo1.jpg" style="vertical-align: top;"> -->
</body>
</html>
[/size]
[i]Originally posted by bradles [/i]
[B]That looks downright hideous in the design view of dreamweaver Paul but when you display it in a web page it does what I want it to do.
Thanks. Now I just have to wrap my head around the CSS (being fairly new to it). [/B][/QUOTE]
[i]Originally posted by Jona [/i]
[B][font=trebuchet ms]Thanks for that, Paul, I had lost my Internet connection and wasn't able to connect for the past two days. It really frustrated me.[/font] [/B][/QUOTE]
0.1.9 — BETA 5.18