Without viewing all the code that I can tell you this ...
If you do not want the contents coming out of the screen, the width of all your items, including margin and padding , must contain no more than 100% or a maximum width of the pixel that you want. (And often, when you mix pixels and percentages, you probably want even less.)
Here is a simple example:
<div id="left"></div> <div id="right"></div> #left{ border:1px solid red; width:20%; height:50px; margin-right:4%; float:left; } #right{ border:1px solid red; width:75%; height:50px; float:left; }
http://jsfiddle.net/nWEnj/
source share