Answers for "how to add a background to text in html"

0

how to add a background to text in html

.white_bg 
{
    background-color: #ffffff;
    padding: 3px; /*add this if you want a bit of space around the text*/
}

<span class="white_bg">Your text here</span>
Posted by: Guest on March-06-2021

Code answers related to "how to add a background to text in html"

Browse Popular Code Answers by Language