Y
Y
Yaroslav2015-10-26 19:06:22
css
Yaroslav, 2015-10-26 19:06:22

Selecting a non-adjacent element with :hover. What are the options?

There is a 4x4 table (+ a column on the left and a row on top for the delete buttons). It is necessary that when the mouse pointer is inside the table, delete buttons appear opposite the current row and current column. CSS only.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Gromov, 2015-10-26
@gonchaar

CSS alone will not work vertically, it does not allow jumping to another branch of the dom tree inside the selector, and this is exactly what is meant in this task. Actually, you are already using JS to remove rows / columns, an extra block of code will not ruin your life.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question