Very Tricky CSS Question

  • Thread starter Thread starter Bill
  • Start date Start date
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.
 
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.
 
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
 
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.
 

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

Similar Threads

css page problems 2
problem with repeating css graphic 3
CSS 2
Hyperlinks NOT underlined in website using CSS 3
Applying CSS in Expression Web 3
CSS and images 1
CSS Problems 8
CSS question 8

Back
Top