Keep Menu at top/float in classic view

  • Posted in : BookCard WP
  • SynGamer
    Participant

    In the classic view, how do I make it so that the menu bar stays in-view at the top of the screen when scrolling (desktop and mobile please)?

    SynGamer
    Participant

    Any way to do this? It seems like a relatively easy fix.

    Mehmet S.
    Keymaster

    Paste to Theme Options > Style > Custom CSS:

    #header { position: fixed; }
    
    SynGamer
    Participant

    That works, but it cuts off the page title…

    http://i.imgur.com/ZvXwYp5.jpg

    SynGamer
    Participant

    I tried tweaking the code but I still cannot get the content to go down a bit so that it’s not hidden by the menu, please help.

    Mehmet S.
    Keymaster
    #resume,
    #portfolio,
    #contact
    {
    margin-top: 71px;
    }
    
    SynGamer
    Participant

    I tried that and in the 3D view it pushes the entire page/content down 71px. Also, on the cover page, with this code added, for some reason my portfolio loads directly under the Twitter (blank) feed. Removing the code you suggested above fixes this.

    Is there anyway to have this code target ONLY the mobile layout?

    Mehmet S.
    Keymaster

    Can you provide a screenshot for the issue?

    SynGamer
    Participant
    Mehmet S.
    Keymaster

    Try this:

    @media screen and (max-width: 978px)
    {
    #resume,
    #portfolio,
    #contact { margin-top: 71px; }
    }
    
    @media screen and (min-height: 800px) and (max-width: 960px)
    {
    #resume,
    #portfolio,
    #contact { margin-top: 71px; }
    }
    
    @media screen and (max-width: 479px)
    {
    #resume,
    #portfolio,
    #contact { margin-top: 71px; }
    }
    
    SynGamer
    Participant

    Almost, but not quite… http://i.imgur.com/WvnnUMb.png

    Mehmet S.
    Keymaster

    What is it?

    SynGamer
    Participant

    The menu button on the far right is clearly extended past the main body/content.

    Mehmet S.
    Keymaster

    Add:

    #header { width: 600px; }
    
    SynGamer
    Participant

    Perfect, thank you :)

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register