CSS Utility Classes & UI Elements

This reference covers legacy interface elements and helper classes: wells, close icons, alignment utilities, muted text, and clearfix behavior.

Wells

Use a well to give an element a simple inset effect.

Example

Look, I’m in a well!

Markup

<div class="well">
  ...
</div>

Optional well classes

Use modifier classes to change padding and rounded corners.

Look, I’m in a well!
<div class="well well-large">
  ...
</div>
Look, I’m in a well!
<div class="well well-small">
  ...
</div>

Close icon

Use the generic close icon to dismiss content such as modals and alerts.

<button class="close">&times;</button>

On iOS devices, an anchor requires an href="#" for click events.

<a class="close" href="#">&times;</a>

Helper classes

These focused classes support small display and layout adjustments.

  • pull-left: floats an element left.
  • pull-right: floats an element right.
  • muted: changes an element’s color to #999.
  • clearfix: clears floated content on an element.

Float an element left or right

class="pull-left"
.pull-left {
  float: left;
}
class="pull-right"
.pull-right {
  float: right;
}

Muted text

class="muted"
.muted {
  color: #999;
}

Clear floated content

class="clearfix"
.clearfix {
  *zoom: 1;
}
.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both;
}
Back to Top
Product has been added to your cart
Compare (0)