Forums

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

Home Forums CSS [Solved] keeping z-index image locked with "container"? Re: [Solved] keeping z-index image locked with “container”?

#73169
ninique
Member

In your case, you’d simply put your logo inside the header div, and make the header div’s position relative.Then adjust the position in the logo. That way the logo uses the origin of the header div, which is centered on the page instead of the origin of the page itself, which is at the top left corner. When an element that has a position of absolute or relative, the absolutely positioned elements that are inside it uses its origin.