My first bookmarked thread!
CSS shorthand is a great way to write a smaller, faster-loading CSS file. For example you can write
In CSS shorthand the following accomplishes the same thing:Code:body{ background: url("bg.gif"); background-color: #fff; background-repeat: repeat-x; }
Introduction to CSS ShorthandCode:body { background: url("bg.gif") #fff repeat-x; }
CSS Shorthand Guide
Efficient CSS with shorthand properties
My first bookmarked thread!
Early bird gets the worm, but the second mouse gets the cheese
Can also be written as:Code:element{ margin-top:10px; margin-bottom:10px; margin-left:5px; margin-right:5px; }
ie: margin:top | right | bottom | left;Code:element{ margin:10px 5px 10px 5px; }
Or as two values:
ie: margin: top and bottom | left and right;Code:element{ margin:10px 5px; }
This can also be used for padding
yes.. very nifty talent to shorthand.
I find it useful for your own personal works, but that clients like it when I clearly lable and longhand ALL the element properties.
Thats amazing stuff.
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it."
Mike McKenzie - Online Portfolio
Without "geeks", this forum wouldn't exist.l
Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.
Bookmarks