Offtopic: Need help with HTML Table Formatting



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
.



Relevant Pages

  • Re: Offtopic: Need help with HTML Table Formatting
    ... Probably the easiest is to use the span tag with inline styles (contrary to what you think, you both need and want css if you want to make this easy). ... All I want to do is color the background of a word that is within a paragraph using HTML. ... I'm displaying this HTML text in a Delphi THTMLViewer component so I don't need or want CSS. ... 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. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Offtopic: Need help with HTML Table Formatting
    ... paragraph using HTML. ... Delphi THTMLViewer component so I don't need or want CSS. ... encounters a highlighted word. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: creating a styles for text
    ... more information on character vs paragraph ... Mac, titled "Bend Word to Your Will", which are available as a free download ... A Paragraph style does affect the entire paragraph. ... the highlighted word. ...
    (microsoft.public.mac.office.word)
  • Re: creating a styles for text
    ... There are five kinds of style: Paragraph, Character, Table, List and Theme. ... Life is too short to spend it in doubt :-) ... the highlighted word. ...
    (microsoft.public.mac.office.word)
  • Re: Page layout for tubie pages on the net Re: Deep Space 845 55W SET amps.
    ... the right hand margin is all chopped up. ... margin with no more raggedness than necessary to accommodate the varying word ... he should specify a font and a page width in his HTML code. ... Your computer enters an end of paragraph mark. ...
    (rec.audio.tubes)