css2 - CSS2 BingLi 1 Color colorname red green blue RGBvalue color:rgb(100,200,50 HEXvalue#F01299 moreinfo 2 Backgrounds backgroundcolor color

css2 - CSS2 BingLi 1 Color colorname red green blue...

This preview shows page 1 - 9 out of 20 pages.

CSS 2 Bing Li 1
Color color name red green blue ... RGB value color:rgb(100,200,50) HEX value: #F01299 more info 2
Backgrounds background‐color color transparent initial : use default value inherit : inherit from parent element body { background‐color : lightblue ; } 3
< div style = " background‐color:red; width:600px; height:300px "></ div > 4
background‐image url('URL') none initial inherit body { background‐image : url (" background.jpg "); } 5
background‐repeat repeat­x repeat­y repeat no­repeat initial inherit body { background‐image : url (" eeyore.jpg "); background‐repeat : repeat‐x ; } 6
background‐position {left, center, right} + {top, center, bottom} x% y% xPos yPos initial inherit body { background‐image : url (" eeyore.jpg "); background‐repeat : no‐repeat ; background‐position : right top ; } 7
background‐attachment scroll: scrolls along with the element fixed: fixed with the regard to the viewport local: scrolls along with the element's content initial inherit body { background‐image : url (" eeyore.jpg "); background‐repeat : no‐repeat ; background‐position : right top ; background‐attachment : fixed ; } example 8

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture