Csscheatsheet

751 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
751
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Csscheatsheet

  1. 1. CSS Shorthand Cheat Sheet margin, padding, border-width, outline-width: specifying 4 parameters: 1un 2un 3un 4un 1un border-color, outline-color: #xxx #xxx #xxx border-style, outline-style: solid dotted dashed d 4un 2un specifying less than 4 parameters: 1un (one:) 2u 1un 1un 2un n 3un 1un 3un border, border-left, border-right, border-top, border-bottom: default: medium none #xxx; (leave style out & it (width) (style) (color) making the wi example: 3px solid #888; list-style: default: disc outside none; (type becomes default when image not found (type) (position) (image) example: square outside url(‘star.pn background: default: white url(‘back.png’) repeat top left scroll; (color) (image) (repeat) (position) (scroll) example: black url(‘starrynight.png’) repeat bottom rig font: default: normal normal normal inherited-value/normal inherited-value; (style) (variant) (weight) (size) (line-height) (family) example: italic small-caps bold 1em/1.2em helvetica neue, helvetica (do not try this [ugly] exam pause: cue: col example:
  2. 2. pause: 1s; example: cue: url(‘sound.au’); #x (one attribute sets both (one attribute sets both pause-before && pause-after!!!) cue-before && cue-after!!!) copyright 2007 - edwa

×