CSS
CSS Shortcuts
Sunday, 18 September 2005
| Article Index |
|---|
| CSS Shortcuts |
| Font Shortcuts |
| The Grouped Method |
| All Pages |
Page 1 of 3
Color Shortcuts
When digging through other people's css (people who are better than you, at least in CSS), have you seen this:
color:#33e
"But i've always learned there were 6 places for a hex value!" Well you know that the hex is RGB R(xx) G(xx) B(xx). The shortcut is, if the two values are going to be the same for each channel then you can just use one. As in the above example its the same as saying:
color: #3333ee;.
Examples:
color: #03f = #0033ff
color: #eb4 = #eebb44
Feed Station |
Bits of Work |

