Fixed Top Help in Navbar

Using the ‘Fixed Top’ selection for Navbar is covering my content at the top. I can space the content to make room, but there must be a way to avoid that.

Using the ‘Fixed Top’ adds position:fixed and top:0 styles rule to your document.

Unfortunately, when the position property has a value other than relative, this causes the element to be ignored by the normal flow of the document, meaning that the rest of the document needs to be adjusted to accommodate the fixed element.

1 Like

You can just add padding top to the body to fix that. As Ben explained, that’s how position fixed works.