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"?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28533
    threedash
    Member

    Hi there,

    So I came across this problem I haven’t done before and was curious to know if it’s possible.

    threedash.com/TOPSHELF/ has a logo that sits on top of the page, on the Z index. When I go to move the browser around, i noticed that the position:absolute keeps it stationary.

    Is there a work around way for this?

    #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.

    #73187
    threedash
    Member

    ty. fixed!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.