Css Text Border Line Code Example


Example 1: html font white text with black border


h1 {
color: yellow;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
<h1>Hello World</h1>

Example 2: css text color border


h1 {
text-shadow: 1px 1px #ffffff;
}

Example 3: css text border


h1 {
color: white;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}

Example 4: how to make a text with a border in css


h1{
width:30px;
margin-top:-10px;
margin-left:5px;
background:white;
}

/* Change the values to achieve what design you want */

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