0

I am trying to draw a triangle in css which contain only borders. no background colors.

.arrow {
border-bottom: 10px solid transparent;
border-top: 10px solid transparent;
border-right: 20px solid #000;
height: 0;
width: 0px;
}

The above code gives me a triangle with #000 as background colors. i just want the triangle borders.

1 Answers1

1
.arrow:after {
 content: '\25c1';
 display: inline-block;
}
Patrick
  • 13,872
  • 5
  • 35
  • 53
  • will this have support across all browser? –  Dec 04 '13 at 04:42
  • It's not going to work on lynx or anything, but generated content works great on most browsers - http://caniuse.com/#feat=css-gencontent – Patrick Dec 04 '13 at 04:49