CSS Background

background-color

  • #RRGGBB - Each digit uses values from 0-9 + A-F. All equal values make a shade of gray.
  • background-color:#fff000;

background-image

  • Specifies a background image. Uses url() parameter
  • background-image:url(http://www.csscheatsheets.com/images/header.gif);

background-attachment

  • fixed | scroll | inherit
  • body { background-attachment: fixed; }

background-repeat

  • no-repeat | repeat | repeat-x | repeat-y | inherit
  • body { background-repeat: no-repeat; }

background-position

  • top | top left | top center| top right | center left | center center | center right | bottom left | bottom center | bottom right | % % | px px
  • background-position: 0% 0%
<