css - Box-shadow on 3 of four sides of div -
i have 2 divs sit on top of each other, , want 1 shadow surrounds them both. can't wrap 2 divs in div.
how can have shadows on top, left, , right side on top div, , shadows on bottom, left, , right side of bottom div?
right have following -
#topdiv, #bottomdiv { box-shadow: 2px 2px 10px 5px #909090; -webkit-box-shadow: 2px 2px 10px 5px #909090; -moz-box-shadow: 2px 2px 10px 5px #909090; }
you can't have render on 3 sides, it's big blurry block behind element itself. best way i've found fake moving further down y-axis , tweaking values until looks good.
you experiment ::before , ::after , try making 2/3-height pseudo-element carries box-shadow, again, it's hack, , it'll require tweaking good.
Comments
Post a Comment