Jump to content

CSS position: fixed; destroys my navbar

Go to solution Solved by skyress3000,

Add 

width: 100%;

to the navbar's CSS along with fixed position

Sorry for spamming the forum with questions but I've found another issue. Upon trying to make a navbar that follows you as you scroll down the page, I found out position: fixed; should do that, but instead it ruins part of my page.

 

To quickly show whats going on, go here: http://jsfiddle.net/p3u6mwjn/

1. Click run, be witness to my amazing navbar,

2. Uncomment the first line in the css file,

3. Click run, and watch it get broken.

 

Any ideas? Positioning things in css is hard :/

Also ignore the spammy text, that's required for testing purposes.

Thanks

Link to comment
https://linustechtips.com/topic/479239-css-position-fixed-destroys-my-navbar/
Share on other sites

Link to post
Share on other sites

Add 

width: 100%;

to the navbar's CSS along with fixed position

Pro Tip: don't use flash when taking pictures of your build; use a longer exposure instead. Prop up your camera with something (preferably a tripod) if necessary.

if you use retarded/autistic/etc to mean stupid please gtfo

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×