
Smashing Magazine we smash you with the information that will make your life easier. really.
CSS Frameworks + CSS Reset: Design From Scratch
September 21st, 2007 in CSS | 146 Comments
You don’t have to write the same CSS-code or (X)HTML-Markup over and over again. Whatever project you’re starting to work with, at some point you have to define classes and IDs you’ve already defined in your previous web-projects. To avoid unnecessary mistakes you might want to start not from a blank file, but from an almost “perfect” scratch. The latter might contain some basic definitions you’d write in your code anyway. However, once you’ve decided to create such a scratch, you need to make sure it is really bulletproof — besides, if the stylesheet also sets up optimal typographic rules and basic form styling you manage to kill two birds with one stone.
And this is where CSS Frameworks and CSS Reset are becoming important. Using them, you can get yourself a perfect default-stylesheet and markup, save your time and ensure the best quality of your code from the very beginning. But what are CSS Frameworks? And why do you need the Reset for?
Let’s take a look at the idea behind CSS Frameworks, their advantages and disadvantages, most popular CSS frameworks and dozens of default-stylesheets you can use designing a new web-site from scratch.
- This article partially covers tools and techniques which use Grids. You might want to make sure you get the idea behind the grid-based design approach — from our article Designing With Grid-Based Approach.
- You can find hundreds of CSS templates in our article Free CSS Layouts and Templates.
- Please notice that this article takes a closer look at CSS Frameworks, not at extensive server-side programming frameworks such as CakePHP and also not at Web Development Environments such as Coda or Dreamweaver.
What is a CSS Framework?
- A framework is a basic (usually abstract) conceptual structure which you can use as a “scratch” for your web-projects. For instance, instead of defining global reset, consistent baseline, typographic rules or basic styles for forms over and over again — every time you work on a new project — you can prepare a default-style once and reuse it in all your future projects. This is what you call a CSS Framework.
- CSS frameworks don’t have to be complex or large, they may contain a set of simple CSS-styles such as
- typography.css for basic typographic rules,
- grid.css for grid-based layouts or
- layout.css for general layouts,
- form.css for basic form styling,
- general.css for further general rules
and so on. In your code segmentation you can also go further, for instance: structure, typography, design presentation, specialist sections (e.g. menus, navigation), print, mobile web, tweaks (mostly old style browser hacks), browser specific workarounds (via IE conditional statement). “On the whole code segmentation in frameworks is handy to work with, but it can add some real load to a server with the extra http request per page view.” [Treading Lightly With CSS Frameworks, by Gary Barber]
- “[Framework is] a set of tools, libraries, conventions, and best practices that attempt to abstract routine tasks into generic modules that can be reused. The goal here is to allow the designer or developer to focus on tasks that are unique to a given project, rather than reinventing the wheel each time around.” [Framework For Designers, by Jeff Croft]
Advantages of CSS Frameworks
- You increase your productivity and avoid common mistakes.
If you develop several sites of the similar nature, an abstraction of CSS code can dramatically speed up your productivity, help you to avoid common mistakes and simplify the management of CSS code. - You normalize your code/class base.
You have a common “default” CSS-code and (X)HTML-markup, so you always use the same IDs and class names in your projects. Code consistency throughout a number of projects makes it’s easier for you to maintain a web-site without digging into the source code of every project you’ve ever worked on — to understand how you’ve actually built the web-site. - You have a better workflow within a team.
If a CSS-framework is well documented, it can be used within a team as a common ground-up; thus you can avoid misunderstandings and ensure an optimal workflow. The latter results in avoiding mistakes and helps you to meet deadlines without compromising on product quality and without overtime costs. - You gain an optimal browser-compatibility.
Since your CSS-framework is “bulletproof”, you don’t have to worry about browser-compatibility issues and can start coding right away. - You have a clean, well-structured and complete code.
CSS Frameworks provide you with a well thought-out foundation for your sites; using them you have the basic styling of all html-elements you’ll ever need to style from the very beginning of your projects. Have you ever forgotten aboutcodeorabbr? That’s the point.
Disadvantages of CSS Frameworks
- You need time to fully understand the framework.
“For the average user, [..] the time required to understand the architecture of the framework far outweighs the menial task of coding it from scratch.” [Why I don't use frameworks] - You need a close familiarity with your code’s architecture.
Using external CSS frameworks, you still need a profound understanding of your code. You need to know exactly how your framework is actually built. “By building a site from the ground up, you gain a knowledge of your site’s architecture that can’t be learned through any study or documentation.” [Why I don't use frameworks] - You might inherit someone’s bugs or mistakes.
If you use external CSS Frameworks you might get in trouble fixing someone else’s bugs which is far more time-consuming than fixing your own bugs. - You develop sites upon a framework, not upon the solid knowledge of CSS.
“A big problem with frameworks is when up and coming developers attach themselves to a framework as opposed to the underlying code itself. The knowledge gained in this case surrounds a specific framework, which severely limits the developer.” [Please Do Not Use CSS Frameworks, by Jonathan Christopher] - You get a bloated source code.
“Whether it be in a server side language framework or JavaScript library, there is often a large percentage of code that will never be executed. While not a major issue server side, this can greatly degrade the performance of a client side framework such as a JavaScript library.” [Please Do Not Use CSS Frameworks, by Jonathan Christopher] - CSS can not be framed semantically.
“CSS and (X)HTML go hand in hand. (X)HTML is a language semantic in nature, which is impossible to wrap up in the style of a framework. Each and every project is unique in and of itself, right down to the document structure, classes, and ids. A CSS framework passively removes a great majority of semantic value from the markup of a document and, in my opinion, should be avoided.” [Please Do Not Use CSS Frameworks, by Jonathan Christopher] - Ignoring the uniqueness of your projects.
Designs should be based upon the content, not upon a standard template you use over and over again.
CSS Frameworks
YAML (Yet Another Multicolumn Layout)
Dirk Jesse’s extensive (X)HTML/CSS Framework offers the whole bunch of default-templates for a number of simple or more complex web-projects. YAML is based on web standards and supports every modern web browser. All Internet Explorer’s major rendering bugs are countered. YAML fully supports all IE versions from 5.x/Win to 7.0.
Apart from a number of standard-conform layouts the framework also offers a debugging stylesheet, print stylesheet as well as various robust tools for web-development in YAML. All CSS components of the framework as well as the various layout methods are thoroughly documented in both English and German, supplemented by numerous examples.

You can also use a YAML Builder to develop your layout visually - in your web-browser. You can choose a Doctype, basic layout elements (#header, #footer, …), the number of content columns as well as preferred column order and set the layout and column widths. You can also drag & drop and nest both sub-templates and dummy content, display and output the complete code (XTHML markup and CSS) and switch between draft mode and preview of the finished layout.
The Blueprint CSS framework, created by Norwegian tech student Olav Frihagen Bjørkøy, is a very promising foundation for developing typographic grids using CSS. The framework offers an easily customizable grid, sensible typography, a typographic baseline and a stylesheet for printing. It also uses relative font-sizes, provides a CSS reset and is supposed to be cleaned of code bloats. The latter isn’t always true.
Besides, you can also use the Blueprint Grid CSS Generator to generate more flexible versions of Blueprint’s templates. Whether you prefer 8, 10,16 or 24 columns in your design, this generator now enables you that flexibility with Blueprint CSS Framework - a new “to-become-standard” in grid-based design approach.
Yahoo! UI Library CSS Foundation
Yahoo! UI Library presents a set of CSS frameworks: the core YUI CSS foundation includes the Reset CSS, Base CSS, Fonts CSS, and Grids CSS packages.
While Reset CSS removes and neutralizes the inconsistent default styling of HTML elements, Base CSS applies a consistent style foundation for common HTML elements across A-grade browsers.
Fonts CSS offers cross-browser typographical normalization and control; the framework provides consistent font sizing and line-height, supports user-driven font-size adjustment in the browser, including cross-browser consistency for adjusted sizes and works in both Quirks Mode and Standards Mode.
Grids CSS delivers four preset page widths, six preset templates, and the ability to stack and nest subdivided regions of two, three, or four columns. The 4kb file provides over 1000 page layout combinations. The framework supports easy customization of the width for fixed-width layouts; it also supports fluid-width (100%) layouts as well as preset fixed-width layouts at 750px, 950px, and 974px, and the ability to easily customize to any number. YUI also offers The YUI Grids Builder — a simple interface for Grids customization.
You should be aware that these frameworks are often criticized for bloating the code with non-semantic markup and generating too many unnecessary classes, IDs and div-containers in CSS. Yahoo! UI Library also provides a detailed documentation with numerous examples, tutorials, cheat sheets, templates and tools.
CSS Global Reset (CSS Baseline)
- Global Reset is needed to ensure the more or less identical cross-browser presentation of your web-sites. By default different browsers use different values for margin, padding or line-height. Global Reset makes sure all (or probably most) browsers render sites identically.
- * { margin: 0; padding: 0; } is a bad practice.
“Unfortunately, this isn’t a good practice. It’s very heavy on the rendering agent to apply rules to every single element in the document, especially with large web pages, and this can also destroy a lot of good default styling, especially when you want to have default styled submit buttons.” [CSS Techniques I Use All The Time by Christian Montoya] - Tripoli
Tripoli is “a generic CSS standard for HTML rendering. By resetting and rebuilding browser standards, Tripoli forms a stable, cross-browser rendering foundation for your web projects.”A set of default-CSS-files is supposed to give you a profound foundation for cross-browser compatible CSS-based designs. All default-values - including dozens of elements - tables, lists, typography, but also headers (h1 - h6), abbreviations, citations, quotes and forms are selected to enable an optimal legibility and well-structured text presentation. - CSS Reset Reloaded by Eric Meyer
A “reset” or “baseline” set of styles, not based on the universal selector. As Meyer says, “the styles should list all the actual elements to be reset and exactly how they should be reset.” - Yahoo! UI Library: Reset CSS
YUI Reset CSS file removes and neutralizes the inconsistent default styling of HTML elements, creating a level playing field across A-grade browsers and providing a sound foundation upon which you can explicitly declare your intentions. - CSS Global Styles Reset by Kyle Neath
A simple CSS reset with some additional classes for better debugging. - CSS Global Reset by Christian Montoya - css
“It’s far better to have a complete list of default settings to apply from the beginning that targets the specific browser inconsistencies.” - CSS Global Reset by Mike Rundle (currently unavailable)
- Master Stylesheet
This default-stylesheet takes some typographic rules into consideration, such as the spacing between heading tags, paragraphs, and blockquote elements.
CSS: Basic Styling
- Web Typography: bottom margins of paragraphs and lists by Marko Dugonjic
- Compose To A Vertical Rhythm
“The basic unit of vertical space is line height. Establishing a suitable line height that can be applied to all text on the page, be it heading, body copy or sidenote, is the key to a solid dependable vertical rhythm, which will engage and guide the reader down the page.” - Baseline Stylesheets by Darren Hoyt
- One clean HTML markup, many layouts… by TJKDesign
- Mike Stenhouse’s CSS Framework
There is a possibility of breaking down stylesheets into components that could be reused across projects. The next logical step is to extend this to become a CSS framework, allowing rapid development of sites with pre-written and tested components. All that’s really required to produce this is a set of naming conventions and a flexible base template…
Develop Your Own CSS Frameworks!
Keep your CSS frameworks as abstract as possible. Usually the global reset style and basic formatting rules are a sound compromise which will give you a though-out starting point and won’t bound you to the rigid structure of the framework.
Developing your own default-styles, keep the numbers of classes, IDs and used html-elements to a minimum; keep the importance of semantic meaning of the classes in mind.
More ideas? Let us know — share your starting points and your knowledge in the comments!









Jonathan Christopher (September 22nd, 2007, 12:10 am)
I just wanted to note, as an additional reference, for your very comprehensive coverage, that I’ve written an additional piece regarding Link [mondaybynoon.com] that has been brought up in this ongoing discussion.
There are some great comment threads surrounding CSS frameworks, with a lot of very intelligent arguments coming from both sides.
AD (September 22nd, 2007, 12:14 am)
Great article - thx a ton!
parmgrewal (September 22nd, 2007, 12:29 am)
Thanx for providing nice article on this subject really loved it..
Matt H (September 22nd, 2007, 1:15 am)
I feel like:
CSS Reset Reloaded by Eric Meyer
and
font-size:62.5%; by Richard Rutter
is all I need to get started.
Wallace (September 22nd, 2007, 1:16 am)
very informative article, bookmarked it, thanks.
Billy Halsey (September 22nd, 2007, 1:17 am)
Thanks for covering this topic! I am currently redesigning my blog, and this is a very timely article as I decide whether to use a framework or not in redesigning the site. :) But then, all your articles are simply smashing.
Troy Whiteley (September 22nd, 2007, 2:38 am)
Over the years I have created many CSS files and through that have built up a vast library of templates. My main CSS file is always basic styles etc. The next will always be more specific settings. I believe that by dividing the files up between basic and advanced helps keep you more organized.
Ben (September 22nd, 2007, 4:10 am)
Here is another framework, Elements
Link [elements.projectdesigns.org]
Dwight House (September 22nd, 2007, 6:38 am)
Oddly enough, I created my own framework beginning last year to make my work easier. It’s not as fancy or complete as some of those others, but it does have some very nice features that they don’t have (as far as I know, anyway). The main goal was to have a two column layout that was source reordered, while simultaneously centered and resizable. Need to update it though.
Link [perfect.dwightdesign.com]
Marco (September 22nd, 2007, 9:47 am)
I’m using Blueprint CSS along with the Django Framework and some filters for advanced typography on a german site for Link [www.life-hacker.de].
It’s so beautiful to read, but you have to remember, the CSS will only do part of it and not the whole job.
Josh Minnich (September 22nd, 2007, 12:32 pm)
I agree with Matt (#4). I used Eric Meyer’s reset sheet and changed the font-size to 62.5% and everything works perfectly.
plasebo (September 22nd, 2007, 1:10 pm)
I recommend everyone to avoid using css framework. Any website should have its own css files, instead of generic ones. The reset or generic css files from Eric Meyer or the one from Tripoli worth a look. I recommend these css files for content layout only, not the template structure…
Darren (September 22nd, 2007, 3:04 pm)
I am currently developing my own CSS framework. I think it is much more important to do that then use someone else’s as it demonstrates your capabilities along with ensuring a strong knowledge of the language (in this case CSS).
George Huff (September 22nd, 2007, 3:17 pm)
I would say frameworks are great if you have the time to learn them and you are already familiar with the CSS code. If you are somebody who wants to try to learn it all with the quick framework method, you won’t be able to troubleshoot.
I think the best way to go about it is to develop your own framework - which is what people end up doing over time anyways.
Good article.
Andy Gongea (September 22nd, 2007, 5:38 pm)
Nice article. First I saw it on 24ways.org but not so well explained. 2 thumbs-up
ak (September 22nd, 2007, 5:57 pm)
Well-researched article, thank you!
However, you’ve missed Link [eswat.ca].
Tim Davis (September 22nd, 2007, 11:28 pm)
Great article! It’s great to see an honest open minded article on this topic. I have spent a great deal of time learning CSS and find these frameworks a great way to produce sites that work out of the box and deliver product to the client in a more efficient/quicker manner.
We can now concentrate on design and not browser bugs!
Pensador (September 22nd, 2007, 11:45 pm)
I was not aware that CSS Frameworks existed. I have bookmarked this article and I will definitely refer to it in the future. Thanks!
Paul (September 23rd, 2007, 7:08 pm)
Just in time for me with this one. I was just thinking the other day as I was developing a site, that I need to develop a css framework, but you provided it here for me. thanks
Kooshdy (September 23rd, 2007, 8:09 pm)
blueprintcss is a very promising framework
Link [www.kooshdy.com]
michael mckee (September 24th, 2007, 12:39 am)
Great article, as usual. I’ve been giving a lot of thought to using frameworks and have spent some time with Blueprint and YUI. There’s some good work going on in the field and I have taken some of the ideas and incorporated them into my work.
I think that instead of making a one size fits all framework, I’m more inclined to build a library of reusable text and layout styles that I can plug and play into a site.
It starts with a reset modeled on Eric Meyer’s then a standard HTML element set of styles. I’ve been using the List-a-matic menu conventions for my navigation and have been saving some layout patterns with consistent naming of id’s and classes. The patterns are installed in my editor’s clippings library and ready to include with a few keystrokes. Common IE bug fixes are in their own library and ready to include.
It certainly takes longer to build your own library than to learn how to use a framework but doing so brings the advantages of reusability and completeness and avoids the bloat of unused classes that a framework needs to include. It’s a work in progress that began with a site I built a year ago and have added to with each new design. So I’m not sitting down and trying to build a library but saving the best parts of sites as I go.
Jared (September 24th, 2007, 4:44 am)
Global resets and font-size 62.5% is where I always begin.
Everything else is the fun part!
Great article none-the-less.
Enchance (September 24th, 2007, 6:49 am)
What a coincidence! I just thought of developing my own framework before going to bed last night…and here I am reading this article! What are the odds of that happening?
Thanks! At least now I know it’s called “frameworks” and although you gave a lot of predeveloped frameworrks to begin with, I’d still prefer to make my own.
Steve (September 24th, 2007, 5:29 pm)
another awesome article. Thanks guys.
James (September 24th, 2007, 7:14 pm)
I’ve been thinking about frame works recently and how to create a typography style sheet where you would only need to change the font-size, line-height and margins once (on the body element) and all subsequent elements would cascade to maintain the vertical rhythm.
I set my line-height in pixels on the body element and it resized along with the font-size in Firefox!
I’m unsure as to the next steps though…
Jean-Philippe Encausse (September 24th, 2007, 9:53 pm)
Hi !
Does any body know a serious website that list naming convention for css classes/ids ? In a large scope:
- For layout: #Wrapper, #page, #column
- For look: .colored, .float,
- For …
I’m not exactly talking about CSS Framework, the goal behind this is to design a generic part of a web site with a kind of css “contract” for other developers.
Example ?
- Login form of application
- Facebook layouts
- Generic poll design
- …
Regards,
Jp
James (September 24th, 2007, 9:54 pm)
Further to my last comment, if you specify the margin-bottom in ems (say, 1.5) and then set margin-bottom to inherit on your headings and paragraphs, it should maintain consistent vertical rhythm.
Working in Firefox.
Jens Meiert (September 24th, 2007, 11:34 pm)
“Assuming use of additional style sheets, these “reset” or “undo” style sheets are rarely necessary, and the redundancy created is probably neither wise nor professional”, may I even cite a Link [meiert.com] … CSS frameworks and CSS “resets” may be seen useful in certain cases, but of course, they’re never an efficient solution (or even “the best”). Which might make them a real taboo anyway …
However, nice roundup for everyone interested in the matter.
ptamaro (September 25th, 2007, 5:22 am)
It seems like a lot of designer’s forget about print media these days. It would be nice for example, to print these articles without the comments, or perhaps hide things that don’t make sense on the printed page (e.g. navigation). Just a thought…
Starfeeder (September 26th, 2007, 1:01 am)
Nice post, too many tools to choose from 0_o
Starfeeder (September 26th, 2007, 1:02 am)
Oh forgot to mention NICE new layout! :)
David Thomson (September 27th, 2007, 5:52 pm)
You can also check out Link [www.hundredthcodemonkey.com] which was developed from Blueprint and is moving in a new direction based on every new interface I develop with it.
Basic improvements to Blueprint is the reduction of code bloat, fully customised grid settings, classes to deal with horizontal alignment issues(particularly in forms), improved grid structure to deal with graphic design assests and a class/es to id converter.
plasebo (September 28th, 2007, 2:09 am)
My company have a dozen of web designers who design websites with tables for layout. I was discourage with the way the code was made out there. The codes were so crappy, damn it !. I’ve decided to try all the CSS frameworks available on the net to make them available in my company and then provide a consistent look across all the website we would be making. Unfortunately, all the framework, I’ve tried break the table design. Some of them were horrible in display.
I’m now sticking to Eric Meyer only global reset CSS with some added CSS to make it pertain to my company…
Nonda (September 30th, 2007, 12:18 am)
It seems like a lot of designer’s forget about print media these days. It would be nice for example, to print these articles without the comments, or perhaps hide things that don’t make sense on the printed page (e.g. navigation). Just a thought…
bruno bichet (October 1st, 2007, 4:46 pm)
Hi, I’ve done a french translation of this greaaaat article on my blog! Link [www.css4design.com]
Thanks again for the cool content you provide.
shane plasebo (October 1st, 2007, 8:09 pm)
Is there any CSS framework for web designers that design with tables?
jeff (October 2nd, 2007, 5:08 am)
@shane If you’re still designing with tables it’s time to update your skillset.
bruno bichet (October 3rd, 2007, 5:28 am)
@jef tables are good : I’ve put all of them in my chimney ;)
Logicoder (October 5th, 2007, 12:55 am)
Just a note about last efforts on getting a Link [logicss.googlecode.com]. It actually implements good typography and a totally flexible grid (em, % or px) thru a grid builder. If anyone cares, please take a look.
Cheers !
pobear (October 5th, 2007, 6:43 pm)
everyone have their own’s habit,css Framework dosen’t fit for me!
polarizer (October 5th, 2007, 10:38 pm)
Another good start for CSS-framework is here[1]
The polarizer
[1]http://intensivstation.ch/en/
Papuas (October 28th, 2007, 3:56 am)
hmm nice article, very interesting… hmm own framework….
Ricks (November 7th, 2007, 2:52 am)
Excellent article.
I liked the Christian Montoya article so much.
Ionut (November 24th, 2007, 12:30 am)
Great article indeed!!!
Dennison Uy - Graphic Designer (January 6th, 2008, 9:55 am)
I personally am not a big fan of frameworks, but if you work with a team enforcing frameworks is a good way of getting things done consistently and getting everyone up to par when it comes to CSS standards.
Cezary Tomczyk (January 17th, 2008, 3:18 am)
Nice idea, but I think, that almost all web sites or applications have own detailed stylesheets and there is some trouble to make one, perfect stylesheets for every html document.
Jarmo Valmari (January 19th, 2008, 8:50 am)
Nice. While searching stuff to write about, did you happen to see any scientific articles about CSS Frameworks or reuseble web design / user interfaces? This is an interesting thing and I consider studying the subject for my master’s thesis. It seems there’s not much scientific, valid research on this matter. Yet reusable user iterface / layout components should be in the interest of many if you think about how huge the industry and opportunities are.
keith (January 22nd, 2008, 7:23 am)
nice article. worth a try.
Davide Bisconti (January 29th, 2008, 2:30 am)
Great Article I Use Blueprint.
Michael Bouclas (February 10th, 2008, 7:09 am)
Nice article, in my opinion a css framework would only make sense on a large scale project where you have low to medium quality personnel working on this part of the project.
Raju Khadgi (February 19th, 2008, 9:04 am)
Nice.
Iove to read this.
Anika Henke (April 14th, 2008, 4:13 am)
I think CSS frameworks can be great for beginners, but for professionals they are just “too much” and too restrictive. (Although they are still good learning material.)
That is why I wrote one myself: Link [www.cosmocode.de]. (It is more a “master template” than a “framework”, really.)
Juan Manuel Lucero (April 14th, 2008, 4:38 am)
What about 960gs?
Seems very promising too!
960 Grid System
It has some PDF’s to print too.
Mike (May 30th, 2008, 6:22 pm)
Yet another framework: BlueTripCSS Link [capsizedesigns.com]
Guillaume (July 8th, 2008, 6:54 am)
I think it’s a nice way to make all browsers understand your design the same way. Personnaly, I use typography from blue print css to get a clean design for all basic html tags then I make one of my own because I’m not used to design websites with grids yet.
窦晓泉 (July 23rd, 2008, 7:16 pm)
你们写的我看太懂啊,因为我是中国人
h-a-r-v (August 6th, 2008, 10:58 am)
Not my cup of tea. I neither do templates nor web 2.0 simple-style-sites, each one of my design’s pretty different and I consider coding a site from zero as pro approach.
Rajveer Singh Rathore (August 12th, 2008, 1:29 am)
[...]Link [www.inspiredbuddy.com][...]
Bill Heaton (September 9th, 2008, 9:03 am)
Two Rockin’ CSS Grids mashed into one framework - 960.gs & Blueprint… Link [rant.cc] - 960.gs has both 12-column or 16-column grids ready to go. While Blueprint has more comprehensive element styles, a 18px baseline grid, and a few additional settings (e.g. the “pull” class to break outside the grid). So, I’ve taken the elements that I like best about each css framework and mashed them together into one.
syahrir (October 30th, 2008, 11:47 pm)
I think its doesnt matter to use css frameworks as long you understand what are you want to do.
and off course you know how to use it
regard
syahrir
Link [www.syahrir.web.id]
中国人 (November 5th, 2008, 6:55 pm)
哈哈,别吓坏了
成龙 (November 5th, 2008, 6:55 pm)
中国龙入侵
中国冏人 (November 5th, 2008, 7:09 pm)
56楼太为中国人张脸了……
囧rz 崮rz 莔rz 冏rz !!
成龙 (November 5th, 2008, 7:22 pm)
我觉得要一个css framworks完全没必要,只要积累自己的代码片段就可以了。
楼下的请继续发表看法。
John C. Reid (November 20th, 2008, 11:53 am)
I have started looking at CSS frameworks and reset style sheets lately, and I have come to a basic conclusion.
Why reset? Set instead. Simply put, replace your reset style sheet with one that SETs all the basic styles to the defaults you would like to start from instead. You still get a good baseline across browsers by setting all your styles to a standard format. I just don’t see the point of doing something to force me to specifically undo it later. I would much rather start with a style sheet that has a reasonable starting point that overrides the differences between browsers while at the same time making elements appear as I would expect them to everywhere.
So how about we see the death of the reset style sheet and the birth of frameworks with set style sheets. I think I will work on creating my own set.css in the near future.