Compressing properties
It is possible to shorten the way you write your commands in CSS. If you already know your basics of the CSS compiling method for property, you will be able to add more properties through background
to simplify or shorten your edited style sheet.
background-color: #FFFFFF; background-image: url("file or url name"); background-repeat: no-repeat; background-attachment: fixed; background-position: right bottom;
This is already five lines of commands. To shorten the style commands, use background
to incorporate the five lines, and you will get the following code:
background: #FFFFFF url("file or url name") no-repeat fixed right bottom;
The conventions in CSS are to follow the respective arrangements:
[background-color] [background-image] [background-repeat] [background-attachment] [background-position]
Tip
Remember that if any of the values for the property are not given, they will be set to their default values. Always set a background-color
to be used if the image is unavailable...