I've been trying to get my 3 boxes to fit in perfectly under my banner but for some reason when I set the width of all and 10px padding it drops one of them under the other two... I'm not sure why but if you can take a look and let me know, thanks. I want it to be exactly in the center and inline with the banner preferable.
<!DOCTYPE html>
<html>
<head>
<title>site</title>
<meta name="description" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="styles.css" />
<link href='https://fonts.googleapis.com/css?family=Libre+Franklin' rel='stylesheet' type='text/css'>
<script src="js/jquery.min.js"></script>
<!--[if lt IE 8]>
<![endif]-->
</head>
<body>
<div id="header">
<nav>
<ul>
<li><a href="">Contact</a></li>
<li class="nav-sep">|</li>
<li><a href="">Portfolio</a></li>
<li class="nav-sep">|</li>
<li><a href="">Blog</a></li>
<li class="nav-sep">|</li>
<li><a href="">About</a></li>
<li class="nav-sep">|</li>
<li><a href="">Home</a></li>
</ul>
</nav>
<div id="banner"></div>
</div>
<div id="content-container">
<div class="content-box"></div>
<div class="content-box"></div>
<div class="content-box"></div>
</div>
</body>
</html>
body {
background: #f9f9fb;
margin: 0px;
padding: 0px;
}
nav {
width: 1530px;
height: 60px;
margin: auto;
}
nav ul {
list-style-type: none;
margin: auto -20px auto auto;
}
nav li {
display: inline-block;
line-height: 60px;
float: right;
}
nav a {
text-decoration: none;
color: #f9f9fb;
font-family: 'verdana', sans-serif;
padding: 0 20px;
font-size: 0.85em;
display: block;
}
nav a:hover {
color: #f9f9fb;
transition: color 0.8s ease;
}
#header {
width: 100%;
height: 340px;
background-color: #212429;
}
#banner {
width: 1530px;
height: 579px;
background: url('banner.png');
margin: auto;
}
li.nav-sep {
color: #313642;
}
.content-box {
width: 496px;
height: 496px;
background-color: red;
float: right;
margin: 8px;
}
#content-container {
max-width: 1530px;
margin: 320px auto auto auto;
}