There is a newer version of this cheat sheet!
The CSS cheat sheet is designed to act as a reminder and reference sheet, listing all selectors (as of CSS 2.1) and properties. It includes a visual example of the box model, unit reference for CSS units and the various media types CSS makes allowance for. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size CSS cheat sheet.
Properties List
The CSS specification includes a lot or properties, many of which are often forgotten or overlooked. Many of these are shorthand properties, defining many properties in one go. The outside columns of the cheat sheet list all available CSS properties.
Syntax
Syntax is one area in CSS where many people stumble when learning it. Often, designers new to the language can spend a great deal of time trying to work out why a specific style isn't being applied, and many times it is either due to a syntax error or inheritance.
Selectors
Given the number of possible selectors in CSS, it is no wonder some people often become confuse. Mixing up ID and Class selectors is easy enough, without throwing sibling, child, attribute and language selectors into the mix. This section of the cheat sheet lists selectors and shows which element(s) those selectors would apply to.
Pseudo-Selectors
Pseudo-selectors are used when defining styles for elements that either do not exist, or are in a particular state. This section lists various of the pseudo-selectors.
Please note - I have left the :before and :after pseudo-selectors off this list, as I felt generated content was too complex to add to this sheet and still define in a way that made that area of the sheet usable.
Media Types
One of the reasons CSS is so powerful is that it makes allowance for different types of devices accessing the same data. This is controlled through media types, and though they are not used in CSS as much as many would like, the chances are that this will change and media types will become more important. This section lists the various media types defined in CSS 2.1.
Box Model
The box model is one thing that consistently trips up those new to CSS. Apart from major browsers not all supporting it correctly, its definition can be at first confusing. The box model section of the page aims to make this clearer.
Units
CSS allows the author to define dimensions and colours in many different ways, which can be especially useful when combined with media types. This section of the sheet lists the various units in CSS and explains what they mean.
Properties that Inherit
Inheritance is another area that trips up new and experienced CSS developers alike. An element within another element can use the same value as its ancestors. For example, if you define a font family for a <div>, and next a <span> within it, the <span> will use the same font family as the <div>, unless explicitly set to be different. Not all properties inherit though, and this section lists (alphabetically) those that do.
Download
So now that you know what it does, please feel free to print out the CSS cheat sheet:
Please note: If you wish to link to the CSS cheat sheet from elsewhere, please link to this page so others find the description, rather than linking directly to the sheet.
Update - 4th July 2005
Brian Warren has created a CSS Cheat Sheet dashboard widget for Mac OS X (and he was kind enough to check with me first, which I really appreciated). (His site is also well worth checking out - a nice use of perspective really helps it stand out).
And finally, if you like the cheat sheets, and want to say thanks, please consider buying me something from my Amazon Wishlist. Thankyou very much to those who have already hunted it down and sent me something nice - I'm very grateful!

