mirror of https://github.com/ColorlibHQ/AdminLTE
0
Component: Box
Dorin Brage edited this page 2015-09-11 10:47:26 +02:00
Documentation for the box component and its variants.
The box component is used for variety of reasons. Mainly used to hold content of a specific widget.
- Structure: the box has three main sections. The header, body and footer. Example of usage below.
<div class="box">
<div class="box-header">
<h3 class="box-title">Title</h3><!-- /.box-title -->
</div><!-- /.box-header -->
<div class="box-body">
<!-- main content -->
Box body
</div>
<div class="box-footer">
Box footer
</div>
</div>
-
Variants: AdminLTE provides multiple ways to customize your box's color, look and feel.
For a default box we can add colored border using the
.box-*
classes (where * is the name of the style) to the box component. Styles available are:.box-primary
.box-success
.box-danger
.box-warning
.box-info
Example of usage:
Title
Box body
Box footer
To get a fully colored header instead of a top border only, add the `.box-solid` class to the box. Example:
```html
Title
Box body
Box footer
Title
Box body
Box footer
- List of bg classes:
bg-light-blue
equivalent to primary colorbg-green
equivalent to success colorbg-yellow
equivalent to warning colorbg-red
equivalent to danger colorbg-aqua
equivalent to info color
- Additional bg classes:
bg-purple
bg-blue
bg-navy
bg-teal
bg-maroon
bg-black
bg-gray
bg-olive
bg-lime
bg-orange
bg-fuchsia