Bootstrap Panels

Bootstrap Panels are used to display content inside bordered boxes with headings, body content, and footers. They help in organizing UI elements like forms, messages, product cards, or grouped sections.

📌 Panels exist in Bootstrap 3. In Bootstrap 4+, they are replaced by Cards.


✅ Basic Panel

Use .panel and .panel-default classes:



 



🎨 Different Panel Styles

Bootstrap provides contextual color classes:

ClassDisplay Type
panel-defaultStandard gray
panel-primaryBlue theme
panel-successGreen theme
panel-infoLight blue
panel-warningOrange
panel-dangerRed

Example:



 


📌 Panel with Footer



 


🔗 Panels with List Group

Useful for displaying grouped information like inbox messages:



 


🏷 Panels with Tables



 


📌 Panel Group (Accordion Style)


 


✔ Summary

FeatureSupported
Basic border+heading content box✔️
Contextual color variations✔️
Supports tables, list groups, forms✔️
Has headers & footers✔️
Accordion (collapsible sections)✔️

You may also like...