Item always auto positioned ... how do I do this?

Discussion in 'CSS' started by Pinoguin, Nov 30, 2007.

  1. #1
    Sorry I'm not sure what it's called,

    I have a site here:
    http://elijah.pinoguin.com , it has a simple container with a background image. When the user scrolls down the background stays.

    Now what my client wants is something similar, but he wanted a flash menu on the left that always stays in that position just like my background on my personal site. Reference:
    http://tomepedia.com/ (my test site atm)


    I tried to do a simple container for the main content and set a css overflow to it, but the client didn't like the extra scroll in the container...


    So, any suggestions? :confused:
     
    Pinoguin, Nov 30, 2007 IP
  2. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #2
    You could make the navigation appear in an iframe and disable the scrollbar. However, iframes are not SEO friendly.
     
    Katy, Nov 30, 2007 IP
  3. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #3
    It's called position:fixed, but it doesn't work in MSIE6. There is a workaround, which is found below

    http://www.cssplay.co.uk/layouts/fixed.html

    position:relative or absolutely positioned elements will break, and be treated as fixed in IE6
     
    soulscratch, Nov 30, 2007 IP
  4. Pinoguin

    Pinoguin Peon

    Messages:
    848
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wanted to avoid iframes as much as possible, thanks for the help though.

    @position: fixed; - Bingo! that's exactly what I'm looking for, thanks!
     
    Pinoguin, Nov 30, 2007 IP