1

I try stroke and get no result so please suggest me css for this problem. I also try shadow to text:

how to get this kind of stroke in css

body {
  color: #000;
  -webkit-text-fill-color: #030303;
  -webkit-text-stroke-width: 0px;
  -webkit-text-stroke-color: #fbf7f7;
  text-shadow: 8px -2px 0 #fff4f4,
  -4px -6px 0 #fff,
  -6px -5px 0 #fff,
  -8px 5px 0 #fffbfb;
}

/* added by Editor for demonstration purpose */
body {
  background-color: lightgray;
}
Lorem Ipsum
tacoshy
  • 10,642
  • 5
  • 17
  • 34
kuldeep
  • 11
  • 4
  • Does this answer your question? [CSS Font Border?](https://stackoverflow.com/questions/2570972/css-font-border) – tacoshy Jul 17 '23 at 07:07

1 Answers1

2

You can use text-stroke:

body{
  background:gray;
}
p{
  font-size:38px;
  font-weight:700;
  -webkit-text-stroke: 2px white;
} 
<p>Text with shadow</p>
Maziar Rumiani
  • 641
  • 1
  • 4
  • 11