I found this cool example of using the border-color transparent property to create an arrow.
I understand how borders are drawn and how an empty element with one boundary border can help achieve the effect of an arrow, but what makes me wander in this example is the use of transparency.
Take a look at this simple code:
<div id="daniel"></div>
CSS
#daniel{ border-color: rgba(111,111,111,0.2) transparent transparent; border-style: solid; border-width: 15px; position: absolute; }
With this code, I get an arrow pointing down. ( JSFIDDLE )
With just one transparent, I get the hourglass effect. ( JSFIDDLE ):
border-color: rgba(111,111,111,0.2) transparent;
What confuses me does not know what border-{side} transparent means in these shorthand properties.
Hope this makes sense.
Any help appreciated.
Thanks;)
daniel.tosaba
source share