css text outline using text shadow code example
Example 1: text border css
h1 {
-webkit-text-stroke: 1px black;
}
Example 2: css text black outline
/* Written for h4 tag, modify as required */
.black-outline{
-webkit-text-stroke: 1.11px black; /* stroke width and color */
color: rgb(255, 255, 255);
-webkit-font-smoothing: antialiased;
font-weight: bold;
}