Bootstrap 3 Full-Height Columns: A Custom CSS Solution
Introduction:
Creating full-height layouts with Twitter Bootstrap 3 can be challenging. While Bootstrap's native classes do not support this feature, it is possible to achieve this effect using custom CSS.
Custom CSS Approach:
Markup:
Header NavigationContent
CSS:
html, body, .container { height: 100%; } .container { display: table; width: 100%; margin-top: -50px; padding: 50px 0 0 0; } .row { height: 100%; display: table-row; } .row .no-float { display: table-cell; float: none; }
Advantages and Considerations:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3