| It took two seconds to find an example in my stackoverflow browser history: [0] > Question: Hide Show content-list with only CSS, no javascript used > Comment: Behavior is supposed to only exist in the realm of JavaScript. But my favorite example is the following, which I sacrificed a couple of minutes looking for because the exchange was so instructive: [1] > Question: How can I replace text with CSS? > Comment 1: To be honest it might be best to use javascript for this. > Comment 2: The question is how to do it with CSS. I am using a CMS that only allows me to change the CSS, which is why I arrived at this page while googling for the answer, and not a different one. That is why we answer the question that was asked instead of asking why the asker's situation isn't different. The thing people forget is that the question is not just about the person asking it, but about people coming across the question e.g. through Google who have to waste their time sifting through idiotic non-answers. For better or worse, SO tends to be ranked highly on Google for development-related queries and I've come to subconsciously ignore it because of its uselessness, in general. [0]: https://stackoverflow.com/questions/17731457/hide-show-conte... [1]: https://stackoverflow.com/questions/7896402/how-can-i-replac... |
Then there is a single comment (not an answer) which says "you are not supposed to do that", which have received a single upvote.
You say "people won't bother", but in reality, 12 people have bothered and provided detailed solutions with code. What more could you want?
I don't really see the major problem here.
The second question has 23 answers, the top one having 186 upvotes. And then there is a single comment (not an answer), saying JS is more appropriate for this, and a reply from the OP explaining why it needs to be pure CSS.
Comments are for asking questions, request clarifications and providing information which does not constitute a regular answer. This seems to work exactly as intended. Several answers make it clear that the CSS solution is more fragile and worse supported than a JS solution, so I think it is pretty relevant to ask the OP (absent any information either way) if they couldn't use JS instead.
I really have a hard time seeing the problem here?