CSS: All Properties From CSS 1 to CSS 3
Published on March 27, 2008 (⻠June 19, 2024), filed under Development (RSS feed for all categories).
What would HTML be without CSS? And what is an index of all HTML elements without an index of all CSS properties? To address the latter I present a continuously updated index of all properties specified in CSS 1, CSS 2, CSS 2.1, and CSS 3, including their initial values.
Head straight to the properties list, unless youâre interested in a few details:
-
Most importantly, CSS 3 is still in progress. While Iâll update the index from time to time, properties may be renamed, removed, or added, as references may also change without further notice. Iâll fix them, even faster when youâre so kind to let me know.
-
Thereâs a reason to separate CSS 2 and 2.1: Although CSS 2.1 isnât really clear about it, there are property differencesâ
font-size-adjust
,font-stretch
,marker-offset
,marks
,page
,size
, andtext-shadow
all appear to be removed. -
All properties have been linked to their most recent specification. Usually, it shouldnât mean a problem that most of them point to CSS 3, but there are one, two cases where the specs arenât in sync yet, for example regarding
vertical-align
. -
Some question marks exist where the affected properties donât seem to be specified in CSS 3 yet but will, like
position
, most likely be part of it. But it could also be that I missed the corresponding module if it hasnât been linked from the CSS roadmap. -
The list does not include descriptors, like currently defined in the Color and Web Fonts modules.
-
Then, some [past] numbers: CSS 1 specifies 53, CSS 2 122, CSS 2.1 115, and CSS 3 224 properties; overall, there are 253 different properties (again, not including descriptors). The initial letters of all properties almost use the entire Latin alphabet, except for âjâ, âkâ, âxâ, and âyâ. Yet, as Iâll suggest the Working Group to be more innovative đ
About Me
Iâm Jens (long: Jens Oliver Meiert), and Iâm a frontend engineering leader and tech author/publisher. Iâve worked as a technical lead for companies like Google and as an engineering manager for companies like Miro, Iâm a contributor to several web standards, and I write and review books for OâReilly and Frontend Dogma.
I love trying things, not only in web development (and engineering management), but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (Please be critical, interpret charitably, and give feedback.)
Comments (Closed)
-
On March 27, 2008, 12:38 CET, Tomasz Staniak said:
Respect Jens; thanks for this, itâs good to have memory refresher in one place.
-
On March 27, 2008, 13:11 CET, James Oppenheim said:
Wow, a whole lot of work has gone into this. Nice work!
-
On March 27, 2008, 13:26 CET, Rijk said:
Some things are hard to include in such a list, for example various values for the ‘displayâ property are currently defined in four CSS 3 modules. Another example is ‘floatâ. In my own list of CSS properties Iâve resorted to multiple inclusions of these properties.
-
On March 27, 2008, 17:34 CET, Dave said:
It seems useful, but Iâm not sure how.
Coming from the direction of the actual standards docs, CSS level 1 and CSS level 2 are both Recommendations. CSS 2.1 is still just a Candidate RecommendationâŠitâs recommended for implementation, but still not concrete. Unfortunately, it has to make changes to level 2 rather than just adding on. Developing for 2.1 is not technically stable, and level 2 will not be stable once 2.1 becomes a Recommendation.
Much of Level 3 is still at working draft status, so thatâs not really reasonable to develop for.
Itâs so ridiculous. The browsers claim support for various levels of CSS, but their implementations are partial. Beyond that, itâs somewhat irrelevant what level of CSS they claim to support because we canât specify in our code what level we coded for. Lately, I get a feeling several times a week that web development is held together with string and chewing gum. The web wonât suddenly break, but itâs ridiculous that humanity can create elegant concepts like normalized relational databases and still we have to struggle through using the ratâs nest that is HTML+CSS+browsers.
-
On March 28, 2008, 14:18 CET, Jens Oliver Meiert said:
Tomasz, James, thank youâindeed, this took some time! đ
Rijk, youâre right, it wouldnât only be a challenge but almost impossible to illustrate all values, combinations, dependencies, and so on, especially on screen⊠Thanks for sharing your properties list!
Dave, yes, but there wonât be many changes to CSS 2.1 anymore, at least not around properties. Maintaining the CSS 3 properties will be demanding but also carry the true value of the index. As for targeting certain CSS versions, well, actually itâs fine this way but I understand your concerns⊠after all, it would be awesome to ever be able to work with everything out of CSS 2! đ
By the way, discussions on www-style came with suggestions that Iâll gladly address once I got an idea of the most important steps and the overall maintenance effort.
-
On August 3, 2010, 9:29 CEST, Roshan kumar said:
most of the cases css3 does not work properly so can i know about the reason because due to the this fault we canât use for the clientâŠ
-
On July 7, 2011, 6:04 CEST, David said:
Wow, great resource, thank you!
Iâm not sure if youâre still updating this project, but I think it might be helpful if there was a way to filter by categories, uses, or some other way. Most people wonât look through the entire list, and if they already know the name, theyâre probably looking for detials/tutorial about it. Well, thatâs IMHO anyway. Thanks again, and well done!
-
On February 21, 2012, 20:07 CET, Wingnut said:
Hi
Thereâs lots of broken links on the click-thrus to the spec modules⊠in your css list. For example, none of the âfontâ properties click thru correctly, because somebody made a mistake over in http://www.w3.org/TR/css3-fonts/ where each anchor name requires -prop after it.Your list⊠http://www.w3.org/TR/css3-fonts/#font-style
Actual anchorâŠ
http://www.w3.org/TR/css3-fonts/#font-style-propIts a mistake in the spec document itself. All the anchors are mis-named.
Also⊠maybe take a click through on the hyphenate-before. Its gone from http://www.w3.org/TR/css3-gcpm completely. Last time we saw it was in http://www.w3.org/TR/2010/WD-css3-gcpm-20100608/#hyphenate-before .
Not sure if the click-thrus are important to you or not. I made my own list, derived from yours, over at http://webpages.charter.net/⊠and it has the very same problems that your list does. Do you have some SAY in the W3C CSS working groups and/or know Bert and his gang of upstarts? Could you get that fonts spec/module fixed for us both/all? Thatâd be great.
Know how to find where hyphenation went? It looks like some work needs doing on MANY of the module docs. I just picked a couple of problems. There could be many. If you wander over to my list, take a look at the props with the question marks next to their names. Are they, or should they be⊠missing from your list? Anyone with info on these subjects⊠feel free to mail me at wingthing at charter dot net as wanted⊠thanks. Best wishes, everyone! Wingy
-
On February 21, 2012, 20:12 CET, Jens Oliver Meiert said:
WingnutâIâll have a look, thank you. While I prefer to link to the CSS 3 spec, respective modules are certainly most âvolatile,â so these problems may occur.
-
On April 9, 2012, 18:56 CEST, eags said:
Probably more useful to list browser compatibility instead of which css version. I guess it depends on the purpose of this document. If it is for developer to know what their options are, it isnât very useful as is.
Read More
Maybe of interest to you, too:
- Next: Why âResetâ Style Sheets Are Bad
- Previous: The 10 Design Theses of Dieter Rams
- More under Development
- More from 2008
- Most popular posts
Looking for a way to comment? Comments have been disabled, unfortunately.
Get a good look at web development? Try WebGlossary.infoâand The Web Development Glossary 3K. With explanations and definitions for thousands of terms of web development, web design, and related fields, building on Wikipedia as well as MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.