Firstly, change your divs to classes then you only need one class (without having to use nested CSS which can cause problems later down the line) and float each one to the left. How I would do it (your total image widths (width plus margin) don't fit into your container size so I have adjusted bits accordingly):
HTML Code:
<div class="container">
<div class="pic">
<img src="pictures/characters/1.png">
<span id="pic1text">text1</span>
</div>
<div class="pic">
<img src="pictures/characters/2.png">
<span id="pic2text">text2</span>
</div>
<!-- And so on for each image -->
Code:
.container{
width:950px;
padding: 0 19px;
}
/*div of each image*/
.pic {
float: left;
height:350px;
width:126px;
margin-right: 5px;
}
.pic:nth-child(7n+7) {
margin-right: 0;
}
Bookmarks