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.

class issue

422422 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

  • ToddTodd 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

  • ToddTodd 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.

  • Learn something new everyday, thankyou.

    There was an error rendering this rich post.

Sign In or Register to comment.