Home › Forums › CSS › [Solved] keeping z-index image locked with "container"? › Re: [Solved] keeping z-index image locked with “container”?
March 30, 2010 at 8:17 am
#73169
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.