Credits
- Push Your Web Design Into The Future With CSS3 by Chris Spooner, published in Smashing Magazine
- CSS3.info
- Free Fonts available for @font-face embedding
List of the New Features
Dropshadow divs with CSS3.
this effect:

the CSS3 code:
in the format of:
box-shadow: [displacement X] [displacement Y] [blur width] [color];
to force this to work on Safari & Firefox3+ include these lines:
Dropshadow text with CSS3.
this effect:

the CSS3 code:
in the format of:
text-shadow: [dX] [dY] [blur] [color];
This only works on Safari and browsers which support CSS3 properties.
Rounded corner borders with CSS3123.
this effect:

the CSS3 code:
in the format of:
border-radius: [radius size];
to force this to work on Safari & Firefox3+ include these lines:
also, it is possible to specify a different border-radius for each corner like this:

the CSS3 code:
to force this to work on Safari & Firefox3+ include these lines:
Custom border image with CSS3123.
this effect:

the CSS3 code:
nb. you must specify the border (with a width that would accomodate your repeating border image size) otherwise border-image would not work.
in the format of:
border-image: url([image]) [border width] [behaviorX] [behaviorY];
where [behaviorX] and [behaviorY] can be stretch, round, or repeat.
to force this to work on Safari & Firefox3+ include these lines:
also, it is possible to vary the behavior of your border-image (by using one image only) for each corner like this:

the CSS3 code:
to force this to work on Safari & Firefox3+ include these lines:
Color & transparency by RGBA with CSS3.
this effect:

the CSS3 code:
in the format of:
_PROPERTY_ : rgba([red value], [green value], [blue value], [opacity])
This property works on Safari and Firefox 3.0+.
Opacity by opacity value with CSS3.
this effect:

the CSS3 code:
in the format of:
opacity: [decimal degree of opacity];
This property works on Safari and Firefox 3.0+.
Custom fonts by embedding with CSS3.
this effect:

the CSS3 code:
in the format of:
font-face {
font-family: "[assign a name to the font]";
src: url([font file location]) format("opentype");
}
This only works on Safari and browsers which support CSS3 properties1.
Please only use free fonts2 for application of this property to avoid legal issues.
1 Firefox 3.1+ apparently renders CSS3 properties as well.
2 Here is a useful page on the free fonts available for @font-face embedding.
View Demo
- For Safari and Firefox 3.1+ users:
Click here to view the demo HTML page.
Awesome list. Thank you, I’m definitely bookmarking this one.
— ginger · 29/10/09 05:57 AM · #