Skip to main content
Replace "two" with "multiple", may be taken too literally by some

An element can take twomultiple classes:

.classOne { font-weight: bold; } .classTwo { font-famiy: verdana; } <div class="classOne classTwo"> <p>I'm bold and verdana.</p> </div> 

And that's about as close as you're going to get unfortunately. I'd love to see this feature, along with class-aliases someday.

An element can take two classes:

.classOne { font-weight: bold; } .classTwo { font-famiy: verdana; } <div class="classOne classTwo"> <p>I'm bold and verdana.</p> </div> 

And that's about as close as you're going to get unfortunately. I'd love to see this feature, along with class-aliases someday.

An element can take multiple classes:

.classOne { font-weight: bold; } .classTwo { font-famiy: verdana; } <div class="classOne classTwo"> <p>I'm bold and verdana.</p> </div> 

And that's about as close as you're going to get unfortunately. I'd love to see this feature, along with class-aliases someday.

Sampson
  • 268.5k
  • 76
  • 545
  • 568

An element can take two classes:

.classOne { font-weight: bold; } .classTwo { font-famiy: verdana; } <div class="classOne classTwo"> <p>I'm bold and verdana.</p> </div> 

And that's about as close as you're going to get unfortunately. I'd love to see this feature, along with class-aliases someday.

close