Peter6528 Peter6528 - 1 month ago 9
CSS Question

CSS How to add content under fixed position navbar

I have a fixed position navigation bar.
The height the navbar is 50px

I want to put some text under the navbar, but I don't know how.

Answer

Add this line in your css flie:

body { padding-top: 50px; }

or:

.some-text { padding-top: 50px; }