No. 1
-----body {
font-weight: bold;
font-style: italic;
font-size: 83%;
line-height: 140%;
font-family: verdana, arial, sans-serif;
}
body {
font: bold italic 83%/140% verdana, arial, sans-serif;
}
No. 2
-----#element {
margin-top: 1em;
margin-right: 0.5em;
margin-bottom: 1em;
margin-left: 0.5em;
padding-top: 1em;
padding-right: 0.5em;
padding-bottom: 0.75em;
padding-left: 1.5em;
}
#element {
margin: 1em 0.5em;
padding: 1em 0.5em 0.75em 1.5em;
}
No. 3
-----#element {
border-top-width: 1px;
border-top-style: solid;
border-top-color: #000;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #000;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #000;
}
#element {
border: 1px solid #000;
}
but with different width...#element {
border: 1px solid #000;
border-width: 1px 2px 3px 1px;
}
different styles and colours#element {
border-width: 1px 2px 3px 1px;
border-style: solid dashed dotted ridge;
border-color: #000 #666EFF #CC3300 #00CC33;
}
No. 4
-----#element {
background-color: #000;
background-image: url(myImage.jpg);
background-position: top left;
background-repeat: no-repeat;
}
#element {
background: #000 url(myImage.jpg) top left no-repeat;
}
Information from: Tyssen Design
Simple Note 2 (shorthand CSS)
0 TrackBacks
Listed below are links to blogs that reference this entry: Simple Note 2 (shorthand CSS).
TrackBack URL for this entry: http://www.nana4design.com/cgi-bin/mt/mt-tb.cgi/18

Thank you!
test
test
test test