One of the best ways to solve cross-browser compatibility issues is to never add side margins to an element with a set width. Instead, put another div inside that div. Set the width on the outer div, and the side margins on the inner div.Same with top and bottom margins. Never set top or bottom paddings/margins to a div with a fixed height. Put a div inside, and set the height on the outer div, and the margins on the inner div.