Jump to content

Unknown 2

From The Shivo Library

/* Ensure the body takes full height and uses flexbox layout */ flex-direction: column; /* Makes the body a vertical flex container */ min-height: 100vh; /* Ensure the body stretches to at least the full viewport height */ margin: 0; /* Remove any default margin */ /* Ensure TOC is below the banner and correctly spaced */ top: 80px; /* Moves TOC down by the height of the banner */ margin-bottom: 20px; /* Adds space below the TOC */ z-index: 1; /* Ensures TOC stays above other elements */ /* Main content is placed after the TOC and stretched to fill the available space */ flex: 1; /* Allows content to expand and take up available space */ padding-bottom: 20px; /* Optional: Adds space before the footer */ margin-top: 20px; /* Optional: Adds space after TOC */ /* Ensure footer/disclaimers are at the bottom */ padding-top: 20px; /* Adds space between content and footer */ margin-top: auto; /* Pushes footer to the bottom of the page */ /* 1. Ensure the body takes full height and uses flexbox layout */ flex-direction: column; /* Makes the body a vertical flex container */ min-height: 100vh; /* Ensures the body stretches to at least the full viewport height */ margin: 0; /* Remove any default margin */ /* 2. Adjust the Table of Contents (TOC) to stay below the banner */ top: 80px; /* Moves TOC down by the height of the banner */ margin-bottom: 20px; /* Adds space below TOC */ z-index: 1; /* Ensures TOC stays above other elements */ /* 3. Main content should be below the TOC */ flex: 1; /* Ensures content takes available space */ padding-bottom: 60px; /* Adds padding at the bottom */ margin-top: 20px; /* Adds space after TOC */ /* 4. Ensure footer or disclaimers are pushed to the bottom of the page */ padding-top: 20px; /* Adds space between content and footer */ margin-top: auto; /* Pushes footer to the bottom of the page */ /* 1. Ensure body uses flexbox layout without breaking TOC */ flex-direction: column; /* Vertical layout for body content */ min-height: 100vh; /* Ensures full height */ margin: 0; /* Remove default margin */ /* 2. Make sure TOC stays below the banner */ top: 80px; /* Moves TOC down by the height of the banner */ margin-bottom: 20px; /* Optional: Adds space below TOC */ /* 3. Ensure content starts below TOC and is spaced properly */ margin-top: 120px; /* Moves content below the TOC */ flex: 1; /* Content takes up available space */ padding-bottom: 60px; /* Prevent content from clipping into footer */ /* 4. Footer will always stay at the bottom */ padding-top: 20px; /* Space between content and footer */ margin-top: auto; /* Pushes footer to the bottom of the page */ /* Ensure body takes full height and uses normal flow */ /* TOC remains in the same position below the banner */ top: 80px; /* Moves TOC down by the height of the banner */ margin-bottom: 20px; /* Adds space below the TOC */ z-index: 1; /* Ensures TOC stays above other elements */ /* Main content is positioned properly below TOC and leaves room for footer */ margin-top: 120px; /* Moves content below the TOC */ padding-bottom: 100px; /* Ensures there's space before footer */ /* Footer stays at the bottom of the page */ margin-top: 20px; /* Keeps footer at the bottom, separate from content */ /* Ensure body takes full height and uses normal flow */ /* TOC remains in the same position below the banner */ top: 80px; /* Moves TOC down by the height of the banner */ margin-bottom: 20px; /* Adds space below the TOC */ /* Main content is positioned properly below TOC and leaves room for footer */ margin-top: 120px; /* Moves content below the TOC */ padding-bottom: 100px; /* Ensures there's space before footer */ /* Footer stays at the bottom of the page */ margin-top: 20px; /* Keeps footer at the bottom, separate from content */ /* Ensure body uses block layout */ /* Ensure TOC is pushed down below the banner */ top: 80px; /* Moves TOC below the fixed banner */ margin-bottom: 20px; /* Adds space below TOC */ /* Main content stays below TOC and doesn't overlap */ margin-top: 120px; /* Moves content down below TOC */ padding-bottom: 100px; /* Ensures enough space for footer */ /* Footer stays properly spaced at the bottom */ margin-top: auto; /* Ensures footer stays at the bottom of the page */