pepak [6859]: Hele, tady to stylování a vůbec webování není tak úplně můj šálek čaje, dělám to jen občas a nerad kvůli struktuře naší firmy (normálně mne zajímá spíš serverová stránka, "business logic" as they call it), ale specifikace mluví imho dost jasně:
The 'background' property is a shorthand property for setting the individual background properties (i.e., 'background-color', 'background-image', 'background-repeat', 'background-attachment' and 'background-position') at the same place in the style sheet.
Given a valid declaration, the 'background' property first sets all the individual background properties to their initial values, then assigns explicit values given in the declaration.
Example(s):
In the first rule of the following example, only a value for 'background-color' has been given and the other individual properties are set to their initial value. In the second rule, all individual properties have been specified.
BODY { background: red }
P { background: url("chess.png") gray 50% repeat fixed }
|