3

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.

Yi Jiang
  • 49,435
  • 16
  • 136
  • 136
Alexey Zakharov
  • 24,694
  • 42
  • 126
  • 197
  • Because of a) CSS needs to be transmitted through the interweb tubes and b) Every website is unique, for most parts it is usually best to hand craft CSS for every website. The only exception is grid and reset scripts, but those hardly counts as 'libraries' as you'd put it. – Yi Jiang Aug 22 '10 at 06:08

2 Answers2

9

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.

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.

Community
  • 1
  • 1
  • 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 Sep 14 '10 at 06:02
  • 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. –  Sep 14 '10 at 10:29
  • it appears your fav has been retired, as the link now re-directs. Maybe consider updating your answer. – ted.strauss Mar 26 '12 at 15:46
  • 1
    @ted.strauss Removed: Unobstrusive CSS was just a splash page that provided a tongue-in-cheek framework (something like `* {}`) to make the point that writing semantic HTML lets you avoid having to use a rigid framework in the first place. –  Mar 27 '12 at 04:39
2

You should try using Twitter Bootstrap, it is very easy to use, there are many YouTube tutorials.

I stopped using other CSS methods after finding out about it.

Orbling
  • 20,413
  • 3
  • 53
  • 64
Alejo Toro
  • 71
  • 1
  • 3