Starting with CSS
Faruk Ateş provides a set of CSS rules to use as a starting point in Starting with CSS: revisited.
Why reset the margins and padding of specific element types instead of using the universal selector (
*) to set everything to zero? Two reasons:
- Some browsers have default values for the margin and padding of form elements. Setting them to zero is not always a good idea.
- Since the universal selector matches every element in the document tree, it can slow things down.
Those are valid enough reasons, and I’ve started using a set of starting rules similar to those in Faruk’s example.
Subscribe / follow
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost