Ask Your Question
1

How does the navbar-fixed-top in Bootstrap CSS cause a part of the container to be concealed?

asked 2021-09-27 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-07-11 06:00:00 +0000

david gravatar image

The navbar-fixed-top class in Bootstrap CSS fixes the navbar to the top of the viewport, making it remain in view even as the user scrolls down the page.

This can cause the content of the container to be concealed because the fixed navbar takes up space at the top of the viewport, effectively covering up that area of the container. To prevent this from happening, a margin can be added to the top of the container to ensure that the content starts below the fixed navbar.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-09-27 11:00:00 +0000

Seen: 12 times

Last updated: Jul 11 '21