Adding a border to CSS trailing using borders

I have this script: http://jsfiddle.net/GSA5R/2/

I use the border property to create a triangle effect. However, how can I give the triangle a white border? If it is already used for a triangle !?

+4
source share
1 answer

The only solution that comes to me is to place another white triangle behind the gray one. But you need extra markup because you cannot use :after:after :)

An example is here . I used <span> inside the <a> tag.

+2
source

Source: https://habr.com/ru/post/1394773/


All Articles