Last week I posted a CSS3 dropdown menu and someone complained that I didn't explain the CSS code in detail. Well, here is a post on the basics of the new properties: text-shadow, box-shadow, and border-radius. These CSS3 properties are commonly used to enhance layout and good to know.
RGBA
The first three values are RGB color values and the last value is the level of the transparency (0 = transparent and 1 = opaque).
RBGA can be applied to any properties associated with color such as font color, border color, background color, shadow color, etc.
Text Shadow
Text shadow is structured in the following order: x-offset, y-offset, blur, and color;
Set a negative value for x-offset to shift the shadow to the left. Set a negative value for y-offset to shift the shadow to the top. Don't forget you can use RGBA values for the shadow color.
You can also specify a list of text-shadow (separated by a comma). The following example uses two text-shadow declarations to make a letter press effect (1px top and 1px bottom).
text-shadow: 0 1px 0 #fff, 0 -1px 0 #000;
Border Radius
The shorthand for border radius is similar to the padding and margin property (eg. border-radius: 20px). In order for the browsers to render the border radius, add "-webkit-" in font of the property name for webkit browsers and "-moz-" for Firefox.
You can specify each corner with a different value. Note Firefox and Webkit has different property names for the corners.
Box Shadow
The structure for box shadow is same as the text-shadow property: x-offset, y-offset, blur, and color.
Again, you can apply more than one box shadow. The following example is a list of three box shadow declarations.
-moz-box-shadow:
-2px -2px 0 #fff,
2px 2px 0 #bb9595,
2px 4px 15px rgba(0, 0, 0, .3);









Just want to say what a great blog
I am on the lookout for such information white iPhone 4 .I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say
Hi
this is really good,
Interesting post about The Power of Information Review launches
Good day
Thanks a lot dude. I needed such a simple and descriptive reference to CSS3 basics.
White iphone 4 avaiable! It’s a great news to tell you the latest white iphone 4 Conversion Kit is on sale. Get the chance to make your iphone more charming!
You’ve know idea how much time this has saved me in the forums thanks so much !
bana yeterrr
Lol ,it is a great fun
This is an awesome guide. Used it for some of my text and box shadows
Great review — love pierogies — they are my comfort food reminding me of my dad that ate them often on Saturday nights uggs outlet
I am on the lookout for such information white iPhone 4 .I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say
Great and simple article, thank You!
One of my favorite blogs :)
讲解的直白而简洁.
真漂亮
请不要使用中文。。。
為什麼呢
凑热闹 留名……
Why can’t my professors be as brilliant as you…? You should have a school!
Awesomely crafted! More! More! More!!!
two shadows in the same div.. finally! Thanks :)
yea, I know what you mean. I looked for that a lot as well heheh
This is so cool. I love it. I’m a CSS beginner and I like it so much. I learned “old css” and learning the new capabilities of CSS3 is just awesome. Thank you so much.
Bookmarked it for later, this is very interesting.
age of heart attack decreased with each passing day, he said.
Verry good.
And then he handed you the thirty-five 45