6

I saw add a hover effect over an image (better practices) CSS just now and thought to myself "This seems familiar, I'm fairly sure I answered something like this in the past". Sure enough, a couple months ago, I answered Display an image while hover on a text.

I would use the same method detailed in my old answer to answer the new one (obviously changing the example a bit to be more relevant), but the questions are not truly duplicate and I can see how someone new to CSS/HTML would be confused if we just presented the old answer with no explanation.

Hence my question. Basically, should duplicates be determined by sameness of question or answer?

Postscript: To prevent an XY problem, is there a different, better, way of handling this then the binary options my question implies?

4
  • 1
    You can flag to close that first question as "too broad" or "primarily opinion based". "Best practices" questions are frequently couched in terms of "what's the best way to do this" which will always be an opinion. This one seems to be asking for any/all ways of doing it, which invites a ton of crappy answers (as are the two already received). Commented Apr 17, 2017 at 15:12
  • 3
    If it already has an answer in a different question, even if the original question is different, I think that the duplicate flag does apply. If there are multiple answers in the duplicate target and only one of them is pertinent, or a slight clarification would help, you can do that in the comments.
    – yivi
    Commented Apr 17, 2017 at 15:43
  • 3
    The term 'exact duplicate' is misleading and over-reaching. If the base problem is covered by another question (which has been answered adequately with positive feedback) then the OP of the duplicate should be able to read into the question and answer that their post was marked as a duplicate of. Of course there are really no true exact duplicates unless someone copied and pasted one question into a new question; it is the underlying problem that has been asked and answered in another post.
    – user4039065
    Commented Apr 17, 2017 at 15:53
  • 1
    it depends.... this kind of thing should be decided on a case-by-case basis. for example, i have no problem dupe voting any question that revolves around trying to use an asynchronous function as if it were synchronous of the returning from an asynchronous function cannonical, regardless of whether it's client-side or server-side, uses jquery or doesnt, etc.
    – Kevin B
    Commented Apr 17, 2017 at 20:06

0

Browse other questions tagged .