January 27, 2005

The Universal Selector and Forms

Remember the one about using the universal selector to set margins and padding of all elements to zero? Remember the bit about having problems when using the universal selector when the page contained forms? Well, it would be nice to have a quick solution so we could be on our merry way. Speaking of quick solutions…

My Quick Solution

I copied the stylesheet, forms.css, embedded in Firefox, keeping only any references to margins or padding. Then an @import call was applied to the beginning of my regular stylesheet.

@import url("forms.css");

Download forms.css (1781 bytes).

Comments

Now this is useful. Many thanks.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Posted in: