Posted February 16 '09 at 06:21 PM
Posts: 427
Two suggestions when coding with css, and Ive learned this the hard way and through trial and error.
#1
The first line in your css should be
*{margin: 0; padding: 0;}
This resets the margin and padding for all elements and normalizes the padding/margins across different browsers.
#2
Encase your page in a wrapper/container div
<div id="wrapper">
<!--all code goes here-->
</div>
Make this wrapper div a fixed width (usually <1024 for 1024x768 resolution).
These two tips will solve a lot of cross browser and cross resolution issues.

Hope this helps