Properly setting Class selectors in CSS

Indeed. But you are unable to distinguish good advice from bad, or good code from bad, even when it has been explained to you by somebody who is an authority on the subject.

Yesterday, @PaulOB gave you a simple, clear solution to a coding problem. But rather than using what he advised as best practice, you chose to do it a different way - and promptly ran into difficulty when trying to use your code with JS.

Paul is a recognised authority on CSS. He wrote the old SitePoint reference guide and has co-authored at least one book. He has created CSS techniques now used everywhere. It is a privilege to have him on these forums and to learn from his skill and expertise, yet your approach dismisses his knowledge as mere “opinion”. That’s insulting.

To use your own analogy, you would prefer to base your choice of car on your neighbour’s opinion, rather than that of a qualified motor mechanic, because your neighbour’s recommendation is a nicer colour.

3 Likes