Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

CSS Class Tag

edited April 2007 in Vanilla 1.0 Help
I have a CSS class called LinkDesc which I can apply to a paragraph like so...
<p class="LinkDesc">The guff goes here</p>
The problem is that I want to apply it inline to say 4 words so I hacked my own tag called <xx>...
<xx class="LinkDesc">The guff goes here</xx>
Now I know I can use <span> but <xx> works on all the browsers I tested it with so should I be satisfied with it or get all semantical about it?

Posted: Monday, 16 April 2007 at 4:05PM

Comments

  • Why not just use span or div without box display?
  • StashStash
    edited April 2007
    What Mr Do said. If you want to do something like the <xx>, that's what BBCode is for, but it would still translate it into a div or a span...

    The real question you need to ask is this: "Why NOT use semantic markup?"
  • I had a character limit to stay within and <x> is less characters than <span> especially when used 14 times.
    The limit is overcome by using a variable so <span> now works.
    Thanks for the sounding-board support.

    Posted: Monday, 16 April 2007 at 8:11PM

This discussion has been closed.