• Home
  • Utilities
  • Visual

Visual

Margin Auto

Use .lwj-margin-auto to center an element.

Example
A centered image using margin auto.

Jason
Jason Lengstorf
HTML
<figure>
  <img src="jason.jpg" class="lwj-avatar lwj-margin-auto lwj-stack-xs" alt="Jason">
  <figcaption class="lwj-text-body-sm lwj-text-center">
    Jason Lengstorf
  </figcaption>
</figure>