This will hide all ids that have the word ‘themessage’ in them.
The normal way below is great but id you have 100 of them, this is a waste when you can explain this in a shorter way.
1 2 3 4 5 |
#themessage1, #themessage2, #themessage3 { display: none; } |
Like this…..
1 2 3 4 5 |
*[id^='themessage']{ display: none; } |