Hello, i’m just starting to get to grips with this challenge and have hit an early bump in the road.
With the navbar-fixed-top in place any subsequent content starts at the top of the page and therefore behind the nav bar. I undertand that this is because it is no longer part of the document flow.
I’ve been looking this up for a couple of hours now and nothing i’m trying seems to want to fix it.
For example, padding-top for the body is not making any difference that i can see and if i remove the fixed top everything is where i want it (i get document flow back) except the nav bar doesnt scroll.
I’m happy to do more research if somebody could be kind enough to steer me towards where I should be looking.
Hiya, i am looking to add a fixed nav bar at the top of the page and then have the remaining content beneath it. The issue i seem to be having is when i use navbar-fixed-top anything i add after goes underneath it. I’ve tried using padding but it doesnt seem to chnage that. I hope that makes sense?
No the name, buttons and image are within the navigation bar.
The problem i am having is that anything else i want to add after the navigation is partially obscured behind it as i have it fixed to the top and can’t figure out how to stop that happening.
I’ve looked at advise other campers have received about the use of padding-top in the body to shift everything else just under the bar so it’s not obsucred but it doesn’t appear to make any difference
I have closed the } for hr in the css and added the suggestion for contentPadding.
That’s been really helpful and fixed the issue of content behind the navigation bar.
The
line still isnt showing however and i belive that this should be just below the navigation bar before the placeholder text but isn’t showing for some reason?