Click to See Complete Forum and Search --> : Space/padding Firefox


kpikul
02-29-2008, 09:23 AM
The spacing and padding of my tables and cells always larger in Firefox then they are in IE. Is there something I need to put in my CSS to make both of them consistent?

WebJoel
02-29-2008, 09:31 AM
<style>
* {padding:0; margin:0;}
</style> before "</head>" will strip any/all browser default settings for these Selectors, thus, 'leveling the playing field'. This removes padding & margins from ANY element that you can possibly name, so, no need to restate "padding:0;" or "margin:0;" again.

You will need to re-state any desired padding and any desired margins now, for any element, but the good thing is, they will be the same now for all browsers...

This is called the "universal selector method", btw. :)

kpikul
02-29-2008, 09:36 AM
Awesome! Thanks