WOGONG blog wiki read

css

CSS

rule: selector & properties

selector

  1. element
  2. class .header{;}
  3. merge .header p{;}

properties

  1. color
    • red, yellow, etc.
    • rgb(102,153,0)
    • #9933cc
  2. font-family
    • font-family: Arial, Helvetica, sans-serif;
    • font-family: "Times New Roman", Times, serif;
    • font-family: "Courier New", Courier, monospace;
  3. font-size:can be measured in pixels, ems, or rems.
    • 60px
  4. background-color
  5. background-image
  6. border: width, style, and color
    • border-style:
    • solid
    • dotted
    • double
    • dashed
    • groove
    • inset
    • outset
    • ridge * border-width: border-top/bottom/right/left * border-color:
  7. padding
    • padding-top
    • padding-bottom
    • padding-right
    • padding-left
  8. margin
    • margin-top
    • margin-bottom
    • margin-right
    • margin-left
  9. text-transform:uppercase
  10. display block/inline
  11. postion
    • relative: top left bottom right
  12. float


Published 2015-05-27 00:00:00 +0800
Updated 2015-05-27
Link: