Test Shadow using CSS

I would like to bring up shadow effect using css. how can i do it?

say, "Sharepoint" text should display as Sharepoint with shadow effect
chikku2003Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Seven priceFull StackCommented:
Anyway, the CSS needed for Safari is as follows:
.shadow {
      text-shadow: #666666 5px 5px 5px;
}


       Although Internet Explorer doesnt use the text-shadow CSS property,       it does provide a nice easy way of creating text shadows: the shadow filter.  This       is well documented on other sites, so Ill just give you an example here.  To create       similar shadows to the example above for Safari, youd use the following CSS:   .shadow {
      height: 1em;
      filter: Shadow(Color=#666666,       
                  Direction=135,
                  Strength=5);
}

Shadows in Mozilla
 
Heres where things start getting meaty. Since the Gecko based browsers do not know about the previous two methods of creating shadows, we need to create our shadows in some third way.
 
There are various ways that we could create the text shadows in the Gecko browsers. You could, for example, make use of your favourite image replacement technique to replace the text to be shadowed with an image of some shadowed text. Thats a fine technique, but not the one that I chose. What I chose to do was create a piece of shadow text using the :before pseudo-element.
 
.shadow {
  line-height: 2em;
  white-space: nowrap;
  
}
 
.shadow:before {
  display: block;
  margin: 0 0 -2.12em 0.15em;
  padding: 0;
  color: #666666; 
}
 
#shadow_header:before { content: 'In shadow'; }

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vibrazyCommented:
0
Seven priceFull StackCommented:
I know thats my site.
0
chikku2003Author Commented:
thanks. for the nice pointer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.