Hi I'm having a bit of trouble with coding my website. I want the header to have a background colour and fill the area that all the content is in.
I don't know why this isn't working.
It works when I replace the image with text but why doesn't it work with the image there?
I don't know why this isn't working.
HTML:
<div id = "header">
<img src="images/logo.gif" alt="Logo" align="left" height="60" width="180">
</div>
<!-- header end -->
Code:
body
{
margin: 0;
padding: 0;
text-align:center;
color: white;
font: small Arial, Helvetica, Verdana,sans-serif;
}
#header
{
background: aqua
}
It works when I replace the image with text but why doesn't it work with the image there?