Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

class issue

422422 Developer MVP
edited December 2011 in Vanilla 2.0 - 2.8

I am just doing a new theme, and noticed again ( meant to ask this the other week )

You use class highlight.

But in its declaration, you have
<li class=" Highlight">

You have space before the class name, is this allowed ? Is it a Mistake ?
Sureley it should be
<li class="Highlight">

There was an error rendering this rich post.

Tagged:

Best Answer

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓

    Spaces are totally allowed. You separate multiple classes with spaces after all.

    Usually you see odd spaces in class names because there is some other class that may be there depending on the data and we don't want to put an if statement just to determine whether or not there should be a space when there's only one class.

Answers

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓

    Spaces are totally allowed. You separate multiple classes with spaces after all.

    Usually you see odd spaces in class names because there is some other class that may be there depending on the data and we don't want to put an if statement just to determine whether or not there should be a space when there's only one class.

  • Options
    422422 Developer MVP

    Learn something new everyday, thankyou.

    There was an error rendering this rich post.

Sign In or Register to comment.