Css3 Selectors Cheat Sheet



Just last week we released an extensive printable HTML 5 Cheat Sheet that lists all currently supported HTML 5 tags, their descriptions, their attributes and their support in HTML 4. In comments to this post we received many requests for a similar CSS 3 cheat sheet that would present the main features of CSS 3 in a handy, printable reference card.

Selector Types 23 Outline 25 WebsiteSetup.org - Beginner’s CSS Cheat Sheet 1. 3D / 2D Transform 25 Generated Content 26 Line Box 28 Hyperlink 31 Positioning 31 Ruby 32. Beginner’s CSS Cheat Sheet 20. Pseudo-Element::first-letter Adds special style to the first letter of a text::first-line. Internet Explorer Cheat Sheet. Table of contents Polyfills IE conditionals Polyfills IE Conditional comment HTML Polyfills for CSS3 decorations Polyfills You may also need Polyfills IE polyfills Support table Features Support table CSS properties Support table CSS Selectors; Support table; Cheat Sheets Polyfills IE conditionals.

Press CTRL+D / CMD + D CSS Properties Cheat Sheet 95 We provide you with all the CSS3 properties and functions list for you to master CSS. It makes solving UI related problems much quicker. GENERAL; Class: String preceded by a period: ID: String preceded by a hash mark: div: Formats structure or block of text: span: Inline formatting: color: Foreground color.

Just last week we released an extensive printable HTML 5 Cheat Sheet that lists all currently supported HTML5 tags, their descriptions, their attributes and their support in HTML 4. In comments to this post we received many requests for a similar CSS3 cheat sheet that would present the main features of CSS3 in a handy, printable reference card.

So we asked our friend Chris Hanscom from Veign (who created the HTML 5 cheat sheet) to create a quick reference card for CSS 3. We already encouraged you to experiment with CSS 3 in our lastposts and now you can use this handy cheat sheet to use the new CSS 3 features in some modern browsers (Firefox 3.5, Opera 9.6, Safari 3+, Google Chrome and Co.). The result is a printable CSS 3 scrib sheet, created and released exclusively for the readers of Smashing Magazine. Thank you for your great work, Chris Hanscom!

In this post we present a printable CSS 3 Cheat Sheet (PDF), a complete listing of all the properties, selectors types and allowed values in the current CSS 3 specification from the W3C. Each property is provided in a section that attempts to match it with the section (module) that it is most actively associated within the W3C specification. Next to each property is a listing of the expected values that that property takes (normal text shows named values it accepts and italics shows value types it will accept).

The cheat sheet was done in the same format as the CSS 2 Reference Guide that you may want to use for your projects as well.

Download the CSS 3 Cheat Sheet for free!

  • preview (.gif, 1255×882px)
  • download the pdf (5 pages, 123 Kb)

Thank you very much, Chris Hanscom! We appreciate your efforts.

Further Resources About CSS 3

  • Take Your Design To The Next Level With CSS3 In this article, we’ll look at the advantages of CSS3 and some examples of how Web designers are already using it. By the end, we’ll know a bit of what to expect from CSS3 and how we can use its new features in our projects.
  • Push Your Web Design Into The Future With CSS3 A couple of HTML 5 examples and experiments.

A reference for CSS goodness.

Selectors

Pseudo Selectors & Elements

First Element of its Parent Selector

p:first-of-type {}

Text Styling

Font Weight

font-weight: normal | bold | bolder | lighter | 100 - 900

Vertical Alignment

vertical-align: baseline | 10px | sub | super | top | text-top | middle | bottom | text-bottom | initial

Text Transform

Css3 Selectors Cheat Sheet 2020

text-transform: capitalise | lowercase | uppercase

Space Between Characters

Css3 Selectors Cheat Sheetletter-spacing: normal | 4px

Horizontal Alignment

text-align: left | right | center | justify

Text Align Last

text-align-last: auto | left | right | center | justify | start | end | initial | inherit

Text Decoration

text-decoration: none | underline | overline | line-throughCss3 selectors cheat sheet printable

Text Justify

text-justify: auto | inter-word | inter-character | none | initial | inherit

Text Overflow

text-overflow: clip | ellipsis | string | initial | inherit

Text Shadow

text-shadow: h-shadow v-shadow blur-radius color | none | initial | inherit

Position

Position

position: static | relative | absolute | fixed | sticky

Clear Floating Elements

clear: none | left | right | both

Background

Background Repeat

background-repeat: repeat-x | repeat-y | repeat | space | round | no-repeat

Background Attachment

background-attachment: scroll | fixed | local | initial | inherit

Background Position

background-position: top | right | bottom | left | center

Box Properties

Border Style

border-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

List Styling

List Type

list-style-type: disc | circle | square | none

List Position

list-style-position: inside | outside

Flexbox

Sheet

Flex Direction

flex-direction: row | row-reverse | column | column-reverse

Justify Content

justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly

Align Items

align-items: flex-start | flex-end | center | baseline | stretch

Align Content

align-content: flex-start | flex-end | center | space-between | space-around | stretch

Align Self

align-self: auto | flex-start | flex-end | center | baseline | stretch

CSS Grid

Grid Template Columns

grid-template-columns: 40px 50px auto 50px 40px

Css Syntax Cheat Sheet

Grid Template Rows

grid-template-rows: 25% 100px auto

Grid Template Areas

grid-template-areas: 'a b c' | none

Grid Template

grid-template: 'a a a' 20% 'b b b' auto | 100px 1fr / 50px 1fr

Justify Items

justify-items: start | end | center | stretch

Align Items

align-items: start | end | center | stretch

Justify Content

justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly

Align Content

align-content: flex-start | flex-end | center | space-between | space-around | stretch

Grid Auto Columns

grid-auto-columns: 100px | max-content | min-content

Grid Auto Rows

grid-auto-rows: 100px | max-content | min-content

Grid Auto Flow

grid-auto-flow: row | column | row dense | column dense

Grid Column Start

grid-column-start: 2 | areaname | span 2 | span areaname | auto

Grid Column End

grid-column-end: 2 | areaname | span 2 | span areaname | auto

Grid Row Start

grid-row-start: 2 | areaname | span 2 | span areaname | auto

Grid Row End

grid-row-end: 2 | areaname | span 2 | span areaname | auto

Justify Self

justify-self: start | end | center | stretch

Align Self

align-self: start | end | center | stretch

Dynamic Content

Css Selectors Cheat Sheet Selenium

Counter Increment

counter-increment: name-of-counter

Counter Dynamic Value

content: counter(name-of-counter)

Css Selectors Cheat Sheet Selenium Pdf

Attribute Dynamic Value

content: attr(name-of-attribute)