Helping ordinary people create extraordinary websites!
GET OUR NEWSLETTER
Your Email:
 

CSS Shorthand Properties

By Trenton Moss
2008-01-26


Conclusion

CSS shorthand properties are great! They're a great way to reduce the amount of code contained in a CSS document, allowing for faster download times and easier editing. Now who can argue with that?

Tutorial Pages:
» CSS fonts
» CSS background and lists
» CSS margin and padding
» CSS borders
» Conclusion


Related Tutorials:
» Planning Your Stylesheet - The Definitive Guide
» Print Stylesheet - The Definitive Guide
» Using CSS Selectors to Highlight Unedited Form Fields
» An Introduction to CSS
» Overlapping tabbed navigation in CSS
» Cascading Style Sheets - CSS

Recent Comments
ryanhellyer
January 26, 2008, 4:21 pm

I tend to remove carriage returns from my CSS too. Partly for saving file size and also as I find it easier to scan for the chunk of CSS I want to edit.

Ie:
Code:
p {
font-size: 1em;
line-height: 1.5em;
font-weight: bold;
font-style: italic;
font-family: serif
border-width:1px;
border-weight:solid;
border-color:#aaaaaa;
}
Would become:
Code:
p {font:1em/1.5em bold italic serif;border:1px solid #aaa}


Read all comments

Advertise with Us!


Tutorials Scripts Web Hosting Developer Manuals
Resources