I want to create a div with a style that clips all children's bounding boxes to a certain region(and simply cropping out anything not in the bounding box). In my case, a child is using the background-position CSS property to position itself(and I want to clip this element). I've tried doing the following:
Setting the
widthandheightproperties of thedivto the bounding box, and settingoverflowtohidden.Setting the
clipproperty of thediv
Neither has worked. Any ideas on alternate approaches?