Answers for "how do you put a background on text in html?"

-2

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 do you put a background on text in html?"

Browse Popular Code Answers by Language