<html> <style> #boxShadow { height: 210px; width: 290px; box-shadow: 0px 0px 2px graytext inset; } #leftCover { width: 30px; height: 300px; background-color: white; position: absolute; left: 0px; top: 0px; } #rightCover { width: 20px; height: 300px; background-color: white; position: absolute; top: 0px; left: 280px; } </style> <body> <div id="boxShadow">test</div> <div id="leftCover"></div> <div id="rightCover"></div> </body>