Forums

Sidebar top: negative (3 posts)

  1. RobhJ
    Member
    Posted 3 months ago #

    I a theme that I have made for my website, Exploding Art, the sidebar ends up with a strange top: value.
    It seams that it has been reversed in some way. When I put -500px it goes towards the top of the site and when I put 500px it goes below the site. It seams that the pink line at the bottom is 0px. Not it's on top: -175px

    How do I change that?
    Because I want the sidebar to start from the top and go down and stay at a fixed position from the top and not follow the site down as more and more content gets added.

  2. Amy Hendrix (sabreuse)

    Posted 3 months ago #

    I'm not sure what tools you used to develop your theme, but the reason you're seeing this behavior is that in the current code, the sidebar is a child element of the footer (the one with the pink line), so the position is set relative to that.

    You need the sidebar to be contained within the middle div rather than the footer.

  3. RobhJ
    Member
    Posted 3 months ago #

    Thank you very much! That worked fine.

Reply

You must log in to post.

About this Topic