Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

  • 422 December 2011
  • Todd December 2011

class issue

422422 Developer MVP
edited December 2011 in Questions

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">

422 Real Estate Australia , now open Check it out

Tagged:

Best Answer

  • ToddTodd Chief Product Officer vanilla
    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

Sign In or Register to comment.