Home › Forums › CSS › How to allow a div with a bg-image to go negative left? › Re: How to allow a div with a bg-image to go negative left?
Ok I ‘ve found a way. (But I’m open to any better solution )
I didn’t set the image as a background, I just inserted it with <img src… /> in my content div that has a smaller width. The image can overflow since it’s not set as background. I just had to center it like this:
left:-160px; /*+- half the difference between img, and content width*/
So now my content is below the image, I corrected it with a negative top, which value is the image height like this:
I can upload my solution if you are interested.