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.

Fixed navbar

2 posters

Go down

Solved Fixed navbar

Post by nextlevelgaming Thu 27 Sep - 22:46

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

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Fixed navbar

Post by nextlevelgaming Sat 29 Sep - 2:10

bump please
nextlevelgaming
nextlevelgaming
Forumember

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

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Fixed navbar

Post by nextlevelgaming Thu 4 Oct - 4:59

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]
nextlevelgaming
nextlevelgaming
Forumember

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

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Fixed navbar

Post by SLGray Thu 4 Oct - 6:52

Topic Solved & Locked


Fixed navbar Slgray10

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

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum