Below is the code I was using to do a Text Stroke outline of 1px. But how do I get the outline thicker? If I just replace all "1px" with "5px", the result looks crazy.
HTML
<div class="element">
Hello!
</div>
CSS
.element {
color:white;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
You can consider text-stroke
but you need to pay attention to browser support
.element {
color: white;
font-size:50px;
-webkit-text-stroke: 5px #000;
}
<div class="element">
Hello!
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With