
Educators: Earn a free Gold upgrade by joining the PBwiki Back To School Challenge.
In CSS, there are many ways to code the same style. The typical way is clear and comprehensive, but can be time consuming. There is a much easier, shorthand way of writing certain aspects of CSS. This page will show you how to condense some of your code.
Normally, for font styling you would have a selector with many attributes on separate lines, like so:
That alone is four lines a code, and if you have a separate styling for different classes or selectors, it can add up and make your style sheet grow exponentially. These four lines can be condensed into a single attribute quite easily:
See? Both examples contain code that performs exactly the same, but one takes four times as long to write!
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |