\r\r
\r
\r
body{background:#000} div{ width:100px; height:30px; background:#F00; border:#FF0 dashed 1px; border-radius:5px; Box-shadow:0px 1px 0px #f00,0px -1px 0px #f00,1px 0px 0px #f00,-1px 0px 0px #f00; }
\r
So to get the desired effect, note, the shadow should look in all 4 sides that would not spoil the figure.