Add shadow effect to fonts using CSS

Hi everyone, Again I need your help: D

Is it possible to add a shadow effect to text in HTML using only CSS? I am working on a project with many buttons, and I need to find a way to add a shadow effect to the text in them without using images and for compatibility with the most commonly used browsers. I tried using the "text-shadow" property in CSS, but that did not work.

thank

+3
source share
4 answers

Yes, here is the syntax:

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

Generally:

text-shadow: x y blur color;

and a link to the page I found: http://www.css3.info/preview/text-shadow/ .

+4
source

IE - , , .

, css, , , jQuery.

0

, , , IE8, filter s:

filter: glow(color=#ffff00,strength=3);
filter: dropshadow(color=#ffff00,offX=5,offY=5);

, , , , display: block; height () width; , position: absolute;, , .

Referring to my source for this: Text-shadow, at: http://www.howtocreate.co.uk/textshadow.html , although I can’t check the accuracy, since I don’t use the regular version of IE (any version) or Windows, given this opportunity.

0
source

Source: https://habr.com/ru/post/1774087/


All Articles