CSS 2.1 and CSS 3 Help Cheat Sheets (PDF)

Advertisement

Today we are glad to release two useful cheat sheets that will help you quickly look up the right CSS 2.1-property or an obscure CSS 3 property. The style sheets contain most important properties, explanations and keywords for each property. The help sheets were created by GoSquared and released for Smashing Magazine and its readers.

Download the cheat sheets for free!

The CSS 2.1 Help Sheet covers Syntax, Font, Text, Margins, Padding, Border, Position, Background, List, Media Types and Keywords. The CSS 3 Help Sheet contains code snippets for Rounded Corners, Box Shadow, Multiple Columns, Text Shadow, RGBa, Font Face (actually, not the CSS3 property, but still include for the sake of usefulness), Box Sizing, Box Resize, Outline and Gradients.

Screenshot

Screenshot

Behind the design

As always, here are some insights from the designers:

“We created the original CSS Help Sheet because we spent ages staring at ugly cheat sheets while designing beautiful sites. So we thought we’d make a Help Sheet that didn’t hurt the eyes of anyone who tried to use it. The past year, we’ve found ourselves using more and more CSS3 methods, and there was never much in the way of help out there until we decided to create a Help Sheet specifically for CSS3.

We’ve kept CSS2 and CSS3 on separate Help Sheets for now as not everything in CSS3 is finalised, or works in all browsers (cough, IE).

We hope you enjoy using them, and that they help you create even more memorable, usable, and stylish websites.

Thank you, guys. We really appreciate your work and your good intentions.

Related Posts

You may be interested in the following related posts:

