Hello! How can I hide a corner with css?
So it should be:
So it happened:
Link to the sandbox: https://jsfiddle.net/drtvader/Lxnsxhef/
<span class="b-file__icon">PDF</span> .b-file__icon { position: relative; top: 0; width: 37px; height: 45px; display: inline-block; background: rgba(68, 68, 68, 0.4); vertical-align: bottom; padding: 24px 0 0 0; text-align: center; font-size: 10px; } .b-file__icon:before { content: " "; position: absolute; top: 0; right: 0; width: 0; height: 0; border-top: 10px solid transparent; border-left: 10px solid transparent; } .b-file__icon:after { content: " "; position: absolute; top: 0; right: 0; width: 0; height: 0; border-bottom: 10px solid #969696; border-right: 10px solid transparent; } 
