0

I'm looking for something that only happens when 2 classes are present.

Eg:

.positive{
  color:#46a546;
}
.positive:after{
  content: "\25b2";
}
.negative{
    color:#F00;
}

.arrow:after{
  content: "\25bc";
}

<span class="positive"> hi </span>
<span class="positiveArrow"> hi </span> 
<span class="negativeArrow"> hi </span> //what i have

<span class="positive arrow"> hi </span>
<span class="negative arrow"> hi </span> // what i want
Alex
  • 5,674
  • 7
  • 42
  • 65

1 Answers1

3

CSS:

.negative.arrow {
    /* Apply your CSS rules here */
}

.positive.arrow {
    /* Apply your CSS rules here */
}
Devin Burke
  • 13,642
  • 12
  • 55
  • 82