If you need to allow for changing the width, you can just use two outerMainWrappers. Give outerMainWrapper1 a padding-left and put the left shadow there, and outerMainWrapper2 a padding-right and the right shadow.