IMG-LOGO

CSS3 Text Shadow

andy - 16 Aug, 2013 3516 Views 0 Comment

One of the new feature in CSS3 is to add text shadow effect for any text on your website.

Text Shadow Properties

The text shadow will have the following properties.

  1. Horizontal Length
    This will be the horizontal distance of the shadow. Example value: 5px;
  2. Vertical Length
    This will be the vertical distance of the shadow. Example value: 5px;
  3. Blur Radius
    This will be the blur radius distance of the shadow. Example value: 5px;
  4. Shadow Color
    The color of the shadow. Note you can use hex value or rgb values, example #000000 or rgba(255, 255, 255). Alternatively if you want to use an extra gradient, you can use this formula rgba(255, 255, 255, 0.5).

Text Shadow Example in CSS3

This is example text applied with text shadow properties in CSS3.
<style type="text/css">
	.example-shadow{
		-moz-text-shadow: 3px 3px 2px #635f5e;      /* Firefox */
		-webkit-text-shadow: 3px 3px 2px #635f5e; /* Chrome or Safari */
		text-shadow: 3px 3px 2px #635f5e;
	}
</style>
<div class="example-shadow">
	This is example text applied with text shadow properties in CSS3.
</div>

CSS3 Text Shadow

Alternatively, you can see our interactive demo by using our CSS3 Text Shadow Generator.

Comments

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Blogs

How to draw a circle in CSS?

In this article, we are going to learn how to draw a circle in CSS. Firstly what needs to do is to create a CSS class called circle.

Related Tutorials

Media Queries

Learn how to use media queries in CSS3 Media queries are simple conditions used to targetting different devices for tables phones or desktop computers As each device may have different view size media queries become so handy to use to ...

CSS3 Border Radius

With new CSS3 border radius style you can easily create rounded corners for an image or html tag object Back in old days when we want to create a rounded border around an image or object we usually create 4 ...

CSS3 Multiple Column

Learn how to use multiple column property in CSS3 To create multiple columns in CSS3 is now so handy you just need to include a css built in keyword column count to do the job for you No more table ...

CSS3 Opacity

Learn how to use opacity property in CSS3. So what is actually opacity? CSS3 Opacity defines a transparency level of an element. The property value of opacity is range from 0 to 1.

CSS3 Box Sizing

Learn how to use box sizing property in CSS3 As you know many browsers treat margin and padding differently When you combine with width or height of an element box you find out that the final dimension is completely different ...