I came out with a pure CSS solution for this question. My old answer is accepted and upvoted but it uses jQuery as a solution.
The new answer will definitely invalidate the old one as it is much better than it. Therefore, I am uncertain whether I should...
- Update existing answer
- Overwrite existing answer
- Add new answer and keep old one
- Add new answer and delete old one
If you happen to encounter such case, what would you do?