Getting The Menu To Float Up & Down...

Discussion in 'HTML & Website Design' started by BlueEew, Oct 23, 2010.

  1. #1
    http://www.pokeproject.net/pokemon/

    Look at the following page.

    When you click on one of the Image Links on the right hand side it shortcuts to that section of content on that page.

    I was wondering how would I get the Menu to go down with it. For example if someone clicked the "Misc" Link and shortcutted from the top of the page to the last Misc section, I would like the menu to float down with it for navigation.

    Anyone know how this can be done?

    Thanks,
    BlueEew.
     
    BlueEew, Oct 23, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the stylesheet, add position: fixed; to the right panel.

    #right-panel{margin:0 0 0 650px; position: fixed;}

    BTW, the games link is not working because it has the wrong name, and there are two Anime headings but no Spin-offs heading.
     
    Cash Nebula, Oct 23, 2010 IP
  3. BlueEew

    BlueEew Well-Known Member

    Messages:
    2,434
    Likes Received:
    79
    Best Answers:
    1
    Trophy Points:
    150
    #3
    Thanks for pointing the link errors out, I corrected them. :)

    I have added the code and now it sort of does what I want it to. However some of the buttons are not showing and when you scroll down it stays at the bottom of the screen and goes over the footer.
     
    BlueEew, Oct 24, 2010 IP
  4. lonerunner

    lonerunner Member

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #4
    what if someone have small resolution so end of navigation is hidden like misc menu, i cant see it until i zoom out, how to fix that, when i scroll down menu to go up untill i see all menu items, than menu to became static?
     
    lonerunner, Oct 24, 2010 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, fixed positioning can be a problem because it's not well supported. What browsers are you using?
    The problem may be that zoom: 1; is not triggering haslayout. The docs say to use floating point number, so it should be zoom: 1.0;
    You can also use zoom: 100%; or zoom: normal;
     
    Cash Nebula, Oct 24, 2010 IP
  6. lonerunner

    lonerunner Member

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #6
    im on firefox 3.6 latest version.
     
    lonerunner, Oct 25, 2010 IP
  7. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Same here, but now I see the problem after resizing the window. Sorry, I don't know any easy solution to that.
    I think a script is needed to reposition the menu when the window is resized.
    There are lots of fixed JQuery menus around, maybe one of those would be more suitable.
     
    Cash Nebula, Oct 25, 2010 IP