Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The use of Bootstrap CSS with a navbar-fixed-top class will make the navbar stick to the top of the screen when users scroll down the page. This fixed position of the navbar causes the content below it to overlap with the navbar. Therefore, to prevent this overlap, Bootstrap applies a top margin to the container located below the navbar. Unfortunately, this margin causes the lower portion of the container to be hidden from view. This problem can be resolved by either adjusting the top margin of the container or adding padding to the top of the container to ensure that all content stays visible.