I have a DIV element with a background-image, and I want it to overflow outside the dimensions of the DIV (it now cuts off the image because the image is bigger than the DIV).
Is this possible? overflow:visible
doesn't work!
You can do it in alternative way:
#box {
margin:-50px 0 0;
padding:50px 0 0 0;
background:url(/images/image.png) no-repeat;
}
Put the background on a larger <div>
that contains your <div>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With