how to add a background to text in html

Solutions on MaxInterview for how to add a background to text in html by the best coders in the world

showing results for - "how to add a background to text in html"
Monica
01 Sep 2018
1.white_bg 
2{
3    background-color: #ffffff;
4    padding: 3px; /*add this if you want a bit of space around the text*/
5}
6
7<span class="white_bg">Your text here</span>