0

Does any one know how to get a nav bar with side bar fixed on top which not cover the screen content

about HTML CSS and JavaScript

27th Feb 2017, 8:38 AM
himanshu chandan
himanshu chandan - avatar
2 Respostas
+ 5
Define a top margin to your <body> tag, at least equal to the height of your fixed nav bar... Do same kind with left or right and width of side bar, with bottom and height if you want have a fixed element to the bottom... But showing your code would be more efficient for getting accurate help ;)
28th Feb 2017, 12:59 AM
visph
visph - avatar
+ 1
encapsulate the navbar in a div container and the content you don't want to cover in another div container
27th Feb 2017, 5:43 PM
seamiki
seamiki - avatar