0

I have following css snipet:

 #div1 table, #div2 table, #div3 table  {
    color: white;
    font-family: monospace;
}

may i fold it into something like below?

 #(div1|div2|div3) table    {
    color: white;
    font-family: monospace;
}
swserg
  • 692
  • 1
  • 5
  • 18
  • @Paulie_D it is not duplicate and not related to linked question. please remove that link as it is not answering my question – swserg Dec 11 '15 at 01:16

1 Answers1

0

I found out how to do it, if someone interested, below the answer:

[id$='-tabl'] table {
    color: white;
    font-family: monospace;
}

in my case all DIV selectors have IDs ending on '-table', you can use regex "*^$" to match ID names. But if you have different names, i didn't find a way for OR operator inside brackets like [id='name1||name2'], so not sure its even possible.

swserg
  • 692
  • 1
  • 5
  • 18