powylv

text outlines

Dec 22nd, 2022 (edited)
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <!--NOTE: -webkit-text-stroke overlap on cursive fonts. replace sans-serif with cursive and see for yourself.---->
  2.  
  3. <style>
  4. * {
  5. font: 2rem sans-serif;
  6. font-weight: bold;
  7. color: #fff;
  8. }
  9.  
  10. /*****SINGLE OUTLINE******/
  11.  
  12. .style1 {
  13. -webkit-text-stroke: 1px #000;
  14. }
  15.  
  16. .style2 {
  17. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
  18. }
  19.  
  20. .style3 {
  21. filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black) drop-shadow(0 -1px 0 black) drop-shadow(1px 0 black);
  22. }
  23.  
  24.  
  25. /*****MULTIPLE OUTLINES******/
  26.  
  27. .style4 {
  28. filter: drop-shadow(1px 1px 0 #EDB5C2) drop-shadow(-1px 1px 0 #EDB5C2) drop-shadow(0 -1px 0 #EDB5C2) drop-shadow(1px 0 #EDB5C2) drop-shadow( 0 3px white) drop-shadow( 3px 0 white) drop-shadow( 0 -3px white) drop-shadow( -3px 0 white) drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black) drop-shadow(0 -1px 0 black) drop-shadow(1px 0 black);
  29. }
  30.  
  31. .style5 {
  32. -webkit-text-stroke: 1px #000;
  33. text-shadow: -2px -2px 0 pink, 2px -2px 0 pink, -2px 2px 0 pink, 2px 2px 0 pink;
  34. filter: drop-shadow(0px 1px #000) drop-shadow(0 -1px #000) drop-shadow(1px 0 #000) drop-shadow(-1px 0 #000);
  35. }
  36. </style>
  37.  
  38. <div class="style1">lorem ipsum</div>
  39. <div class="style2">lorem ipsum</div>
  40. <div class="style3">lorem ipsum</div>
  41. <div class="style4">lorem ipsum</div>
  42. <div class="style5">lorem ipsum</div>
Advertisement
Add Comment
Please, Sign In to add comment