I have this CSS triangle:
http://codepen.io/orweinberger/pen/myEoVa
CODE:
*, *:before, *:after { box-sizing: border-box; } .triangle { position:absolute; bottom:0; right:0; display: inline-block; vertical-align: middle; } .triangle-0 { width: 200px; height: 200px; border-bottom: solid 100px rgb(85,85,85); border-right: solid 100px rgb(85,85,85); border-left: solid 100px transparent; border-top: solid 100px transparent; } .text { color:#fff; position:absolute; bottom:0; right:0; }
Is it possible to add a shadow to one of the edges like this?
http://codepen.io/orweinberger/pen/ByzbKX
source share