How can i place the container to the center of the screen horizontally. The container has 8 images to be placed. All the images are to be aligned to a single line and should change accordingly to screen resolution.
Here is my HTML
<div id="container">
<div id="list" >
<img src="img/c1.png" style="display:box; width:125px; margin-left:5px; margin-top:9px" />
<img src="img/c2.png" style="display:box; width:125px;margin-left:5px;margin-top:9px"/>
<img src="img/c3.png" style="display:box; width:125px;margin-left:5px;margin-top:9px" /> .
.
.
</div>
</div>
CSS:
#container{margin-left: auto;margin-right:auto;width:1200px;}