A
A
arab7892015-11-06 12:58:14
css
arab789, 2015-11-06 12:58:14

Why does :after work for all a?

For the top menu, you need to make an underline when hovering over li. I do underlining through: after, but it works for all li at once, how to solve the problem?
Here is an example jsfiddle.net/bsj8wmga

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Michenus, 2015-11-06
@arab789

#menu ul li a { float: left; display:block; position: relative;}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question