This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
csscheats [2016/01/09 05:35] dwheele created |
csscheats [2016/06/10 00:25] (current) admin ↷ Page moved from dan:csscheats to csscheats |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Selectors ===== | ===== Selectors ===== | ||
| + | ^Selector^Description^ | ||
| + | |.class|Selects elements with class=" | ||
| + | |# | ||
| + | |div, p|Selects all <div> elements and all <p> elements| | ||
| + | |div p|Selects all <p> elements inside <div> elements| | ||
| - | ===== Operators ===== | ||
| + | ===== Color Picker ===== | ||
| + | [[http:// | ||
| - | ===== Examples | + | ===== Operators |
| + | * border | ||
| + | * border: 5px solid red; | ||
| + | * border-bottom : 2px; | ||
| + | * font-family | ||
| + | * margin | ||
| + | * font-color | ||
| + | * background-color | ||
| + | * background-color: | ||
| + | * color (sets Text color) | ||
| + | * color: #00ff00; | ||
| + | * padding | ||
| + | * padding: 3px; -> 3 pixels all around, or specify clockwise starting with top | ||
| + | |||
| + | ===== Examples ===== | ||
| + | <code html> | ||
| td {font-family: | td {font-family: | ||
| + | </ | ||
| + | |||
| + | ===== Color Picker ====== | ||
| + | |||
| + | http:// | ||