1

A JS library I am using is creating a new class every time I switch the page.

Something like:

.marquee0 .marquee1 .marquee2 .marquee3 .marquee4 .marquee5 .marquee6 ...

Is there a way I can minify this in my css for an infinite amount of numbers? At the moment I use this:

.marquee0, .marquee1, .marquee2, .marquee3, .marquee4, .marquee5, .marquee6 {

}

Thank you in advance!!

knshxlr
  • 23
  • 3

1 Answers1

3

Yes there is a way! The CSS contains selector

div[class*="marquee"] {
  background: #ffff00;
}

will give all those a background color.

Martijn Vissers
  • 712
  • 5
  • 29