Am beginner with CSS. How can I generate the CSS for generating shadow effect as in the attachment?
How to create the style as in the attached
65 Views Asked by Ajai rajan At
3
There are 3 best solutions below
0
On
Use the text-shadow property.
Here is an example that gives an inner text shadow.
font: bold 200px arial, sans-serif;
background-color: #565656;
color: transparent;
text-shadow: 2px 2px 3px rgba(255,255,255,0.5);
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
0
On
HTML:
<p>
CUSTOM FRAMING from $99
</p>
CSS:
p {
-webkit-text-fill-color: rgb(255, 255, 255);
color: rgb(255, 255, 255);
-webkit-text-stroke: 1px rgb(150, 150, 150);
text-shadow: -2px 0px 2px rgb(150, 150, 150);
font-size: 30px; /* Optional. Just for demo purposes. */
}
Snippet below:
p {
-webkit-text-fill-color: rgb(255, 255, 255);
color: rgb(255, 255, 255);
-webkit-text-stroke: 1px rgb(150, 150, 150);
text-shadow: -2px 0px 2px rgb(150, 150, 150);
font-size: 30px; /* Optional. Just for demo purposes. */
}
<p>
CUSTOM FRAMING from $99
</p>

You can use this and you're done...