I am trying to style two elements that are positioned next to each other with one side touching. The issue I'm facing is that when adding shadows underneath, one shadow always overlaps the other element. Adjusting the z-index can help but it only determines which element's shadow will be on top.
It would be ideal if there was a way to apply a shadow to a group of elements so that the shadows render behind the entire group without any interference regardless of their vertical ordering in terms of z-index.
Is there a CSS3 solution to achieve this effect without using shadow images?