212 Comments
This is great! Incredibly handy Way to go!
#1, Jeff Croft, United States, 30 April 2005. Reply to this.
Thanks Jeff. :)
#2, Dave Child, United Kingdom, 30 April 2005. Reply to this.
Very neat! I am sure I will put it on my board. Thanks.
#3, Rahul Jain, United States, 1 May 2005. Reply to this.
Nice work Dave, this one makes this list too. I may actually have to print it out and use it. PHP, well...I've been using it for years and the online reference is so good so...
#4, Douglas Clifton, United States, 1 May 2005. Reply to this.
Any chance you can produce this in a printable format? The current PNG uses antialised text which simply prints out as out of focus (if truth be told, thats how it looks on the screen as well, but screens are more forgiving of poor quality images than are printers). If you must stick with a PNG, then please make it perfectly crisp black on white text without antialising, though I assume that you produced the PNG from some text format page - this is crying out to be turned into a nice clean HTML page for example, which would then print out perfectly.
#5, Anonymous, United Kingdom, 1 May 2005. Reply to this.
I second the motion for a pdf or some printer friendly format. I want to print this in 36"x48" to hang!
#6, Jesse Andrews, United States, 1 May 2005. Reply to this.
Just wanted to show you guys some very useful CSS example - some borders properties and cell background color stated in CSS text file, site menu on yr left and partner list on yr right..
#7, Leo Mouse, Russian Federation, 2 May 2005. Reply to this.
Stick the date and/or revision. This would be helpfulwhen you want to check for the lates and greatest. Thanks for the work
#8, etoelz, United States, 2 May 2005. Reply to this.
Nice idea, etoelz.
#9, Dave Child, United Kingdom, 2 May 2005. Reply to this.
This looks very helpful! Thanks so much for posting it. Like several others before me, it would be great if this was in a format like .pdf that would print the text more clearly.
#10, Jeremy Pinnix, United States, 2 May 2005. Reply to this.
Yes! This is crying out to be a PDF, please!
#11, Carl, United States, 2 May 2005. Reply to this.
Looks quite handy. Good job.
#12, If..Else, United Kingdom, 2 May 2005. Reply to this.
Oh I'm soo gona print this (pdf pls?) and stick on my desk! BIG BIG THANKS! Great article! :)
#13, Maharis Azman, Malaysia, 2 May 2005. Reply to this.
Hmm.. been 3 days and no one seems to create a PDF version. I've been wanting to convert the PHP Cheat Sheet but lack motivation to do so since I mostly code in ASP. But of course CSS Cheat Sheet is a must have for every webdev hence my attempt to create the PDF for hires printing. Please feel free to download from my site http://ganius.tanuel.com/blog/20050503_6
Inside the .zip file I put .doc, .pdf, and .xml for your perusal.
#14, G. Tanuel, Singapore, 3 May 2005. Reply to this.
What a handy thing.
Ta very much Mr.Daniels.
#15, Neil Ford, United Kingdom, 3 May 2005. Reply to this.
This is nice and useful!
However, I'd like to point that :link, :visited, :hover, :active, :focus and :lang(foo) aren't pseudo-selectors, they are pseudo-classes. :first-line and :first-letter are pseudo-elements (http://www.w3.org/TR/REC-CSS2/selector.html).
#16, Marko Dugonji?#8225;, Croatia, 3 May 2005. Reply to this.
Hi Marko,
I decided that rather than have two sections taking up too much space, I'd group them under a single heading, pseudo-selectors. You are completely correct though.
#17, Dave Child, United Kingdom, 3 May 2005. Reply to this.
Would it have been more customer-friendly to produce the CSS cheat sheets as web pages or a downloadable document (Word? of PDF?)? Creating .png images may be using a universal graphics format but disabled readers cannot see the fruits of your labors.
#18, A Webmaster, United States, 3 May 2005. Reply to this.
hello,
i found this page right now, and its such a good idea ... i wanted just to say : thank you
nice greetings from vienna
:) bit
#19, bit2bit, Austria, 4 May 2005. Reply to this.
Thank you.
This has already (less than 5 minutes) helped solve a puzzle.
#20, Ben Hamilton, Australia, 4 May 2005. Reply to this.
First of all, I'd like to thank you for a great resource :-) (I hope you don't mind the fact that I've <a href="http://pub.phphacker.dk/code/css/css_cheat_sheet.png">mirrored</a> it)
But secondly, I can't help to think of the funny thing about a sheet about CSS (that mostly looks like one for the web) has been created as an image, and not an XHTML/CSS design.
#21, Jonathan Holst, Denmark, 4 May 2005. Reply to this.
Thanks for the nice cheatsheet. I did notice that you have the border properties (border-top, border bottom, etc.) all asterisked as shorthand properties, rather than just the first one.
#22, Pat Langille, United States, 4 May 2005. Reply to this.
The border-top, border-right, border-bottom and border-left are all shorthand properties.
#23, Dave Child, United Kingdom, 4 May 2005. Reply to this.
Great!!!!
i write a review (in italian) of it in my blog
Ciao
#24, Fabrizio, Italy, 4 May 2005. Reply to this.
I find that I can't download the entire PNG file(only get 56.6KB of all). Can you fix it?thank you.
#25, JunChen, China, 5 May 2005. Reply to this.
Can I translate the "CSS Cheat Sheet" to Brazilian Portuguese?
#26, Wesley, Brazil, 5 May 2005. Reply to this.
Very nicely done. Extremely helpful. I wish I could remember this stuff, but it just doesn't stick in my head. Thanks.
#27, Chris, United States, 5 May 2005. Reply to this.
Hi! I am From Brazil!
Sorry for my bad english. :-D
I have a site about Web Standards called Tableless (http://www.tableless.com.br/)
I saw your article about Cheat Sheet CSS, and I created a copy of your image, but, translated for Portuguese-Br.
Any problem?
You can see the image here:
http://www.tableless.com.br/referenciacss.gif
Thanks advanced.
#28, Diego Eis, Brazil, 5 May 2005. Reply to this.
You rock! Thanks for posting the CSS cheat sheet -- bottle this thing up and sell it :)
#29, Corey, United States, 5 May 2005. Reply to this.
Very Nice. Thanks.
#30, beerzie, United States, 6 May 2005. Reply to this.
Thanks, this one's going to be on the side of my desk!
#31, Peter Akkies, Netherlands, 7 May 2005. Reply to this.
good ! what about another sheet with only css hacks ?
#32, me, France, 9 May 2005. Reply to this.
Thanks for the great reference! This is definitely worth a bookmark.
#33, Dan Kramer, United States, 9 May 2005. Reply to this.
Hello,
Thamks for this great work. Is it possible to redistribute this png file ?
#34, DamDam, France, 10 May 2005. Reply to this.
I love this! But, like everyone else, I'd rather have a PDF, or whatever source format you had. The PNG looks really bad when I print it.
#35, Andy, United States, 11 May 2005. Reply to this.
whiskeylover wrote:
great initiative! why not publish the original format so we can make a .PDF ourselves?
#36, cresk, Netherlands, 11 May 2005. Reply to this.
Idea stolen?
http://www.visibone.com/catalog/product_info.php?products_id=29&osCsid=50329a2df3a94a25de2256f8c0d19508
#37, asdf, Switzerland, 12 May 2005. Reply to this.
"asdf" (it's nice to be able to hide behind anonymity, isn't it): Are you saying that "Visibone" are the first people ever to come up with help sheets? You might want to rethink that one, brainiac.
No, the idea isn't stolen from Visibone. I used these sorts of aids at school. I've personally used my PHP cheat sheet for some time. Thousands of people have help sheets and cheat sheets scattered over their desk. The original idea, for the PHP sheet, came out of frustration at having to visit the PHP site all the time. This CSS sheet was a logical continuation of the same ideas.
#38, Dave Child, United Kingdom, 12 May 2005. Reply to this.
Hi,
Excuse me, but I renew my question : is this png file licensed under Creative Common License ? I would like to incorporate it in a css plugin for an unknown (yet) french CMS. I would be very pleased if there is no problem with it
#39, DamDam, France, 12 May 2005. Reply to this.
Hi Damdam,
Sorry, I missed your question the first time around.
The image is not under a creative commons license, no.
That's not a "no, you can't use it". That's a "Why don't you email me at dave@addedbytes.com though and let me know what you want to do.".
#40, Dave Child, United Kingdom, 12 May 2005. Reply to this.
I realize you've stuck to CSS standards, but there's two hacks I'm always looking up:
Hide a rule from IE:
html>body p {
/* declarations */
}
Hide a rule from all browsers but IE:
* html p {
/* declarations */
}
Reference from - http://www.456bereastreet.com/archive/200503/css_tips_and_tricks_part_2/
Would love it if you could work those two in (if not, I'll be forced to resort to ink).
Another comment:
You've outlined where shorthand properties are available and in most cases the order of subsequent properties is listed as specfied by the W3C (top, right, bottom, left, for example). This makes it easy to switch to shorthand.
However, with *font this doesn't seem to be the case. Probably should be:
*font
font-style
font-variant
font-weight
font-size
line-height
font-family
(I know the shorthand will work in any order but there's no harm in being anal. And of course this isn't exactly perfect as the syntax requires font-size/line-height but we get the idea.)
Anyways, this is excellent work. Good job.
#41, Aaron Schmidt, France, 12 May 2005. Reply to this.
Interesting stuff, thanks.
Anyone knows if there is such a thing summing up the hacks and the browser quirks?
#42, Gabriel Radic, France, 13 May 2005. Reply to this.
PDF is now online, as requested :)
#43, Dave Child, United Kingdom, 13 May 2005. Reply to this.
Wow, how popular?
#44, Andy Budd, United Kingdom, 13 May 2005. Reply to this.
wow, the explanation of the box-thing, with width, height, padding and margin is really clear. I'm always confused on how it works exactely.
Thank you!
#45, Diaan, Denmark, 14 May 2005. Reply to this.
Wow, really great, it's good, that there are some people who want to do such kind of papers :-)
#46, dan, Poland, 17 May 2005. Reply to this.
Great work!
But the PDF links don't work for me!
#47, Franz Steinmetz, Germany, 18 May 2005. Reply to this.
That's just great!!!!
That's exactly what I was looking for!
Big thanks
Greg
#48, Greg, Poland, 20 May 2005. Reply to this.
Thanks, what a great reference, all on one page! Exactly what I needed for a quick memory jog.
#49, Renee Michaels, United States, 21 May 2005. Reply to this.
Dave: two words (well, two that are StudlyCapped into one): CafePress. http://www.cafepress.com/shop/geeks/browse/Ne-25_N-3807_bt-2_pv-geekcheat.11507711
#50, Peter J., Canada, 22 May 2005. Reply to this.
You might think about incorporating Mr. Hicks' recently CC-licensed 3D box model to your already amazingly well done cheat sheet. Thanks! (love your PHP one, too...)
#51, Ryan Thrash, United States, 25 May 2005. Reply to this.
Very great work!!!
#52, stockfish, Germany, 26 May 2005. Reply to this.
Your PDF isn't working.
#53, Cassini Nazir, United States, 27 May 2005. Reply to this.
Wow. Wow. Thanks so much! I've printed it out and hung it above my desk.
One of the really inspiring things about working with web standards is encountering the community of people like you -- people who make it easy to play by the new rules.
Thanks thanks!
#54, kate, United States, 27 May 2005. Reply to this.
Hey, great work! That's what I needed all the time. It helps me very much, thank you! :-)
How have you designed the Cheat Sheets? What program did you use?
Greetings from Kiel, Germany
Jule
#55, jule, Germany, 29 May 2005. Reply to this.
I've printed out the pdf. Great! It's very Useful. Thank you.
#56, teppei, Japan, 29 May 2005. Reply to this.
Just awesome will be saving this on my bookmarks!
#57, Dave, United Kingdom, 3 June 2005. Reply to this.
Thank you for this very helfull document. From France.
#58, Damino, France, 7 June 2005. Reply to this.
This is a really great idea!!
#59, Thice, Germany, 9 June 2005. Reply to this.
Thanks !
Very usefull.
#60, zouzou, France, 13 June 2005. Reply to this.
very cool, but the link to the pdf is broken :/
#61, Nat, United States, 22 June 2005. Reply to this.
This sheet is the most valuable thing that I have ever printed with my printer ... :-)
#62, Istvan, Germany, 27 June 2005. Reply to this.
Thanks so much for making a PDF version available. It make printing so much nicer.
- jphillips66
#63, jphillips66, United States, 30 June 2005. Reply to this.
Printed, plastic wrapped and handy. Thanks
#64, kara, United States, 7 July 2005. Reply to this.
Thank your for the CSS cheat sheet. Please make for other domains too: java frameworks like Struts, WebWork, JSLT, etc.
#65, Maverick, Germany, 8 July 2005. Reply to this.
I must say that those cheat sheets are just cool. Please, please, please make one (or two) for JavaScript too :).
#66, Jake, Germany, 9 July 2005. Reply to this.
Hi, Dave,
very-very useful! Thanks for a great work - I've added a link to your css cheat sheet on both <a href="http://www.alvit.de/web-dev/">Web-Dev-Bookmarks</a> and <a href="http://www.alvit.de/handbook/">its 'pocket' version</a>.
#67, Vitaly Friedman, Germany, 11 July 2005. Reply to this.
No more table tags for me. Thanks Jeff! :D
#68, Flemming, Denmark, 29 July 2005. Reply to this.
Thank you from Russian-speaking developers! =) Placing on my board ...
#69, AleXandr Sugard, Estonia, 8 August 2005. Reply to this.
Couldn't bare "69" comments longer ;-) shifting it :-)
Whatever...
Your CSS Cheat Sheet is worth buying a hyper large banner printer so I could see it accross the office!
Grabbed the PHP/CSS CS widget for my powerbook too :-)
Thanks!
Gonna blast all those ugly tables out of our intranet *grin*
#70, Julien Banchet, France, 9 August 2005. Reply to this.
What a helpful chart . . . now if you could just do one about css browser compatibility.
#71, Brandon, United States, 25 August 2005. Reply to this.
Useful, neat and simple.
A must.
Thanks a lot
#72, Sergio, Spain, 1 September 2005. Reply to this.
Thanks for your efforts. All your cheat sheets are a great learning and reference resource!
Maybe a browser compatibility reference someday? (Or at least for the Box Model?)
Thanks again!
#73, Herb Gaidus, United States, 5 September 2005. Reply to this.
thank you very much for this helpfull tip !
#74, nicobilou, France, 6 September 2005. Reply to this.
Excellent Reference.
May I also point you all to the DevBoi is sidebar extension for Mozilla and Firefox browsers. This is what it contains:
HTML 4.01 elements, attributes, and entity tables;
CSS 2 properties, compatibility chart (IE 5 Mac, IE 5, IE 5.5, IE 6, Mozilla, Opera 5, Opera 6, Opera 7, Konqueror 2.2, Safari 1) and context links;
DOM 2 objects, methods and properties (Core, HTML, Events, Views, Traversal, Ranges and Stylesheets);
XUL element reference and tutorials
#75, Antonimo, Sweden, 21 September 2005. Reply to this.
I need to top your css examples. thanks!
#76, Peter, Germany, 26 September 2005. Reply to this.
Nice cheat sheet, I've gotten used to having it handy when I work on web pages. However, while experimenting with different CSS selectors, I noticed an error in your last selector example. You say that a[lang|='en'] would apply styles to all anchor objects with the attribute lang beginning with en. In actuality, to do such a thing you'd want a[lang^='en'], a[lang|='en'] would style anchor objects with 'en' being a value in a hypenated list. Just as a suggestion, perhaps you could also add the $= and *= selectors in a future revision.
#77, SirNot, Netherlands, 12 October 2005. Reply to this.
Great! Keep up the good work
#78, Behnam.B, Islamic Republic Of Iran, 14 October 2005. Reply to this.
Much better than the W3C version!
#79, Paul Browne, Ireland, 24 October 2005. Reply to this.
I've printed and sent the bookmark around to all my fellow web developers.
There is only one possibly misleading line in the 'pseudo-selectors' box, whereas one might end up thinking that the behaviour of the :first-child (pseudo-class) is similar to that of the :first-line and :first-letter (pseudo-elements).
The :first-child pseudo-class applies to a given element if it happens to be the first child of his parent element and not, as one might understand, to the first child of the element.
In the following example:
<div><p><strong>Who is p:first child?</strong></p></div>
p:first-child applies to the p, not to the strong element.
The trouble is to make this difference clear in the limited space of a cheat sheet.
#80, Andrea Ca'Zorzi, Belgium, 29 October 2005. Reply to this.
THANK YOU ("Danke schön!") for that handy composition!
Btw. To avoid dog-ears ("Eselsohren") I'd prefer landscape format, so the Cheat Sheet would fit perfectly between me an my keyboard without overlapping the leading edge of my desk all the time.
Thanks!
Sebastian - Berlin, Germany, Europe
#81, seba, Germany, 14 November 2005. Reply to this.
Any chance anybody out there could point me to a CSS browser compatibilty chart. Somewhere out there.....
Thanks
#82, John, Canada, 25 November 2005. Reply to this.
Very nice. John: http://www.ddj.com/webreview/style/css1/charts/mastergrid.shtml
#83, Viktor, Sweden, 14 December 2005. Reply to this.
Thanks. This is great especially since it's a .png.
#84, Rebecca, United States, 26 December 2005. Reply to this.
Sweet. But please correct the spelling of "seperated" to "separated".
#85, Gary, United States, 6 January 2006. Reply to this.
Very very great work!! I love all cheat sheets from this site!! keep up the good work!
#86, Guanajuato City, Mexico, 14 January 2006. Reply to this.
Mate... This is... Simply... ... ... Wow.
#87, Ivan Minic, Unknown, 25 January 2006. Reply to this.
thank you for this.
#88, Andy, United Kingdom, 6 March 2006. Reply to this.
Thanks all - glad you like it :)
#89, Dave Child, United Kingdom, 6 March 2006. Reply to this.
wow... awesome:) thanks a lot:)
#90, Anonse og?#8218;oszenia, Poland, 10 May 2006. Reply to this.
Dave, it'll be really handy for folks in my company, well done.
#91, Nadir, France, 1 June 2006. Reply to this.
This is the clearest, most comprehensive resource I've come across.
I guess this means I love you.
#92, Alex, United States, 21 June 2006. Reply to this.
God bless you. I know beginners sure will :)
#93, Adam, Poland, 20 July 2006. Reply to this.
This is great; the only thing it's missing is the possibly values for properties. For example, the 'display' property has lots of possible values and it can be hard to remember them. Thanks!
#94, David McCabe, United States, 29 July 2006. Reply to this.
This is a fantastic resource for beginners like me, thanks.
#95, Keith Greer, United Kingdom, 13 August 2006. Reply to this.
This is an excellent stuff and thanks to google that I was able to reach this site...Keep it up!!
#96, Mohan, India, 16 August 2006. Reply to this.
Very handy, very much needed!
great job.
#97, BrettFromTibet, United States, 19 August 2006. Reply to this.
very interesting!
#98, sibirjak, Russian Federation, 28 August 2006. Reply to this.
Thankyou very much, kaibigan. More power, Mabuhay!!!!
#99, Louie Johnson, Australia, 4 September 2006. Reply to this.
I think I'll love you forever.
#100, Alisa, United States, 15 September 2006. Reply to this.
Good stuff man.
#101, Kobe, Hong Kong, 4 October 2006. Reply to this.
This is a great idea, all i can say is brilliant, brilliant and brilliant! These cheat sheets make life a bit easier on remembering what syntax works with what language!
#102, Andy J - London, United Kingdom, 14 October 2006. Reply to this.
Thank you very much for this.
#103, Petar Radosevic, Netherlands, 5 November 2006. Reply to this.
Thx. Handy indeed. 10's of papers in 1.
#104, Donna, United States, 6 November 2006. Reply to this.
excellent sheet! thanks for sharing it.
#105, Alb, Ireland, 6 November 2006. Reply to this.
Very useful! thanks
#106, Anonymous, Portugal, 8 November 2006. Reply to this.
Thankx for this gr8 idea.
#107, Vogue, India, 12 November 2006. Reply to this.
Thanks very much.
It's great!
#108, fallingdust, Unknown, 26 November 2006. Reply to this.
Great job ! Thank you very very much.
#109, Ozgur, Turkey, 28 November 2006. Reply to this.
That is really handy, will be very much helpful for me, will take a print of it and post in on my board. Thanks.
#110, Windows Reseller Hosting, India, 3 January 2007. Reply to this.
Heh... I downloaded this for my iPod from mogopop.com . It's pretty convenient to have.
#111, Scott, United States, 5 January 2007. Reply to this.
Very nice... thanks a lot...
#112, mathykrishna, India, 16 January 2007. Reply to this.
These are great, only gripe would be to list the properties in their shorthand order. For example the fonts tag properties listed as style, variant, weight, size, family.
Instead of as they currently are, family, style, variant, weight, stretch, size.
#113, Neon, United Kingdom, 25 January 2007. Reply to this.
Great job! Thank you.
#114, davizo, Spain, 1 February 2007. Reply to this.
neato!!
#115, lingghezhi, India, 3 February 2007. Reply to this.
this is super! i have this printed out and pinned on the wall of my cubicle!
#116, sinus, United States, 22 February 2007. Reply to this.
These html and css cheat sheets are fantastic. I'm just starting to learn about web design, but it seems that, at this point in my life, I've lost the patience to wade through 400 pages of filler and useless 'sample code' in whatever instructional book. Your cheat sheets are basically all I need to get started. Thanks again.
#117, anon, United States, 24 February 2007. Reply to this.
Thanks for the CSS Cheat Sheet. It looks well-layed out and packs a lot of info into a short space.
#118, Doug Edwards, United States, 8 March 2007. Reply to this.
All of your cheat sheets are invaluable! Thanks for making the effort and doing it WELL!
#119, Henry Richards, Unknown, 9 March 2007. Reply to this.
awesome!!
#120, bjorn corluy, Belgium, 14 March 2007. Reply to this.
WOW WOW
I have download this file but doesn't get a crap what it means!
I thought that i could cheat or know how to cheat by reading this file. But noooop nothing
Can someone tell me how and where is this file made for and how to use it and where.
Thx
GRTZ DAVID from Belgium
ARMENIA 4 LIFE
#121, David ARMENIA, Belgium, 18 March 2007. Reply to this.
Just a note of appreciation- thanks!
#122, John Stoltenborg, United States, 20 March 2007. Reply to this.
Thanks for these useful collections :)
Would be nice though, if you could re-order the pseudo classes this way:
:link
:visited
:focus
:hover
:active
You need to define them in this particular order (as much as I know) and it would be nice to reflect this in the "listing".
Anyway, great work!
#123, Anonymous, Germany, 20 March 2007. Reply to this.
This sheet is great, thanks so much.
#124, Huffy, United States, 18 April 2007. Reply to this.
Very nice and useful CSS sheet! Thanks!
#125, Marcus, Germany, 26 May 2007. Reply to this.
the best cheats I've seen so far
#126, test, Unknown, 7 June 2007. Reply to this.
Great job! Thank you man!
#127, Mike Buspar, Unknown, 30 June 2007. Reply to this.
Excellent site i've been looking for this sort of thing for ages.
#128, Ian Harrison, United Kingdom, 3 July 2007. Reply to this.
Hey, thanks for making this available
#129, this is great, United States, 3 July 2007. Reply to this.
Thisw is really cool.
Thanks
#130, dude, United States, 4 July 2007. Reply to this.
Now I'm ready for redesign. Thanks:)
#131, Zadar, Unknown, 14 July 2007. Reply to this.
To reiterate... great tool!
I'm missing the div[property^='startswith'] and div[property$='endswith'] selectors though.
#132, igitur, Unknown, 17 July 2007. Reply to this.
Thanks! Very useful.. I am so lazy and forgetful and this will come in handy
#133, psyconius, Unknown, 8 August 2007. Reply to this.
Deadly.. good stuff.
#134, Chris Herberte, Australia, 8 August 2007. Reply to this.
Outstanding Cheat Sheet!! =)
#135, Forte, Unknown, 9 August 2007. Reply to this.
Thanks for the great resources.
Thought you should know, your page's layout has been compromized by the IE italics problem. Please see http://positioniseverything.net/explorer/italicbug-ie.html for more detail. Looks like you're going to have to modify your css by a few pixels.
#136, Robert Kruger, United States, 28 August 2007. Reply to this.
Hi Robert,
I don't see where this is an issue. Could you please point out where this bug is causing a problem? Thanks.
#137, Dave Child, United Kingdom, 29 August 2007. Reply to this.
this is awesome, thanks!
#138, Christie, Canada, 29 August 2007. Reply to this.
God bless you. I know beginners sure will :) dats 4 sure
#139, dre, Unknown, 30 August 2007. Reply to this.
I love you man! This is such a succinct cheat-sheets that I always have on my desktop!
#140, Aussie job search, United Kingdom, 31 August 2007. Reply to this.
Hey, I love your Cheat Sheets including this CSS one I have many a time forgotten a simple function that I have been able to find quickly using your cheat sheets, I must say these are the best free cheat sheets I could find.
I even posted on my blog about your cheat sheets: http://oysblog.uni.cc/2007/08/31/cheat-sheets/
#141, Aaron, Unknown, 31 August 2007. Reply to this.
Nice Sheet, I have been looking for a quick reference like this. The smallest I have found is a pocket book. Its already on the wall.
#142, Dallas, United States, 2 September 2007. Reply to this.
Thx a lot great cheetsheet
#143, Azam, Unknown, 4 September 2007. Reply to this.
I think I love you: This is helping me so much.
#144, Megan, United States, 4 September 2007. Reply to this.
This summer Jack Daniels & Vodice (place on Adriatic) were my obsession...
Great stuff! ;-)
#145, Vodice, Croatia, 5 September 2007. Reply to this.
Why does Mac always get the fun widgets and PCs get nothing? Conspiracy? I think so. ;-)
#146, Bridget Stewart, United States, 6 September 2007. Reply to this.
Another great cheat sheet, thanks a lot!
#147, Warren M, United Kingdom, 4 October 2007. Reply to this.
Thank you for this!
#148, Milo Felipe, Australia, 9 October 2007. Reply to this.
Thanks! it is good help for css
#149, Animater, Unknown, 10 October 2007. Reply to this.
It will be very usefull to me. Thnx.
#150, steve, Bosnia And Herzegovina, 11 October 2007. Reply to this.
Thanks a lot - have until now only used pre-made CSS sites or made everything with templates in Dreamweaver. I will like to make a link to this fine resource from my start up site http://www.Smart-websites.net
#151, Soren from Smart Websites, Denmark, 11 October 2007. Reply to this.
Great stuff! ;-) Thanks!!
#152, G, Unknown, 12 October 2007. Reply to this.
I haven't use it.. but I can make it out that its gonna very useful.. Thanks alot ! "Great Man"
#153, San, Thailand, 13 October 2007. Reply to this.
Thanks! Helps alot on my CSS building. A great and quick reference!
#154, suadref, Singapore, 19 October 2007. Reply to this.
Hey there,
first of all thanks a lot for this grt effort of yours and secondly could u do such a thing for actionscript as well?
Once again, thx a lot & keep up the gud work! :)
#155, Div, India, 21 October 2007. Reply to this.
Great - Many thanks - very useful
#156, John, United Kingdom, 23 October 2007. Reply to this.
Thanks You for this helpful papers. I 'll print them out, put them right now into an image frame and glue them on the wall - visible for every one here ;-)
#157, Gerald Martin, Unknown, 24 October 2007. Reply to this.
As you can see from my site I have some css issues but I'm working on it. your 'cheat sheet' really opened my eyes about some syntax issues i've had, particularly with use of # and div IDs which I am new to.... so handy! thanks
#158, Phentramin, Unknown, 31 October 2007. Reply to this.
Muy Util, gracias
#159, nestor, Argentina, 5 November 2007. Reply to this.
Can you please put word format also
#160, Javascript CSS freak, Pakistan, 13 November 2007. Reply to this.
Hey, I love your Cheat Sheets including this CSS one I have many a time forgotten a simple function that I have been able to find quickly using your cheat sheets, I must say these are the best free cheat sheets I could find.
#161, Mukesh Yadav, India, 13 November 2007. Reply to this.
Cool. Finally an excuse to buy a laminator.
Very useful.
#162, Vulpine Mobile, New Zealand, 20 November 2007. Reply to this.
Thanx man. It's quite helpful to me.
#163, Sai Narasimha Reddy, India, Unknown, 20 November 2007. Reply to this.
Nice and easy. many thnx.
#164, Mike, Bosnia And Herzegovina, 20 November 2007. Reply to this.
Thanks man. Very very helpful!
#165, Sidiyo, Philippines, 28 November 2007. Reply to this.
Jeff, this is wonderfully helpful! I've been looking for exactly this thing -- something will all the possibilities on one quick ref sheet. Also, the live comment preview is very cool -- neat to see your comments updated as you make them -- how do you do that? brianeknoll@gmail.com
#166, Brian Knoll, United States, 4 December 2007. Reply to this.
This is just was i needed. Great work.
#167, mangelp, Spain, 7 December 2007. Reply to this.
Hi,
nice work. However you missed very cool thing - include statements:
@import url("cssfile.css");
Very useful, enables me to use multiple css files that give me another structuring flexibility.
For main stylesheet, exemplary:
@import url("_reset.css");
@import url("_mainstyles.css");
@import url("_debug.css");
And everything clear.
#168, Martin, Poland, 24 December 2007. Reply to this.
Thanks Dave,
I've been looking around for simple "cheat sheets" that have CSS and HTML codes, but are not wordy. Being afflicted with "sometimers" disease, I usually need a quick "reminder" glimpse to narrow down the tags/commands I want to use.
Now if I can just remember where I put the list!
Gus
#169, Gus Scorchio, Unknown, 4 January 2008. Reply to this.
Wow, that's what i have searched for. Thank you very much!
#170, Manuel, Germany, 24 January 2008. Reply to this.
Excellent, thanks a lot!
#171, Develoweb, Peru, 12 February 2008. Reply to this.
cool no need to google it each time i need it.
#172, baliwebdesigner, Australia, 18 February 2008. Reply to this.
Very nice cheatsheet, good as always!
#173, haywire, United Kingdom, 20 February 2008. Reply to this.
it's awesome, use it everyday... thanks
#174, techguide, Unknown, 2 March 2008. Reply to this.
Hi Dave,
As I've already commented, I think your cheat sheets are great... I'm a bit of an amateur, so apologies in advance if this sounds silly,,, BUT, in a previous comment I posted the real URL of my home page.
It seems that since that time, I'm getting a request from http://www.addedbytes.com/cheat-sheets/css-cheat-sheet/ looking for a favicon file.
It's distorting my log files since it seems that I have hundreds of referrals coming from this page looking for my favicon. :-) - I've set up my .htaccess to return a 403 now, (using your mod rewrite cheat sheet), but I was wondering why this might be happening, and whether it could be stopped.
If you have an address that I can contact you directly I will, otherwise, maybe I'll just see if you follow up to this comment.
Anyway, great cheat sheets... They helped me learn a lot!!
#175, Fred T, United States, 3 March 2008. Reply to this.
Hi Fred,
The site uses your favicon next to your comments. I can remove that from your comments if you like though?
#176, Dave Child, United Kingdom, 3 March 2008. Reply to this.
Thank you! I would love it if it showed some more shortcuts--like I know there's a way for do padding left,right,up,down (or something), which aren't shown here. Also the values for background-repeat aren't shown (repeat-x, etc.). Thanks!
#177, roger pack, Unknown, 22 March 2008. Reply to this.
This is simply great. Thanks
#178, Rakesh.S, India, 27 March 2008. Reply to this.
I like this cheat seet a lot! Thank you very much for this great post.
#179, Kantoormeubelen, Belgium, 2 April 2008. Reply to this.
Hi Dave
Sorry if I'm wrong. But did you steal these cheat sheets from elsewhere? I've seen a few of them elsewhere (without your site's url)
I find it suspicious that there's so little consistency in the designs of your sheets. (especially since they're about webdesign.)
#180, Rakel, Belgium, 9 April 2008. Reply to this.
Hi Rakel. I did think about just not bothering to respond, as your comment seemed just like trolling. However, on the off chance you're asking a genuine question ...
No, they're not stolen from elsewhere. All of the cheat sheets hosted on the site are my own work, in some cases with the help of other people (for example, the Ruby on Rails cheat sheet - Amy Hoy and DHH helped me with the content, as I'm not a RoR expert), and they are fully credited for their work.
The cheat sheets have been copied on a fairly large scale. They are free to use and redistribute, under a creative commons license. However, many of the people that copy them do so while removing the original credit.
As for consistency ... I thought they were consistent! They're all (except the colour chart, which I did a couple of years before the language cheat sheets) 2 or 3 columns, styled in similar ways. Some have sidebars (e.g., where I've added function lists). Some have double-wide sections where code examples are needed. But all the blocks are pretty much identical.
I've not released a new one in a while, but do have sme interesting bits and pieces in the pipeline. Perhaps more activity here and new cheat sheets will help reassure you that this is the original source for these cheat sheets!
#181, Dave Child, United Kingdom, 10 April 2008. Reply to this.
And to everyone else who said thanks above, you are very welcome! I've done really poorly recently at responding to comments (and posting new content) but have not forgotten about this site. I have had a slight motivational crisis, and a couple of other projects on the go, but normal service will be returned soon.
#182, Dave Child, United Kingdom, 10 April 2008. Reply to this.
This is amazing! The cheat sheet actually confuses me, but that's because I first read CSS tutorials yesterday... :) What is amazing is the comments you receive from ALL over the world. How exciting!
#183, WildMelody, United States, 16 April 2008. Reply to this.
As a beginer, I do not have much to add except my thanks for a very helpful tool.
#184, Pete, United States, 18 April 2008. Reply to this.
Thanks for the Cheat Sheet.As a beginner I need all the help I can get.
#185, Lynbird, United States, 20 April 2008. Reply to this.
Ummm this totally saves my effin arse!
Noob here, but thank you for this info.
#186, jrock, Unknown, 23 April 2008. Reply to this.
'Twould be nice if things like border were listed in the same order that they go if they are all in one declaration.
I.e. border would be 'ordered' as size, styles, color.
#187, roger, Unknown, 29 April 2008. Reply to this.
Hi Daniel,
All the cheat sheets are good, but all the pdf's and images has got only first page of it, can you please provide other pages too.
And please post the Some .NET Cheat Sheet, if you have any.
I would like to share one provided by microsoft through my blog
http://www.dotnetglobe.com/2008/05/net-framework-35-namespaces-poster.html
#188, Brij Mohan, United Kingdom, 15 May 2008. Reply to this.
Just wanted to confirm I have the smae problem as Brij Mohan - only first page
#189, Mike, Unknown, 20 May 2008. Reply to this.
Hi Dave,
thanks for a nice stylesheet cheat.
Great, that not everyone´s god is money, so you give your work for free.
Wish you luck with all further projects, even commercial. :)
Greetz
#190, Scherbe, Ol, north germany, 21 May 2008. Reply to this.
Ok, now that I've LOOKED at the cheat sheet I understand it is in fact only ONE page... the highlights in your thumbnails in your story above weren't obvious to me.
#191, Mike, Unknown, 21 May 2008. Reply to this.
Hi Dave.
Looks like google's page rank whacked you.
Sorry to see this dave. keep up the bloggin.
#192, Theatons Toys, United Kingdom, 28 May 2008. Reply to this.
@Mike: Sorry about that. Given the number of people that are given the impression there's more than one page, I think it's probably about time I improved this page to ensure there is no ambiguity!
#193, Dave Child, United Kingdom, 4 June 2008. Reply to this.
thank you man
very useful sheet
#194, ????? ?????, Unknown, 8 June 2008. Reply to this.
Hello Dave,
A fantastic resource for (french) webmasters, thanks.
#195, Caliban, France, 12 June 2008. Reply to this.
I'd be interested in knowing what tool you used to write your cheatsheets with, as they're very high quality. I want to write my own cheatsheet at the moment (as a way of learning an environment). Of course I'll post it under an Open Document license :-) Thanks, Sonia.
#196, Sonia Hamilton, Australia, 15 June 2008. Reply to this.
Hi Sonia,
I use a vector graphics program called Xara Xtreme, available from www.xara.com. Been using it for design for years, so it just made sense for me to use it for the cheat sheets, though looking back now I don't know that it was the best choice!
#197, Dave Child, United Kingdom, 16 June 2008. Reply to this.
thank you wery much...
#198, temizlik ?irketi, Unknown, 24 June 2008. Reply to this.
Its a really very useful article, most of your cheat sheets are on my desk.
Please post some in Microsoft.NET or C#, it will be really useful.
#199, Brij Mohan, India, 25 June 2008. Reply to this.
This site also has a bunch of useful cheat sheets:
<a href='http://www.aidsheet.com' title='link to aidsheet.com'>cheat sheets</a>
#200, Stefan, Unknown, 30 June 2008. Reply to this.
It looks like the blog does not like html. The site is www.aidsheet.com
#201, Stefan, Unknown, 30 June 2008. Reply to this.
Can any one help me? Just started css and need to know the code for building a box with four inside boxes with the colors red and green.
#202, foxyBrown, Sweden, 28 August 2008. Reply to this.
Thanks, this one's going to be on the side of my desk!
#203, Nik, Unknown, 5 November 2008. Reply to this.
Thank you!
#204, projekty domow, Poland, 27 November 2008. Reply to this.
It's marvelous work. Thanks.
#205, Sudhakar. D, India, 3 February 2009. Reply to this.
Wow, what a thing to put together! I'm so happy I found this site, this really helps speed things up.
#206, Micah, Unknown, 11 February 2009. Reply to this.
I'm a web designer but sometimes I get a bit confused trying to get my CSS to work right. This cheat sheet has been very helpful. Thanks and keep it up!!!
#207, Mexabet, Australia, 14 February 2009. Reply to this.
Thanks for this article.I think that I see some things more clearly.
#208, vesti vijesti, TB, 4 June 2009. Reply to this.
very-very useful! Thanks for a great work
#209, Stanovi Trebinje, Unknown, 28 July 2009. Reply to this.
I have those cheat sheets. I laminated them and the come in real handy from time to time.Or course after using them for a month or so I no longer needed to refer to them. Ever so often I find myself looking because I forgot some hardly use css.
#210, Dallas Web Design, Dallas, 22 August 2009. Reply to this.
Thanks a lot for this very helpful tool!!!
#211, Melanie, Germany, 20 October 2009. Reply to this.
Great work Dave!
This is awesome!!
#212, Sandeep Aparajit, London, UK, 5 January 2010. Reply to this.