• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Colors > The Background Property

The Background Property

The background property is a shortcut means to set all the first five properties at the same time. Its values are all the possible values of those five properties. You may set from one to five of the properties in any order. However, this property always sets all five of the properties regardless of whether you explicitly set values for all five. If you don’t explicitly set a value for a specific property, the background property uses that property’s initial value as the property’s value. For example:

BODY { background: red }


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint