-5

How would I achieve this look without images/paths?

I need text with a thick border, and a shadow that won’t show through transparent text.

I have already tried normal text-shadow, but it didn’t work the way I needed.

I tried using an SVG, but it didn’t provide the flexibility I needed, and same for images.

1 Answers1

-1

* {
    box-sizing: border-box;
    font-family: inherit;
}

html {
    font-size: 62.25%;
}

body {
    font-family: sans-serif;
    font-size: 1.6rem;
    background: linear-gradient(to right, rgb(0, 128, 111), rgb(199, 189, 57));
}

h1 {
    background: transparent;
    color: transparent;
  font-family: sans-serif;
  font-size: 50px;
  font-weight: bold;
  text-shadow: 3px 3px 0 rgb(54, 54, 54);
  
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: rgb(0, 0, 0);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
 
}
<h1>Hello World</h1>
Gaurav Bhardwaj
  • 328
  • 2
  • 8