Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    help question Static Header & Left Column Is this possible?

    Hello Zen Family,

    Is it possible to have a static header and a static left column on all pages that only allows the main body to move up or down?

    If so, how?
    If not, why not?

    Thanks for your quick response!!
    lj

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Static Header & Left Column Is this possible?

    It's possible as long as you're not using IE6.

    The CSS property
    position: fixed;
    can be applied to any element in your stylesheet, such as #headerWrapper and #navColumnOne, and will keep the element in the same place in the window while the rest scrolls. You also need to specify exactly where the element will be fixed with top: and left:

    Unfortunately, IE6 doesn't know how to handle this and treats it like position: absolute; (keeping it in the same place on the page while the whole page scrolls).

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Static Header & Left Column Is this possible?

    You may be able to achieve your design purpose with the CSS property "overflow".

    Set a fixed height for the center column, and give it
    overflow: auto;
    or
    overflow: scroll;
    and the box contents will have a scrollbar that allows all the content to be accessible. Auto only shows the scrollbar where needed while scroll always shows both scrollbars for predictability.

  4. #4
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    help question Re: Static Header & Left Column Is this possible?

    WOW, it worked perfectly

    This is what I did:
    Used the Firefox Element Information to find the class.
    (you just taught me that a few days ago).

    In this case it was named main_block.

    Went to my css stylesheet and added this code:

    .main_block {
    height: 550px; overflow-y:scroll;
    }

    and the attached picture is the result. Exactly what I wanted.
    Thanks so much. I thought it was going to be much harder with alot of coding to make this happen, yet it was so simple.....

    Thanks again,
    lj




    Quote Originally Posted by gjh42 View Post
    You may be able to achieve your design purpose with the CSS property "overflow".

    Set a fixed height for the center column, and give it
    overflow: auto;
    or
    overflow: scroll;
    and the box contents will have a scrollbar that allows all the content to be accessible. Auto only shows the scrollbar where needed while scroll always shows both scrollbars for predictability.
    Attached Images Attached Images  

 

 

Similar Threads

  1. extend left column into header
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Sep 2009, 12:47 AM
  2. Left column text spacing & underline
    By vik007 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 9 Mar 2008, 03:10 AM
  3. Right & left column differences, plus center issues`
    By Moebiusenterprises in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Aug 2007, 06:06 AM
  4. nav column left & right
    By Prellyan in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 28 Mar 2007, 02:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg