Quick Tip 2 – CSS Text Shadow

Our second tip of our series looks at the text shadow property and here it is…

If you are looking to add a little finer detail to your designs then this handy bit of code will allow you to view shadows on your real HTML text.


text-shadow: 2px 2px 2px #333333;

Placing the rule above into your style sheet will display a shadow to which ever tag you require. Here is an example of this effect. Quick Tip Gary

CSS Text Shadow

Unfortunately this will only display in certain browsers. Here is the list below

  • Safari 1.1 +
  • Firefox 3.5 +
  • Opera 9 +
  • Chrome

Related posts:

  1. Quick Tip 5 – Compact CSS
  2. Quick Tip 6 – CSS Shorthand
  3. Quick Tip 7 – CSS !Important
  4. Quick Tip 9 – CSS min height
  5. Quick Tip 10 – CSS Vertical Alignment

Tags: ,

2 Responses to “Quick Tip 2 – CSS Text Shadow”


  1. Saurabh Says:
    March 2nd, 2010 at 1:32 pm

    this thngy also doesn’t work in iexplore.exe. ….

    anyway is there any solutions for these….


  2. Martyn Says:
    March 4th, 2010 at 10:40 am

    Without sounding harsh to Microsoft, I think that may be your reason why it doesn’t work.

Leave a Reply

Contact Us Today...

For more information regarding any of our services or to arrange a free consultation simply send us a message or call 02920 290 080 for Cardiff and 01179 000 482 for Bristol.

Firefox 4 Beta

Mozilla have released the first beta version of Firefox 4. The latest version of this browser will include better support for many of the new web technologies, a new add on manager, crash protection from third party plugins and accelerated hardware support. One of the most obvious changes is that the tabs have now been moved [...]
» more

Cardiff: 02920 290 080 Bristol: 01179 000 482