Posts Tagged ‘drop shadow’

CSS Text shadow

May 23rd, 2010 by JorisO | 1 Comment | Filed in CSS3, Front-end development

CSS 3 allows you to add drop shadows to text. The text-shadow property’s syntax doesn’t require vendor specific prefixes. That means this method for adding shadows behind text is finalized.

(more…)

Tags: , ,

CSS 3 drop shadow

February 13th, 2010 by JorisO | No Comments | Filed in CSS3, Front-end development

CSS 3 allows us to add drop shadows using the box-shadow directive. The box shadow directive is for creating drop shadows on box-model elements, eliminating the need for background images or JavaScript solutions to achieve this effect. The box shadow directive is not for adding shadows to text. To add drop shadow to text nodes you should use the the text-shadow directive.

Box-shadow takes 3 lengths and a color as it’s attributes, the lengths are:

  1. the horizontal offset of the shadow, positive means the shadow will be on the right of the box, a negative offset will put the shadow on the left of the box;
  2. the vertical offset, a negative one means the box-shadow will be on top of the box, a positive one means the shadow will be below the box;
  3. the blur radius, if set to 0 the shadow will be sharp, the higher the number, the more blurred it will be.

(more…)

Tags: , , ,