.blocked { position:relative; } .blocked:after { content: ''; position: absolute; left:0; right:0; top:0; bottom:0; z-index:1; background: transparent; }