Bootstrap 3 Tutorial
Bootstrap defines a panel as a bordered box with padding around its content.
The .panel class is used to generate panels, while the .panel-body class is used for content within the panels.
A Basic Panel
The .panel-default class is used to change the color of the panel. For more contextual classes, see to the last example on this page.
The .panel-heading class creates a heading for the panel:
Panel Heading
Panel Content
The .panel-footer class creates a footer for the panel:
Panel Content
Panel Footer
To group multiple panels, enclose them in a <div> with class .panel-group.
The .panel-group class removes the bottom border from each panel:
Panel Content
Panel Content
Color the panel using contextual classes (.panel-default, .panel-primary, .panel-success, .panel-info, .panel-warning, or .panel-danger):
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.