<slighthijack>
So what <if any> are the rules for padding and margins that will work regardless of browser? I get so much strangeness between FF, Safari and IE regarding padding and margins in both tables and images it just pisses me off, and I wind up going back to hard structured tables. Any thoughts?
</slighthijack>
I just checked the 'big g' for you. There are exactly (1.67 x 10^24) x [(Google links / Yahoo links) x 1000] = lots of pages about the problems of cross browser compatability.
There are some 'rules', but these 'rules' are tricks to make the various browsers go into quirks mode so your stuff looks (mostly) how you want it to.
I had a link to a site that would make you a full css layout that was cross browser compliant for about 15 different makes, models, and ages of browsers. It doesn't connect for me now. So, I suspect that the recent
damage changes made by IE7 have thrown a huge wrench in his works. Here is the link in case the site comes back up:
209.216.241.33/pagemaker_form.php
Here are a couple of links that may help you understand why dedicated css'ers pull their hair and run screaming.
1. Big John and Holly have been on my list forever. Straight stuff in a no nonsense way.
www.positioniseverything.net/2. HTML Dog has some very good css tutorials.
www.htmldog.com/guides/cssadvanced/If you have a few hours (or days) to peek at some astonishing, and pretty much worthless for the average webmaster, css stuff. <these folks have waaaay too much time on their hands>
1. Stu Nichols Css play site has a bunch of goodies. These two examples are in css only. Start here:
a.
www.cssplay.co.uk/menu/banner.html then go here
b.
www.cssplay.co.uk/menu/amazing.html2. I sometimes waste 2-3 hours on this site.
www.csszengarden.com/From the zenMaster
Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible DOMs, and broken CSS support.
Today, we must clear the mind of past practices. Web enlightenment has been achieved thanks to the tireless efforts of folk like the W3C, WaSP and the major browser creators.
The css Zen Garden invites you to relax and meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the (yet to be) time-honored techniques in new and invigorating fashion. Become one with the web.
**Bet you'll think twice about asking me a question like that again**