How To Outline Text Css Code Example


Example 1: css text stroke


.TEXT:hover{
-webkit-text-stroke-width: 1px; /* 1px Stroke */
-webkit-text-stroke-color: #ffffff; /* White Color */
transition: 1s /* Displays in 1 Second */
}

Example 2: css text outline


/* You have 2 options
The first is experimental */


/* text-stroke */
#example {
font-size: 1em;
-webkit-text-stroke: 1px #000000;
}

/* Use 4 shadows
Probably best to use this until the above is standardised */

#example {
font-size: 1em;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

Example 3: text border css


h1 {
-webkit-text-stroke: 1px black;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable