Forums

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

Home Forums CSS background not sizing right when website zooming in/out Re: background not sizing right when website zooming in/out

#96113
TheDoc
Member

The background isn’t actually working from the get-go. You are trying to position it with pixels, which means that it’s not going to be centered on any monitor that isn’t using a resolution that you are. Do this instead:

background-position: center 120px;

Also, IE is not going to like you using the multiple backgrounds thing. Since you don’t have anything on the HTML element, I’d put your dark layer on that instead.