Forums

[resolved] Moving a sidebar from right to left, but appears below content (3 posts)

  1. DavidBorrink
    Member
    Posted 1 year ago #

    I'm altering the default theme so that the sidebar goes on the left instead of the right, but it shows up below the two test posts in my content area, and in it's correct horizontal location.

    I have a 640px page width overall. My side bar has a width of 175, with a margin-left of 20. That's 195px total. My narrowcolumn (content) tag is set with a margin-left of 230, so that means I should have a 35px gap between my sidebar and content. So I don't see an overlap that should force my sidebar below the content area.

    If I move the get_sidebar instruction in the index.php file before the narrowcolumn instructions, the sidebar is at the top, and the content is below and to the right.

    What am I doing wrong here? My guess is that my narrowcolumn is set wrong so that it doesn't allow the sidebar to be on the left next to the content.

  2. DavidBorrink
    Member
    Posted 1 year ago #

    Okay, I saw in another area with a similar situation where someone said, "This has to be the most frequently asked question on these boards".

    But I didn't see much in the way of answers from people. So here's my answer...

    I tried some previous backups of my files and had the same results, even using the style sheet from a project I based this new work on. Same problem. I gave this some time to mull over and figured out that I must have goofed up the sidebar.php template when I removed some of the previous site's contents from it.

    When I placed a new default sidebar.php file in the theme, everything lined up right.

    So those of you having this problem, might possibly have this as a reason.

  3. Gosurf
    Member
    Posted 1 year ago #

    Hi David

    I had the same problem and almost tried the same things as you. I got it right at one time but then it moved again or moved the post down.

    At last I changed the narrowcolumn left margin to "0" and the sidebar moved into place.

Topic Closed

This topic has been closed to new replies.

About this Topic