O'Reilly logo

PrestaShop 1.3 ThemingBeginner’s Guide by Hayati Hashim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required