Thursday, February 21, 2013

Background Shorthand Notation

element {

  background:

    #fff

    url(image.png)

    no-repeat

    20px 100px

    fixed;

}



element {

  background-color: color || #hex || (rgb / % || 0-255);

  background-image:url(URI);

  background-repeat: repeat || repeat-x || repeat-y || no-repeat;

  background-position: X Y || (top||bottom||center) (left||right||center);

  background-attachment: scroll || fixed;

}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.