There are tricks in each and everything these might help in making the things easier, since there are tricks in all in CSS also there are tricks which make it easy. The first trick is CSS trick shorthand rule this will be helpful to the user when styling fonts with CSS and this shorthand version will only work if the user is specifying both the font size and the font family and the user should also specify the font weight, font style and font variety. The next one is two classes together generally just one class is assigned but in reality the
In order to avoid the moving bloat from HTML and to reduce the amount of HTML sent to site visitors CSS to layout website is used, and the users should try to keep the size of their CSS files down as well to do this the best favorite CSS efficient trick is shorthand properties, about this shorthand properties many of the people know and use but some do not make full use of these space saving properties. These shorthand properties can be used to set several properties at once. And this can save a lot of space in the users CSS file.There are few
Roger Johansson has been working with Web Standards long enough to fully understand the importances of coding efficiency. He shares some of his tips: "Shorthand properties can be used to set several properties at once, in a single declaration, instead of using a separate declaration for each individual property. As you’ll see, this can save a lot of space in your CSS file.
Quite a few shorthand properties are available – for details I suggest the W3C CSS specifications of the background, border, border-color, border-style, border sides