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”.