The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Fixed navbar

View previous topic View next topic Go down

Solved Fixed navbar

Post by nextlevelgaming on 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
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 on September 29th 2012, 1:10 am

bump please

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 on 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]

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 on October 4th 2012, 5:52 am

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 35606
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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