{background:} - CSS background Property Reference - CSS :: webDev

{background:} Property CSS Shorthand Guide

By default, the background property will assume the following when you do not declare each value of the properties.

default background property values

element { background-color: transparent; background-image: none; background-repeat: repeat; background-position: top left; background-attachment: scroll; } Lesson learned: be careful on what you don’t declare. By chosing to not declare a value on a shorthand property, you are explicitly declaring the above default settings. For example, let’s look at the following example.