I am currently using the following CSS styling for a list of li items.
border: 1px solid black;
border-radius:10px;
box-shadow: 8px 8px 4px #666;
-o-box-shadow: 10px 10px 5px #888;
-icab-box-shadow: 10px 10px 5px #888;
-khtml-box-shadow: 10px 10px 5px #888;
-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
box-shadow: 10px 10px 5px #888;
My goal is to create spacing between the elements in order to prevent the drop shadow from overlapping the next item.
The challenge I am facing is that the shadow and rounded corners need to be applied directly to the li element, rather than moving them to a child div inside the li for spacing purposes.
This constraint exists because I use Ajax to change the background color of the li elements, and if I place the shadow on a child element, the background color will extend beyond the box where the shadow is not present, resulting in an undesired effect.