How to add CSS font border?

Spread the love

To add CSS font border, we add the text-stroke property.

For instance, we write

h1 {
  -webkit-text-stroke: 2px black;
  font-family: sans;
  color: yellow;

to set the -webkit-text-stroke property to the border style we want on h1 elements.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *