Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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?

#79619
noahgelman
Participant

How about you try setting the div to the width of your content, and have that margin: o auto; and then set the image as the background to the body and position it top center. That way when the browser isn’t as wide as the image, it’ll still be centered in the middle.