CSS3 brings us yet another great feature that we used to have to go into Photoshop or Illustrator to create. CSS3 gives us the power to create drop shadows under our text!
Below you will find an explanation of the code and examples. Copy and past the the code. Experiment, Explore, come back and share what you find!
Here is the code and an example of a line of CSS3 that would create effect:
textshadow {
text-shadow: 1px 1px 1px #00C;
}
Deciphering the "Meat" of the Code for this Effect
The 1st number refers to the X Offset. This shadow moves left to right along the Horizontal Axis.
The 2nd number refers to the Y Offset. This shadow moves top to bottom along the Vertical Axis.
The 3rd number refers to the blur amount of the pixels.
The 4th number refers to the color of the shadow.
So, now that we know what each number refers to in this line of CSS3 we can experiment and create different effects. Here are some examples with the code below:
.one {
text-shadow: 20px 20px 3px #666;
}
Below you will find an explanation of the code and examples. Copy and past the the code. Experiment, Explore, come back and share what you find!
Here is the code and an example of a line of CSS3 that would create effect:
textshadow {
text-shadow: 1px 1px 1px #00C;
}
Shadows on Text
Deciphering the "Meat" of the Code for this Effect
The 1st number refers to the X Offset. This shadow moves left to right along the Horizontal Axis.
The 2nd number refers to the Y Offset. This shadow moves top to bottom along the Vertical Axis.
The 3rd number refers to the blur amount of the pixels.
The 4th number refers to the color of the shadow.
So, now that we know what each number refers to in this line of CSS3 we can experiment and create different effects. Here are some examples with the code below:
.one {
text-shadow: 20px 20px 3px #666;
}
Example 1
.two {
text-shadow: 2px 2px 0px #FF6FCF;
}
Example 2
.three {
text-shadow: -4px -4px 1px #BAB9FA;
}
Example 3
.four {text-shadow: -2px 1px 0px #6699CC;
}