Hoping someone can help here - been trying to get this working for a while and getting nowhere.
I'm playing about with a simple (or so it seems) CSS\HTML layout that will display one large (500px) box on the left and six smaller (250px) boxes beside it. Something like this:
|----|--|--|--|
| | | | |
| |--|--|--|
| | | | |
|----|--|--|--|
But no matter how I try, the second row of smaller boxes always jumps below the larger one, rather than sitting below the first. More like this:
|----|--|--|--|
| | | | |
| |--|--|--|
| |
|----|---
| | | |
|__|__|__|
I've copied my markup in below - I'm probably missing something really obvious here, so any help would be welcomed (the dashed borders here are more for my own sanity, so I can see the layout of each DIV).
#contentbox {
max-width:1300px;
border:1px dashed blue;
text-align:center;
font-size:0;
margin: 4% auto;
}
#bigbox {
width:500px;
height:500px;
border:1px dashed blue;
display:inline-block;
}
#box {
width:250px;
height:250px;
border:1px dashed blue;
display:inline-block;
vertical-align:top;
}
<!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<title></title>
</head>
<body>
<div id="contentbox">
<div id="bigbox"></div>
<div id="box"></div>
<div id="box"></div>
<div id="box"></div>
<div id="box"></div>
<div id="box"></div>
<div id="box"></div>
</div>
</body>
</html>