We love high-quality content and we care about little details. We believe that good content and design are crafts worth sharpening. Located in the lovely city of Freiburg, Germany. Mostly Vitaly (vf), Iris (il) and Sven (sl).

  1. 1

    DaveKingsnorth

    May 13th, 2010 11:14 am

    The CSS3 cheat sheet is pretty useful. Might print this one

    0
  2. 2

    Joshua Briley

    May 13th, 2010 11:14 am

    Thanks for posting this… I never remember the CS3 Webkit info.

    0
  3. 3

    Felix Chi

    May 13th, 2010 11:27 am

    So, 12 lines of code to get a rounded corner… is this the bright future we’ve been waiting for?

    0
    • 4

      bill

      May 13th, 2010 12:41 pm

      Someone can’t count. It’s one line if you want all four corners to be the same, and three lines if you want all four corners to be the same in all browsers that support CSS rounded corners. Someday border-radius along will be sufficient.

      +2
      • 5

        thekumar

        May 14th, 2010 5:36 am

        you could go upto 12 lines if you make an ugly looking rounded corner box.

        +1
  4. 6

    Robin Fisher

    May 13th, 2010 11:28 am

    Really useful. Only comment is that RGBA values are between 0-255 for RGB and 0-1 for A.

    0
    • 7

      Svein

      May 17th, 2010 11:44 am

      Really? Sounds strange… This means it would only be fully transparent or fully opaque. A normal a channel should have 0-255 so you could use it to set something to be semi-transparent. Or does it mean you can set A to be 0.5?

      0
  5. 8

    acepek

    May 13th, 2010 11:46 am

    Thank you for the helpful resource! It’s a whole new world of round-corner boxes.

    0
  6. 9

    g0dkar

    May 13th, 2010 12:14 pm

    It needs some bug correction :P

    0
    • 10

      Smashing Editorial

      May 13th, 2010 12:23 pm

      Can you please specify the bugs?

      0
      • 11

        Markandey Gupta

        January 24th, 2012 7:43 am

        First of all thanks for nice css3 pdf file .I will learn css3 & improve css skills.

        0
  7. 12

    Fabian Irsara

    May 13th, 2010 12:25 pm

    Great sheets, probably gonna use the css3 sheet as there aren’t so many other out there yet!

    0
  8. 13

    James Gill

    May 13th, 2010 12:29 pm

    Hi guys,

    We’ve updated the CSS3 Help Sheet with the correct RGBA values and sent it over to SM, for now it’s available on our original post at:

    http://www.gosquared.com/liquidicity/archives/1010

    We’ve checked with several people, but are there any other bugs? If so, please say and we’ll get on it.

    Thanks!

    0
  9. 14

    shiftdelete

    May 13th, 2010 1:11 pm

    Downloaded the PDF, but I get an error stating that it

    “Cannot extract the the embedded font ‘JCTOYI+MyriadPro-Semibold’. Some characters may not display or print correctly.”

    And it doesn’t display or print correctly. :)

    0
    • 15

      James Gill

      May 13th, 2010 4:35 pm

      Apologies if you’re having an issue with displaying the PDF. We’ve exported with text and artwork compressed, and tested on multiple systems, PC and Mac, with and without Myriad Pro installed. I can provide a version with fonts set in Helvetica if you would like? Or if you only need to print you could use the large size JPG. Sorry for the problems you’re experiencing here.

      0
      • 16

        shiftdelete

        May 13th, 2010 5:30 pm

        No problem. Works great on my Mac at home. Printing here. I hate that I have to use Windows at work.

        0
  10. 17

    DaveHoeks

    May 13th, 2010 1:29 pm

    Nice, immediately printed this baby!
    Never need google again! ;-)

    0
  11. 18

    Tedi

    May 13th, 2010 1:36 pm

    Great sheet, thanks for sharing! The css3 sheet made my pin-board!

    Tedi

    0
  12. 19

    Deezy

    May 13th, 2010 2:18 pm

    Helpful but hideous. Can’t win ‘em all!

    0
  13. 20

    wcimage

    May 13th, 2010 2:29 pm

    Thank you very much. Walt

    0
  14. 21

    jess

    May 13th, 2010 4:06 pm

    good to have. … not sure about that hideous comment… please specify.

    0
  15. 22

    Thomas Scholz

    May 13th, 2010 4:14 pm

    »outline« is misplaced: This is a CSS 2.1 property.

    0
    • 23

      James Gill

      May 13th, 2010 4:32 pm

      Apologies, you’re correct. Thankfully it’s still valid in CSS3 so it’s not doing any harm there. If people can’t live with this, I can try and fit it in on the CSS2 Help Sheet.

      0
  16. 24

    James Gill

    May 13th, 2010 4:30 pm

    Hi guys, thanks for the continued positive comments. Apologies if anyone (Deezy, only) thinks these are “hideous” but we’ve tried to make them as attractive as we could.

    0
  17. 25

    Billou

    May 13th, 2010 4:59 pm

    Seriously, great job, very useful !
    I’ve dowload them in the second, thanks a lot !!

    0
  18. 26

    Christian Munoz

    May 13th, 2010 5:40 pm

    These CSS sheets are very handy. Thanks for the continuous support. Great job!

    0
  19. 27

    Alex Batista

    May 13th, 2010 6:46 pm

    It’s very helpful!

    0
  20. 28

    gurpreet

    May 13th, 2010 8:41 pm

    Webkit is new to me.. thanks for this wonderful help…

    0
  21. 29

    Lukasz Bachur

    May 13th, 2010 10:13 pm

    2.1. – too basicly…

    0
  22. 30

    saroz

    May 13th, 2010 10:24 pm

    thanks for css3. but how can i solve css3 for Opera?

    0
  23. 31

    gopal

    May 13th, 2010 10:30 pm

    it very usfull

    0
  24. 32

    Harald

    May 13th, 2010 11:20 pm

    Thank you, didn’t really dive into CSS3 yet, so this comes in very handy.

    0
  25. 33

    Hartmut

    May 13th, 2010 11:39 pm

    Thank you!

    0
  26. 34

    Deoxys

    May 13th, 2010 11:51 pm

    Great, i just wanted to create such a sheet of my own. :-)

    0
  27. 35

    Shiv

    May 14th, 2010 12:40 am

    Grate, It’s really helpful to us. Thank you!

    0
  28. 36

    KF

    May 14th, 2010 1:27 am

    Great great great!

    Very useful.

    Cheers.

    0
  29. 37

    jaronbarends

    May 14th, 2010 1:33 am

    It would be great if you could add the shorthand notation syntaxes, like border: [ <border-width> || <border-style> || <border-color>]

    0
  30. 38

    louna

    May 14th, 2010 2:50 am

    thanks a lot, it’s sooooooo helpfull and usefull, but it would be great if you add some scipt for the IE browsers.

    0
  31. 39

    Alice

    May 14th, 2010 3:18 am

    Nice idea, and bits of it are really useful summaries, but I have a couple of issues (sorry!)

    On the css 2.1 sheet you have a section called ‘General’, where you have a mix of selector syntax, where you decribe how to select a tag by its class or ID, then you have a bit of HTML markup info about divs and spans, then you have a bit of CSS attribute info, about color and overflow etc.

    It’s actually really unhelpful to mix up these three types of information under one heading as you are implying that these are all the same type of information, which they are not.

    There is also an error I think: you give color as ‘foreground color’. As far as I know, this attribute only controls text color. If that’s what you mean by ‘foreground’ I think it may confuse some people.

    It’s not really clear what the ‘shorthand’ box is for either.

    One final comment… without re-opening the IE6 debate, some people (like me) still have to develop for IE6 due to Government users who still have to struggle with it, sadly. So glibly adding a comment like ‘developing for IE6 is a lost cause’ may be something we can all empathise with, unfortunately some of us still have to, and new designers need to know that they may have to for a while too at least.

    Thanks!

    0
  32. 40

    blurkness

    May 14th, 2010 4:27 am
    0
    • 41

      James Gill

      May 16th, 2010 8:37 am

      Awesome – that looks pretty useful.

      If anyone needs more detail than what our Help Sheets provide, W3C is the place to go.

      0
  33. 42

    Phil Benoit

    May 14th, 2010 5:34 am

    Thanks for this, it will be up on the wall for the next few months!

    0
  34. 43

    Simon

    May 14th, 2010 5:44 am

    Thanks! Cheatsheets are great!

    0
  35. 44

    LordOfMictlan

    May 14th, 2010 6:23 am

    Much better cheat sheets for CSS:

    http://www.w3schools.com/css/css_reference.asp
    http://www.veign.com/downloads/guides/qrg0008.pdf

    The ones offered in this post would only be useful if you had no experience at all with CSS.

    0
    • 45

      James Gill

      May 16th, 2010 8:42 am

      They look like some great cheatsheets.

      Our Help Sheets may not be for everyone, but they certainly cover enough to be useful to more than just beginners.

      It’s a difficult balance to get a useful amount of information on to 2 Help Sheets, ensure they’re readable, look attractive, and remain helpful. As with any design, we had to make a few tradeoffs to meet those priorities.

      0
  36. 46

    srinufx

    May 14th, 2010 6:42 am

    Great Article!

    0
    • 47

      war

      September 19th, 2010 8:53 am

      you’re gr8 ra

      0
  37. 48

    Jean-Francois Monfette

    May 14th, 2010 6:52 am

    Once again Smashing Magazine does a smashing good job. Thanks a lot for those very useful cheat sheets.

    0
  38. 49

    Leeiio

    May 14th, 2010 5:08 pm

    6.2. The ‘box-shadow’ property

    This module previously defined a ‘box-shadow’ property. This feature has been removed from this module for further discussion, and should reappear in another CSS module (or a later version of this module) in the near future.

    and the lastest version is inset || [ <length> <length> <length>? <length>? || <color> ]
    http://www.w3.org/TR/2008/WD-css3-background-20080910/#the-box-shadow
    http://leeiio.me/css3-box-shadow-removed/

    0
  39. 50

    madhu

    May 14th, 2010 9:15 pm

    really thanks for the links of CSS information

    0
  40. 51

    anjum

    May 14th, 2010 10:12 pm

    Hey

    It seems you aren’t outlines Your PDF source file. I am having problem rendering Your PDF font. as i am not on Mac. Will u please outline Your source pdf file which break fonts. Please update link

    Thanks

    0
    • 52

      James Gill

      May 16th, 2010 8:44 am

      Hi Anjum, thanks for the comment here and on our own site – we’ll see what we can do to ensure the PDF displays better for those without Myriad Pro. Apologies for not outlining the font before, we assumed that we had, but evidently we were mistaken.

      0
  41. 53

    MayMax

    May 16th, 2010 1:39 am

    I must download cheet sheets. Very essential for me. I am visiting another related pages in another tab. I like to share this pdf files in my blog (http://netgator.blogspot.com). Would you please give me permission to do that.

    Thanks

    0
  42. 54

    Vertinix

    May 16th, 2010 8:07 am

    CSS3 cheat sheet is very much helpful.

    0
  43. 55

    Tyom

    May 16th, 2010 1:36 pm

    Box shadow can also be ‘inset’, have negative values and have variable opacity.

    e.g.: -moz-box-shadow: inset 0 -1px 1px rgba(0,0,0,.4)

    Also, rounded corner shortcuts don’t have to be equal in one line declaration.

    e.g.: -moz-border-radius: 0 4px 4px 0 (top left, top right, bottom right, bottom left).

    Also saves trouble remembering the difference between -webkit-border-top-left-radius and -moz-border-radius-topleft.

    Crossbrowser gradients:
    Firefox: background-image: -moz-linear-gradient(#eee, #ccc);
    Webkit: background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ccc));
    IE filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr=#eeeeee, endColorStr=#cccccc);

    0
  44. 56

    Cristian

    May 17th, 2010 5:36 pm

    Thank you, you have no idea how helpful this is. Simple, and helpful.

    0
  45. 57

    Rosti The Snowman

    May 18th, 2010 1:42 am

    Brilliant post very helpful!

    0
  46. 58

    Praveen Nair

    May 18th, 2010 7:54 pm

    Hey….thank you very much for the nice post.

    regards
    nair

    0
  47. 59

    devin

    May 18th, 2010 8:02 pm

    what about ie6 ?? is it compatible for ie6?? and the hopeless answer NO…..

    0
  48. 60

    kelrey

    May 18th, 2010 9:07 pm

    thanks …can’t wait to read the css3 cheat sheet

    0
  49. 61

    Jarryd C.

    May 18th, 2010 10:23 pm

    Thanks for the great cheatsheet. One question though:

    Any reason why you chose to use “src: local(’ ‘),” over “src: local(‘☺’).”?

    0
  50. 62

    Zeeshan

    May 19th, 2010 12:49 am

    its very nice idea. I also use these properties. thanks

    0
  51. 63

    Michael Persson

    May 19th, 2010 4:35 am

    Great links, thanks also for the great smashing book, I’m reading it now and its really useful…

    0
  52. 64

    Ahmad Alfy

    May 19th, 2010 7:06 am

    I’ve always wanted a cheat sheets for CSS3 :) Thank you

    0
  53. 65

    Rakesh Menon

    May 19th, 2010 5:59 pm

    Thank you for the share.

    0
  54. 66

    Andre Viana

    May 21st, 2010 12:13 pm

    Thanks!

    0
  55. 67

    Dries Van haver

    May 24th, 2010 10:57 pm

    Nice one, it ‘ll role out of my printer…

    0
  56. 68

    markeb23

    May 25th, 2010 2:58 pm

    Both sheets are very useful and look great too!

    0
  57. 69

    James Gill

    June 2nd, 2010 4:30 pm

    For anyone who was having trouble reading these Help Sheets due to font issues, we’ve published new versions on the GoSquared site with all text outlined:

    http://www.gosquared.com/liquidicity/archives/1010

    I hope this helps, and thanks for your patience!

    0
  58. 70

    Camp fire ring

    June 16th, 2010 5:27 pm

    Okay..i see!this might help.

    thanks

    camp fire

    0
  59. 71

    Ipads Tablet

    June 21st, 2010 9:44 pm

    The CSS cheat sheet is a one-page 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.

    ipad tablet

    0
  60. 72

    E_Designer

    July 8th, 2010 8:46 am

    Love the CSS cheat sheet!

    0
  61. 73

    haridesigner

    September 29th, 2010 11:58 pm

    Good one

    0
  62. 74

    skylos

    June 26th, 2011 7:37 pm

    Dude where’s my Opera?
    Thanks anyway

    0
  1. 1

    bill

    May 13th, 2010 12:41 pm

    Someone can’t count. It’s one line if you want all four corners to be the same, and three lines if you want all four corners to be the same in all browsers that support CSS rounded corners. Someday border-radius along will be sufficient.

    +2
  2. 2

    thekumar

    May 14th, 2010 5:36 am

    you could go upto 12 lines if you make an ugly looking rounded corner box.

    +1

Leave a Comment

Yay! You've decided to leave a comment. That's fantastic! Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let's have a personal and meaningful conversation instead. Thanks for dropping by!

↑ Back to top