Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
notes:css_cheat_sheet [2008/08/20 22:20] smthng |
notes:css_cheat_sheet [2008/08/21 00:18] (current) smthng |
||
---|---|---|---|
Line 70: | Line 70: | ||
==== CSS Border/List Properties ==== | ==== CSS Border/List Properties ==== | ||
* Border properties examples (btlr=bottom/ | * Border properties examples (btlr=bottom/ | ||
- | border-style: | + | border-style: |
+ | | ||
border-btlr: | border-btlr: | ||
border-width: | border-width: | ||
Line 101: | Line 102: | ||
float: btlr ; | float: btlr ; | ||
position: relative(to normal)/ | position: relative(to normal)/ | ||
- | /fixed(rel to window)/ | + | /fixed(rel to window, doesn' |
bottom/ | bottom/ | ||
+ | vertical-align: | ||
+ | |||
+ | * Visibility properties <code html> | ||
visibility: | visibility: | ||
clear: | clear: | ||
+ | clip: rect(10px, 5px, 10px, 5px) | ||
+ | overflow: | ||
+ | z-index: 1 (0 is normal) </ | ||
+ | |||
+ | ==== Advanced CSS ==== | ||
+ | * Pseudo classes can restrict the selector. a:hover and a:active may have to come after a:link and a:visited. <code html> | ||
+ | selector.class: | ||
+ | a:link {color: # | ||
+ | a:visited {color: # | ||
+ | a:hover {color: blue} (mouse-over element) | ||
+ | a:active {color: #0000FF} (selected element) | ||
+ | a:focus {color: #0000FF} (focused element - not in IE) | ||
+ | p: | ||
+ | p > em: | ||
</ | </ | ||
+ | * Pseudo elements are dynamic elements <code html> | ||
+ | p: | ||
+ | h1:before {} ; h1:after {} ;</ | ||
+ | * @media allows different styles for different media. Media examples include screen, print, handheld, projection, tty, tv, aural, braille. <code html> @media screen, | ||
+ | * Misc Properties <code html> | ||
+ | opacity: | ||
+ | filter: | ||
+ | |||
+ | onmouseover=" | ||
+ | this.filters.alpha.opacity=100" | ||
+ | onmouseout=" | ||
+ | this.filters.alpha.opacity=40" | ||
+ | |||
+ | cursor: |