Forum Moderators: not2easy

Message Too Old, No Replies

Apply style to specific character throughout document?

want to differentiate a character without the tag fuss

         

Don_Hoagie

3:09 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



Here's a simple one folks... but please, no suggestions about using <li> or <td> tags to differentiate information... i'm already considering it.

What I have is a page with a crapload of phrases written in paragraph form, separated by one of the web's favorite little psuedo-symbols, the "::" .

My question is, can CSS automatically give any "::" on a page a different color, without me having to wrap HTML tags around every "::"? I'd save a lot of code bloat if I could just write the "::" within the flow of the paragraph and have the CSS do the work.

And again, for those who might be confused about how this is laid out, it's something like this...

<p>
Phrase one :: Phrase two :: Phrase Two and a Half :: Phrase that Pays :: Phrase one :: Phrase two :: Phrase Two and a Half :: Phrase that Pays :: Phrase one :: Phrase two :: Phrase Two and a Half :: Phrase that Pays :: Phrase one :: Phrase two :: Phrase Two and a Half :: Phrase that Pays ::
</p>

jetboy

3:16 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



Er, no. Can't be done. At least not without heavy use of JavaScript to add the needed tags after the page has loaded.

Don_Hoagie

3:19 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



Fast, decisive, and negatory. That's how I likes my thread replies.

Thanks!