Very Tricky CSS Question

B

Bill

Is it possible to define a text style so that, whenever the style is
applied, it ends the text with an image? I'm looking to do a set of section
headers where each 2 or 3 word line of text will end in a small image, kind
of like,

Here is the Header Text *

where * = a small image at the end of the line.

Thanks,

Bill.
 
M

Murray

Sure. Create the style with the image as a background image. Position it
top and right, like this -

..special { background-image:url(foo.jpg); background-position:top right; }

You will probably also need to declare a width and a height for the style so
that you get to see the whole image.
 
T

Trevor L.

This interested me, because I wondered: How do you put style on text ?

Is it <p class="..."> where ... is the style defined in a CSS?

What if you don't want a new para.?
Can you just put <style class="..."> before the text in question?
And do you put </style> after the text

--
Thanks,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
J

Jens Peter Karlsen[FP MVP]

No, for this you would use a span.
<span style=...>some text</span>
For an entire paragraph it would be
<p style=...>a paragraph of text</p>

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
Top