Background color for one line of text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a web page with a white background and black text.

For various headers, I'd like to have the text apear white in a light blue
background. The blue background will be the width of the page and height of
the line. Do I have to create a box, or can I insert html code that will do
white text on a blue background, and then switch back?

Thanks
 
The easiest thing is to put the text in a table (or cell) and format the
background color of the cell to what you're looking for. Another way would
be to highlight the text and use the little highlighter tool to make a
background color. This is done wit CSS and would look like this in Code
View

<span style="background-color: #FFFF00">My Text</span>
 
Back
Top