My Standard CSS Attributes

This is my minimal set of CSS Attributes that I use on nearly every project I work on.

If you have any improvement suggestions, feel free to share.

8 FEEDBACKS

  1. sage says:

    Well… Isn't it a better practice to choose syle names using what the zone IS than using HOW it should render ?

  2. You often need a clearfix class:
    .clearfix {
    display:inline-block;
    }

  3. Fantastic suggestion! thanks :)

  4. I agree with adding clearfix to this list, but other than that nice work!

    Thanks.

  5. I'm sorry, I don't understand what you're trying to say.

  6. dhouston says:

    He's saying that naming a class “block” and defining it as “display: block” is redundant and confusing. Can you use this in an example to show how it's useful?

  7. One again, your articles is very good.thank you!very much.

LEAVE A COMMENT

Additional comments powered by BackType