I am learning CSS and HTML5 but I can't figure out how to do some basic stuff. I'm using google Chrome and trying to create a top bar for the page, essentially a rectangle that extends to every edge of the page and have a simple logo in the bar that allows a user to click it to return home. No matter what I do I always have whitespace around my background, also using the attachment property with the scroll value I get a non-scrolling background.
Heres my code:
img#logo {
width: 10%;
height: auto;
max-width: 100%;
}
#topbar {
background-color: #0000FF;
width: 100%;
height: 10%;
margin: 0px;
padding: 0px;
background-attachment: scroll;
}
<body>
<!-- Our displayed logo/hyperlink to home page -->
<header id="topbar">
<a href="home.html"><img id="logo" src="logo.png" alt="Your company
logo" /></a>
</header>
</body>