« Interview with Craig Newmark | Main | Who's a spammer? »

February 09, 2005

CSS Shorthand at a Glance

Alejandro Gervasio has a new article published by devarticles.com called "CSS Shorthand at a Glance" and it is important to note that for some elements, like font properties, don't have any particular order they need to be specified in, while others do. Propeties for margin and padding, etc., always start at the top and move clockwise around the page.

ex: <div style="padding: 0px; 10px; 0px; 10px;">text</div>

This pads both sides, but not the top or the bottom becasue we have those values set to zero.

If you're already getting comfortable writing CSS this article might save you some time, and extra bytes in your stylesheets. You can read it here.

Posted by Steve MacLellan at February 9, 2005 08:30 AM

Trackback Pings

TrackBack URL for this entry:
http://www.homebusiness-websites.com/mt/mt-tb.cgi/124

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?