Wednesday, May 03, 2006
Using the universal selector | Bite Size Standards
Universal selectors rock. They're great for equalizing browsers by defaulting margin and padding on all elements (this is now the first line of every stylesheet I write – no surprises that way). And as I've mentioned before, they're a great solution to margin issues such as the "Liquid Layout Gutter Dilemma". And here's another one I'm not sure if I've mentioned here… I use it as a debugging tool. Not sure what attribute is causing that annoying gap? Try * { margin: 0 !important; }. Not that? try * { padding: 0 !important; }. Granted, it's a ways down my list of CSS troubleshooting tricks, but it's can be a handy tool at times.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment