views:

82

answers:

1

I'm looking for CSS library that hold all common css best practices.

For example block centering style:

.block-center {
   margin-left : auto;
   margin-right : auto;
}

<div class="myClass block-center" />

I want such library to be distributed as separate css file which I can add and use in my projects.

+8  A: 

I think you mean CSS framework: there are tons of them. Just to name a few:

Everyone and their mother has a CSS Framework: there is no best one, and they all have their own interpretation of what constitutes "best practices". it really depends on what one fits your own use.

Edit

Also see bobince's answer on What is the best CSS Framework and are they worth the effort? for why CSS Frameworks are really unnecessary.

Mark Trapp
Note: Anyone who asks which CSS framework to use, is really asking, "By now, there must be a subset of things that will work everywhere. I'm happy with that. Which one delivers that?" They (we) will not have spent the obsessive time gaining the experience to make CSS unnecessary. It's better to learn it all yourself of course, but a bunch of boxes will do.
chiggsy
The problem is that CSS frameworks are trivial to make, which gives everyone and anyone the ability to say "no, my way is the right way." Getting everyone to agree on the same best practices when it comes to starting CSS is like herding cats.
Mark Trapp
+1 for Unobtrusive CSS!
Rocket