35

I have a question about my Stack Overflow post: Equal height image grid that fills up width of container

I'm relatively new to Stack Overflow and yesterday I posted an answer to a question. Two hours later that answer was deleted with some explanations in comments and I don't really agree with those comments, but I might be wrong. I would like to better understand this deletion if it's possible.

The first comment on my answer is: "...you should not hijack the question and post your own question as an answer". I don't understand that because I didn't ask any question on my answer. What I did is paraphrase the question to make the goals clear.

What I paraphrased:

  • 1 or x rows with multiple images : 1 row with 3 images inside. 1 row with 2 images inside.
  • the size of all images is not known in advance : All the images don't have consistent width and height
  • equal height of each images in a row : Equal height image grid
  • all the images must have the same width as the container: Equal height image grid that fills up width of container
  • And the images have to maintain their cropping and aspect-ratio : I need the images to maintain their cropping and aspect-ratio

The second comment is: "This does not really answer the question. ..." I posted a CodePen and the result seems to answer the original question. "... If you have a different question, you can ask it by clicking Ask Question..."

For me, it's not a different question, but I'm really open to discussion, and maybe I missed something there.

An image of the question and answer for <10k

36
  • 42
    The first part of the answer reads like you are trying to ask a new question. I think this has mislead people in to thinking this was not an answer.
    – greg-449
    Commented Nov 25, 2021 at 11:09
  • 21
    The text at the top of your answer certainly makes it read like a question, not an answer. Saying "you had the same problem" and you "didn't find any solution" are all phrases that "me too" answers tend to use (A me too answer is where someone has used an answer to state they are having the same problem and don't provide an actual answer). If it is an answer, it appears to have easily mislead at least 3 people; I personally suspect I would have been too. I would suggest rewording the top to not use such language, which is noise, and then hopefully it'll get some undelete votes.
    – Thom A
    Commented Nov 25, 2021 at 11:12
  • 12
    This is a fine answer and shouldn't have been deleted. Reviewers are supposed to read the whole answer, not a part of it.
    – user2285236
    Commented Nov 25, 2021 at 11:20
  • 21
    @ayhan I really wouldn't blame the reviewers for this. This is the original post before edits stackoverflow.com/revisions/70098714/1. Then the answer says "I'm trying to achieve the same thing" ... "Until now, I didn't find any solution with CSS. Here's a solution using jQuery :" And the question is about CSS, not jQuery. I would have deleted this too.
    – Lundin
    Commented Nov 25, 2021 at 11:51
  • 5
    @Lundin the question has a JavaScript tag and the OP explicitly says a JavaScript solution is OK so I don't see why a JavaScript solution would be a problem.
    – user2285236
    Commented Nov 25, 2021 at 12:03
  • 6
    @ayhan because jQuery is not JavaScript. Commented Nov 25, 2021 at 13:06
  • 21
    @FélixAdriyelGagnon-Grenier Better tell the people who maintain jQuery that so they stop writing jQuery in JavaScript ;-P. Commented Nov 25, 2021 at 13:49
  • 5
    @Larnu Yes the answer is fine now but it wasn't in revision 1. The delete reviews were correct, in my opinion.
    – Lundin
    Commented Nov 25, 2021 at 14:04
  • 7
    The position that some merely deceiving meta-commentary in an answer would merit the deletion of the entire answer has a strong "throwing the baby with the bathwater" sentiment.
    – E_net4
    Commented Nov 25, 2021 at 14:13
  • 4
    I disagree, @Lundin, the answer was an answer, but it was worded poorly so that it could easily be interpreted as a "me too" answer, as I explain in my answer below.
    – Thom A
    Commented Nov 25, 2021 at 14:20
  • 8
    An answer can't be off-topic, @Lundin ; questions can be off topic, but answers not. Answering in the wrong dialect/language is cause for downvoting, not deletion; it is still an answer just not a helpful one.
    – Thom A
    Commented Nov 25, 2021 at 14:31
  • 5
    @Larnu Umm that doesn't make any sense. Questions can't be off-topic since they define the topic. Answers can obviously be off-topic. If you ask a Javascript question and I give a detailed answer about the food preferences of fluffy ponies, my answer is blatantly off-topic and should be deleted.
    – Lundin
    Commented Nov 25, 2021 at 14:33
  • 11
    Folks, let's drop the "jQuery is not JavaScript" reasoning here. jQuery is a JavaScript library for DOM manipulation. Many people will not want to include it, and many should even not include it at all, but that alone does not mean its use in an answer does not constitute an answer. This is not a new concept.
    – E_net4
    Commented Nov 25, 2021 at 14:41
  • 11
    "Questions can't be off-topic" @Lundin, what? Have you never opened the Close dialogue window? There's a multiple off-topic options for questions. "About general computing hardware and software" and "Seeking recommendations for books, tools, software libraries, and more" are 2 examples of off-topic questions.
    – Thom A
    Commented Nov 25, 2021 at 14:42
  • 4
    @Larnu "answering in the wrong dialect/language is cause for downvoting, not deletion" It is cause for both. If you think a post is downvote-worthy, that implies it is not useful. Should we not delete content that is not useful?
    – TylerH
    Commented Nov 26, 2021 at 4:49

2 Answers 2

54

Expanding on my comment, and also @greg-449's, the problem here appears to be a misunderstanding; that your answer isn't an answer but a question.

I suspect the reason for this, as mentioned in the comments, is the language you use in your answer. To start with:

I'm trying to achieve the same thing :

This is a classic start to a "me too" answer. This is where someone with the same/similar problem has found the question during a search, and posted an answer which effectively says "I'm having the same problem too, but I can't solve it. {Optionally here are my attempts that don't work.}"

You then go on to list your requirements. Another indicator that an answer is actually a me too answer. Your requirements aren't relevant to the OP's; if you are trying to fulfil different (although they might be similar) requirements then you should be posting your own question (which you can self answer).

You then go on to state:

Until now, I didn't find any solution with CSS

This suggests you don't have a solution so why are you posting an answer?

Intentionally skipping over the statement about using jQuery for the moment

We finally then have a large block of code with no explanation of what it does in text (though there are comments, well done!). This effectively was "the final nail in the coffin", and it made the answer appear that the code block was your non-working code where you were having the same problem.


TL;DR: The majority of the text in your answer is noise; it's not relevant to the answer (it doesn't matter if you had the same problem to the OP or anyone else). The noise, due to the wording, made it look like the answer was a me too answer, which mislead at least 3 people who voted to delete the answer via review because they thought it was a me too answer.


