Loading...

Content boxes View all kinds of Content boxes examples below.

Content boxes

Content boxes are used to better organize your content and provide a visual consistency to your app.

Basic structure

Below, you will find the basic structure needed to create a content box.

content box title

Content box body content.

Title background colors

Change the content box title background ( .content-box-header) by adding to it one of the color CSS helper classes listed below.

Common styles

Framework inherited

The core color helpers can be applied to all kind of elements from buttons to icons, headers, headings, etc. They do not change when you switch to a different theme from the same template.

Theme inherited

These are the template default color schemes and are used site wide to consistently style common elements. For the primary color you must add .bg-primaryand for the secondary color you must add .ui-state-default. Note that theme two styles change based on what color scheme you choose for your template.

Header with .bg-primary

This content boxes has the header with .bg-primaryclass.

Header with .bg-purple

This content boxes has the header with .bg-purpleclass.

Header with .bg-yellow

This content boxes has the header with .bg-yellowclass.

Header with .bg-blue

This content boxes has the header with .bg-blueclass.

Header with white background

This content boxes has the header with .bg-whiteclass.

Header with .bg-black

This content boxes has the header with .bg-blackclass.

Header with .bg-black

This content boxes has the header with .bg-blackclass.

Header with .bg-blue-alt

This content boxes has the header with .bg-blue-altclass.

Alternate header

Use the example below to create a content box with a two-line header title.

Content title Example header title description

This content boxes has the header with .bg-defaultclass.

Header icons

You can add icons to the content box header titles using the FontAwesomeicons. For example to add a cog icon next to the title you need to use the following code <i class="glyph-icon icon-cog"></i>

Content title

This content boxes has the header with .bg-defaultclass.

Content title

This content boxes has the header with .bg-primaryclass.

Content title Example header title description

This content boxes has the header with .bg-defaultclass.

Icons separator

To create a separator for the header title icon you need to wrap it inside an element with the .icon-separatorCSS class.

Content title

This content boxes has the header with .bg-defaultclass.

Content title

This content boxes has the header with .bg-primaryclass.

Content title Example header title description

This content boxes has the header with .bg-defaultclass.

Header buttons

You have the option to insert single buttons in the content boxes headers using the default button markup.

Content title

This content boxes has the header with .bg-defaultclass.

Content title

This content boxes has the header with .bg-defaultclass.

Content title Example header title description

This content boxes has the header with .bg-defaultclass.

Content title

This content boxes has the header with .bg-primaryclass.

Content title Example header title description

This content boxes has the header with .bg-blueclass.

Header button groups

You can also include button groups in the content box headers using the markup below.

Content title

This content boxes has the header with .bg-whiteclass and .bg-blackfor the content wrapper.

Content title

This content boxes has the header with .bg-whiteclass and .bg-black-altfor the content wrapper.

Separated buttons

The separated buttons have a lighter background color than the content box header.

Content title

This content boxes has the header with .bg-default.

Content title

This content boxes has the header with .bg-primary.

Content title

This content boxes has the header with .bg-white.

Content title

This content boxes has the header with .bg-black.

Content title

This content boxes has the header with .bg-blue.

Content title

This content boxes has the header with .bg-black.

Badges & Labels

Context boxes header can also contain badges and/or labels.

Badges 42

Content box body content.

Badges 42

Content box body content.

Labels Primary label

Content box body content.

Badges 5

Content box body content.

Labels Label info

Content box body content.

Badges 89

Content box body content.

Label successBadges

Content box body content.

Alternate style

To create a top border content box example, like the ones below, you need to add the following CSS helper classes to the .conten-boxwrapper: .border-topand border-red. To achieve different border colors, replace "-red" with "-blue", "-blue-alt", "-green", "-orange", etc

Red border (Example description)

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

This content boxes has a red top border.

Green border (Example description)

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

This content boxes has a green top border.

Button panes

To create a footer button pane add a div with the .button-paneCSS class after the .content-box-wrapperelement. To create a button pane above the content wrapper, move the .button-paneelement above the .content-box-wrapperin the DOM add .button-pane-topCSS class to it.

Content title

This content boxes has the header with .bg-defaultclass.

Content title Example header title description

This content boxes has the header with .bg-defaultclass.

Boxes loading overlays

Add .refresh-buttonCSS class to the element that you want to trigger the content box loading overlay. You can control the overlay color using the data-theme="bg-green">parameter. For lighter color data-theme parameter use data-style="light"and for darker ones, use data-style="dark". Opacity can be controlled using the data-opacity="80">parameter. Accepted values are: 30, 60, 80, 100.

Content title

This content boxes has the header with .bg-default.

Content title

This content boxes has the header with .bg-default.

Toggle boxes

Add .toggle-buttonCSS class to the element that you want to trigger the content slide toggle.

Content title

This content boxes has the header with .bg-default.

Initially closed

Add .hideCSS class to the .content-box-wrapperelement that you want to show on toggle trigger.

Content title

This content boxes has the header with .bg-default.

Hidden buttons

Add .hidden-buttonCSS class to the .content-boxelement to make the content box header elements that have the .label-hideCSS class, initially hidden and show them only on content box hover.

Content title

This content boxes has the header with .bg-black.

Closable boxes

Add .remove-buttonCSS class to the element that you want to trigger the content box remove. To control the animation used for the removal, use the data-animation="flipOutY"parameter. To learn more about the animation you can use, read the Animations documentation page.

Content title

This content boxes has the header with .bg-black.

Content title

This content boxes has the header with .bg-white.

Content title

This content boxes has the header with .bg-default.

Content title

This content boxes has the header with .bg-default.

Panels

Use the markup below to create content panels.

Basic panel example
Panel heading without title
Panel content

Panel title

Panel content
Panel content
Online
Idle
Offline
Cloud status
Latest transfers
Tasks for today
Pending notifications New