Background color for one line of text

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
 
D

David Berry

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top