Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] How can I target 2 selector id's to work only on a specific page ? Reply To: [Solved] How can I target 2 selector id's to work only on a specific page ?

#184860
__
Participant

How would I write this …only work with the # symbol ( id selector) and not one id and one class selector.

Well, are you trying to select classes or IDs?

the following does not work how would i write this correctly

We can’t answer that without knowing what you are trying to do. The code you posted will select an element with the id “main”, if it is the child of an element with the id “post-6418”.

So, what are you trying to select? Perhaps it would be helpful to make an example on codepen?