How to remove only underline from a:before?

I have a set of styled links using the `:before` to apply an arrow. It looks good in all browser, but when I apply the underline to the link, I don't want to have underline on the `:before` part (the arrow). See jsfiddle for example: Is it possible to remove this? The test-style I sat with `#test p a:hover:before` does get applied (according to Firebug), but the underline is still there. Any way to avoid this? #test { color: #B2B2B2; } #test p a { color: #B2B2B2; text-decoration: none; } #test p a:hover { text-decoration: underline; } #test p a:before { color: #B2B2B2; content: "â–º "; text-decoration: none; } #test p a:hover:before { text-decoration: none; }
Well, you obviously want a list... Use an UL element instead of the DIV/P combination. With lists you get the bullets (or discs, ... ) for free...

以上就是How to remove only underline from a:before?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准