• Hi guys.
    I’m not sure if this topic was brought up here before.

    Is it possible to separate sidebar from the main page?

    So when you scroll your blog/posts up and down, the sidebar will remain static, just the blog/posts that goes up and down (similar to iFrame i guess)?

    Helps are appreciated.
    Thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • in a word yes… but it’s going to depend a lot on your theme… and require some reworking of it.

    I don’t know if this is true of most themes (it is for the ones I make) but a lot of themes rely on creating a main container and then placing the divs into that container. You’re going to want to place the sidebar outside of that container and fix it’s position.

    However you’re going to end up needing a call to a seperate style sheet to take care of IE 6 and below…

    these links might help get you started…
    http://www.divinentd.com/experiments/emulating-position-fixed.html
    http://www.w3.org/Style/Examples/007/menus.html

    I’d also suggest placing your updated sidebar on the left hand side of the screen otherwise you’re going to have to fix the size of your content area.

    Thread Starter ayey

    (@ayey)

    Thanks jetshack,

    I’m new to this, so do you mind to explain where should i put the DIV script into? Should i put it in the sidebar.php or page template.php or style.css?

    And in which line should i put this code?

    Appreciate your helps alot mate.
    Thanks!

    Thread Starter ayey

    (@ayey)

    Hey I thinks i solved it 🙂
    Here
    Thanks a lot mate!

    looks like you’re on the right track…

    (sorry didn’t get back sooner… dont’ check in on weekends.)

    Thread Starter ayey

    (@ayey)

    yea its OK.
    Thanks a lot for your help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Separate sidebar from main page?’ is closed to new replies.