Offtopic: Need help with HTML Table Formatting
- From: Sam Larson <sam212@xxxxxxxxx>
- Date: Sat, 28 Apr 2007 23:46:16 -0600
I thought this would be simple, NOT!
All I want to do is color the background of a word that is within a paragraph using HTML. So it could be say white text on a red background.
As an example, I'd like to highlight the words "background" in the previous paragraph. Simple, right? I'm displaying this HTML text in a Delphi THTMLViewer component so I don't need or want CSS.
The only way I can do it is if I insert a table into the paragraph text and use bgcolor="red" for the table (which has only that one word). Ok so this works, but now the table is positioned below the previous word (on a new line). My question is, how do I get the table to be on the same line as the previous word, because I need to highlight several words in a paragraph and the paragraph can't be broken onto a new line everytime it encounters a highlighted word. The highlighted word must run together with the rest of the paragraph.
I can't seem to get around this problem. Can anyone offer some insight? (or how about a shot of whiskey right about now?)
TIA
Sam
.
- Follow-Ups:
- Re: Offtopic: Need help with HTML Table Formatting
- From: Matt Harward
- Re: Offtopic: Need help with HTML Table Formatting
- Prev by Date: Re: Statistical library recommendation
- Next by Date: Re: Offtopic: Need help with HTML Table Formatting
- Previous by thread: Best option for writing to MS Word
- Next by thread: Re: Offtopic: Need help with HTML Table Formatting
- Index(es):
Relevant Pages
|