Hi, this is probably something really simple and obvious, but Im just learning so bear with me!
I want my header to repeat horizontally. It works fine, however when I make the browser window smaller then scroll back across to the right with the scroll bar, the header appears cut off (I think where the container ends) and only starts to repeat again when I resize the browser window larger. Is there any way around this?
Thanks in advance!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Ben Redpath Portfolio</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="main">
<div class="container">
<div id="header">
<div id="logo">
<h1>Ben Redpath</h1>
</div>
<div id="title">
<h3>Graphic Design & Illustration</h3>
</div>
<ul id="top menu">
<li><a href="#">Contact</a></li>
<li><a href="#">C.V</a></li>
<li><a href="#">Blog</a></li>
</ul>
</div><!--end header-->
<div id="content">
</div><!--end content-->
<div id="sidebar">
<ul id="work menu">
<li><a href="#">Work</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Work</a></li>
<li><a href="#">Work</a></li>
</div><!--end sidebar-->
</div><!--end main container-->
</div><!--end main-->
<div id="footer">
<div class="container">
<p>Copyright © 2010<br />
All Rights Reserved</p>
</div><!--end footer container-->
</div><!--end footer-->
</body>
</html>
@charset "UTF-8";
/* CSS Document */
body, div, h1, h2, h3, h4, h5, h6, p, ul, img {margin:0px; padding:0px; }
body { font-family: Arial, Helvetica, sans-serif;
background-color: black;
}
#main {
background: url(images/header_slice.jpg) repeat-x;
}
.container {
width: 960px;
margin: 0 auto;
padding-left: 30px;
padding-right: 30px;
}
#logo {
height: 74px;
width: 185px;
}
#logo h1 {
text-indent: -9999px;
}
#header {
padding-top: 30px;
}