You can use another element inside .corner , see example below:
<style> .corner, .corner_inner { width: 22px; height: 22px; border-right: 1px solid #44AAAB; background: #f2f2f2; position: absolute; right: 4px; bottom: 4px; transform: rotate(45deg); z-index: 1; } .trans-bg .corner {background: transparent} .trans-bg .corner_inner { width: 11px; height: 11px; right: -1px; bottom: 0; background: rgba(0,0,0,0.5); } </style> <div class="sidebar-widget trans-bg"> <div class="corner"> <div class="corner_inner"></div> </div> ... </div>
http://jsfiddle.net/6Lyph6zj/3/
I edited your styles, some properties are overwritten and can be deleted. I mean, you can better understand what changes I made.
source share