Fixed navbar Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
2 posters

    Fixed navbar

    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Fixed navbar

    Post by nextlevelgaming September 27th 2012, 9:46 pm

    I am creating a fixed navbar with a position in the middle of the page. I want to create it so when you minimize the browser it does not overlap the body of the page.

    I tried using this code

    Code:
    $(window).scroll(function(event) {
      $("#pun-navlinks").css("margin-left", $("#pun-navlinks").css("margin-left")-$(document).scrollLeft());
    });

    but it seems to be not working. Any suggestions?
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: Fixed navbar

    Post by nextlevelgaming September 29th 2012, 1:10 am

    bump please
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: Fixed navbar

    Post by nextlevelgaming October 4th 2012, 3:59 am

    yeah I know rideem, I have a css made for it. the jQuery is so it does not move left or right when resizing the window

    I had it working one day. But it was a css class that i made, trial basis, then i started to add the widgets, and now since they really dont have a css, I tried using the #left and it just stopped workin...


    And after another test it works Smile lol wow i ask questions alot here cuz i get very impatient, then i fix em myself. Sorry rideem my bad. Hey listen base hasn't been on in a few, and my tuts where being reviewed can you get ahold of him, cuz i have three other tuts that implement invision features to phpbb2 and punbb please.

    You can lock this, as well as the other two you commented on. this 200seconds till responds is biting me in the [Language]
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Fixed navbar

    Post by SLGray October 4th 2012, 5:52 am

    Topic Solved & Locked



    Fixed navbar Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.