What is correct syntax for combining several page ID's

I’m not getting it right - what is the correct syntax for using the same style on an element in certain pages only: all have body id=page whatever

eg: I want to use the same h1 in div.box on certain pages only:

#page, #page2, #page3 .box h1 {color: #000;}

That is not working - what is the correct form?


You need to call the h1 on each of the ids:

#page .box h1, #page2 .box h1, #page3 .box h1 {color: #000;}

Oh I see! Thank you very much!!