Text-decoration part 1
The text-shadow Property
The text-shadow property adds shadow to text.
It takes four values: the first value defines the distance of the shadow in the x (horizontal) direction, the second value sets the distance in the y (vertical) direction, the third value defines the blur of the shadow, and the fourth value sets the color.
The HTML:<h1>Text-shadow example</h1>
The CSS:
In the example above, we created a shadow using the following parameters:
5px – the X-coordinate
2px – the Y-coordinate
4px – the blur radius
grey – the color of the shadow
Result:
To add more than one shadow to the text, add a comma-separated list of shadows.
Comments
Post a Comment