This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
csscheats [2016/01/09 05:38] dwheele [Selectors] |
csscheats [2016/06/10 00:25] (current) admin ↷ Page moved from dan:csscheats to csscheats |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| |.class|Selects elements with class=" | |.class|Selects elements with class=" | ||
| |# | |# | ||
| + | |div, p|Selects all <div> elements and all <p> elements| | ||
| + | |div p|Selects all <p> elements inside <div> elements| | ||
| + | ===== Color Picker ===== | ||
| + | |||
| + | [[http:// | ||
| ===== Operators ===== | ===== 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 ===== | ===== Examples ===== | ||
| Line 17: | Line 33: | ||
| td {font-family: | td {font-family: | ||
| </ | </ | ||
| + | |||
| + | ===== Color Picker ====== | ||
| + | |||
| + | |||
| + | http:// | ||