Date post: | 01-Jan-2016 |
Category: |
Documents |
Upload: | griffin-marsh |
View: | 214 times |
Download: | 0 times |
CSS Abilities
visibility: hidden Box Model
Border border-style: solid, etc
Outline outline-style
Margin margin-top, -right, -bottom, -left
Padding padding-top, etc
CSS Rounded Corners
Useful tool for elements Using circles or ellipses#rounded{height: 5em;width: 12em;-moz-border-radius: 1em 4em 1em 4em;border-radius: 1em 4em 1em 4em;
} http://border-radius.com/
Generate circle-rounded corner CSS
CSS Positioning
Static Default mode Always positioned with respect to HTML
flow Fixed
Positioned relative to the browser window Relative
Positioned relative to its normal position Absolute
Positioned relative to the first non-static parent element
CSS Align
Align block (full width + line break) elements horizontally .center{margin-left:auto;margin-right:auto;width:70%;background-color:#b0e0e6;}
CSS Pseudo-classes
Example: anchor stylinga:link {color:#FF0000;} /* unvisited link */a:visited {color:#00FF00;} /* visited link */a:hover {color:#FF00FF;} /* mouse over link */a:active {color:#0000FF;} /* selected link */
Some more (if interested, look up online)