How do you get a triangle hover effect on a pure css navbar?

前端 未结 3 2047
孤独总比滥情好
孤独总比滥情好 2020-12-10 09:06

I would like to have a little triangle underneath the the text that points up when the user hovers over the different tabs. Here is a bit of code I\'m working with.

3条回答
  •  眼角桃花
    2020-12-10 09:49

    Here is a fiddle that uses an background-image that will display over the hovered menu item. It not pretty but further css should help with that.

    UPDATE

    Sorry I must have misread that. Here is a working fiddle with a smaller arrow pointing in the proper direction.

提交回复
热议问题