Text shadow Inset effect css3

17,384

With the text-shadow property, you should be able to get the subtle effect that you're after:

text-shadow: 0 -1px 0 #888;

See a very basic example on jsfiddle.

Share:
17,384
hkasera
Author by

hkasera

I am a coder and I firmly believe in “Tech for Good”. I have a knack for problem solving. Finding tech solutions to real-world problems is what I love to do. I also like spending time on online coding communities. When I am not coding, I am probably working on my art collection.

Updated on July 12, 2022

Comments

  • hkasera
    hkasera almost 2 years

    enter image description here

    I want the inset effect for the above button. The 'text' cancel appears to be type pressed. I have tried a lot of examples available online but they don't have white background examples.

    Help me to gain this effect.

    Thanks in advance!!