Topic: CSS Shorthand (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Georgia |
posted 11-11-2004 19:50 |
Bipolar (III) Inmate From: Minnesota |
posted 11-11-2004 20:07
http://home.no.net/junjun/html/shorthand.html |
Paranoid (IV) Inmate From: France |
posted 11-11-2004 20:35
Another CSS shorthand: When setting a property having a top, right, left, bottom versions( e.g. border-color, padding, border-width, margin, border-style ... ), the first one is the top and then the other goes clockwise. And if one is missing, its value is that of its opposite side. code: margin: 10px 20px; /* see point 1 */
All this is explained in CSS2 specifications: 8.5.1 Border width. |
Maniac (V) Inmate From: raht cheah |
posted 11-11-2004 21:08
w3schools CSS is good as usual. You can choose an element from <that< page then pick the "On-line examples" link for that element and normall there's an example called "All the >element< properties in one declaration" where you can play around with an online editor. |