On the jQuery thing, though CSS isn't my expertise, the OP doesn’t mention jQuery in their question at all. Generally, giving an answer in a completely different language to what the OP is asking about is not well received unless the OP explicitly states they are open to such solutions, or you confirm in the comments. I note that they say that they are open to using JavaScript, but I don't know if jQuery and JavaScript are similar, as it's way outside my area of expertise.

5
  • 7
    Thanks a lot for your answer. I've deleted the noise. The OP is indeed not mentioning jQuery. Since it's a JavaScript library, I found it useful to post the code, but it can be questionable, yes. I also keep your recommendation of writing more explanation about what the code does. Commented Nov 25, 2021 at 11:44
  • 8
    @ThomasBillaud Yeah, posting jquery answers to javascript questions is sometimes done, and also sometimes yields upvotes, but as a somewhat experienced javascript user, I must say that when looking for javascript problems, I dislike seeing jquery answers, because while it looks like "bah you just have to add jquery to your scripts" it's a whole dependency I might not want to add. There are a lot of javascript libraries out there, adding one answer for each one of them might not be worthwhile. Commented Nov 25, 2021 at 13:02
  • 3
    @FélixAdriyelGagnon-Grenier I completely agree with you. Also, a lot of users are now moving away from jquery into other libraries/frameworks like react/vue/angular... 10 years ago jquery was a hammer that was used by almost anyone to solve almost any problem, today frontend problems often do not look at all like nails at all...
    – GACy20
    Commented Nov 25, 2021 at 13:16
  • 2
    (For all: There is an old meme about jQuery.) Commented Nov 26, 2021 at 1:07
  • 9
    I was one of the deletion voters, and this explanation is spot-on. Apologies to @ThomasBillaud. I should have caught the "here's a solution" part and acted accordingly (edit/comment), but Larnu perfectly encapsulates why I mistook it for a non-answer.
    – tdy
    Commented Nov 26, 2021 at 10:26
12

Although your answer is not directly a solution to the proposed issue, it provides an alternative which might be useful for some, and it is, for all intents and purposes, a valid attempt at answering the question. The way I see it, the answer should not have been deleted.

What most likely triggered the deletion was the choice of words and structure when presenting it: "I'm trying to achieve the same thing", "Until now, I didn't find any solution", and a list of requirements makes it sound like you wanted to ask a new, related question. But then it is followed with an alternative solution using another set of web technologies to fulfill the intended goal. This makes it an answer and should be treated as such. Whether the answer has room for improvement is another matter involving different tools: upvoting, downvoting, and editing.

It might also be the case that the voters were following a strict guideline in which answers using JavaScript or jQuery to a pure CSS question would not be appropriate answers. However, none of the comments underneath suggested that this was the case, one cannot read minds, and I doubt that this zeal would be very fruitful anyway.

Final note: writing an assertive answer with the essential portions of the answer while keeping meta-commentary away such as "I also had this problem" would indeed improve it and prevent these things from happening.

See also:

2
  • 1
    I don't know about "valid attempt to answer the question". If I were to choose any other JS library, would it still be valid? If I were to use a c++ answer using Boost if Boost isn't mentioned, would it be relevant? Why not, considering jQuery counts as an answer attempt? Commented Nov 25, 2021 at 13:03
  • 5
    @FélixAdriyelGagnon-Grenier That sounds like another great example for when not to delete an answer. It is unreasonable to exclude a solution using an external library our resource just because it is not mentioned in the question. And Boost in particular is not more than an aggregation of libraries. It is even less of a borderline as the situation reported here.
    – E_net4
    Commented Nov 25, 2021 at 14:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .