[thelist] replace <b> with <strong> (why dont use b tag)]

Adam Fahy afahy at earthlink.net
Wed Jul 31 14:46:01 CDT 2002


Tom Dell'Aringa wrote:

> Let me chime in since I just used span in a new layout I'm working
> on. It has to do with a design element. I have a section title that
> is followed by a little text decoration (:.).
>
> The title is one color, I want the text decoration to be orange.
> Again, its a presentation/design thing, not semantic in any way. How
> could I accomplish this? Make a image? I suppose, but lame, it would
> have to be aligned and all that. WHy bother.
>
> I did this:
>
> <span class="orangeHighlight">:.</span>
>
> This has no semantic or structural meaning, so some people will frown
> on this I'll bet. But, I felt it was a justified use of it, and
> accomplished my goal.

You could try something along the lines of:

h1
{
      color: red;
}
h1:after
{
      color: orange;
      content: ":."
}

[NOTE: not supported by IE]


-Adam




More information about the thelist mailing list