I need to set the font backgroundcolor via css but there are no tags assosiated with the font can i do that ?
also i have font in a td table, and want to set that fonts backcolor also but not affect the td
Printable View
I need to set the font backgroundcolor via css but there are no tags assosiated with the font can i do that ?
also i have font in a td table, and want to set that fonts backcolor also but not affect the td
I can't find a way to make it so that all text in the body has a certain background color, but you could just use the Paragraph tag and change the text and background color from there.
P {color: orange ; background-color: blue}
Wrap the text in a span and apply background to that.
HTML Code:<span class="highlighted">This text should appear with yellow background</span>
As the span tag is displayed inline it will only occupy the space containing the text and not expand its height or width to fit the containing element like a block element would.Code:.highlighted
{
background: yellow;
}
thanks guys, both suggestions are fine.