Skip to content
Ole Petter Bang edited this page May 7, 2014 · 9 revisions

Whole-slide text alignment

The class slide property lets you assign CSS classes to a slide, and remark comes with a set of classes for setting horizontal and vertical text alignment:

class: middle, center

# Centered vertically and horizontally

The classes available for vertically aligning text are:

  • top (default)
  • middle
  • bottom

The classes available for horizontally aligning text are:

  • left (default)
  • center
  • right

Text block alignment

Content classes let you assign CSS classes to a text block, and remark comes with a set of classes for setting horizontal text alignment:

# Text alignment

.left[Left-aligned text]

.center[Centered text]

.right[Right-aligned text]

The classes available for horizontally aligning text are:

  • left (default)
  • center
  • right