GitHub - suitcss/utils-align: CSS vertical-alignment utilities

Build Status

SUIT CSS utility classes for vertically aligning elements.

Read more about SUIT CSS's design principles.

Installation

  • npm: npm install suitcss-utils-align
  • Download: zip

Available classes

  • u-alignBaseline -Vertically align to baseline.
  • u-alignBottom - Vertically align to bottom.
  • u-alignMiddle - Vertically align to middle.
  • u-alignTop - Vertically align to top.

Usage

Please refer to the README for SUIT CSS utils

Testing

Install Node (comes with npm).

To generate a build:

To lint code with postcss-bem-linter and stylelint

To generate the testing build.

To watch the files for making changes to test:

Basic visual tests are in test/index.html.

Browser support

  • Google Chrome (latest)
  • Opera (latest)
  • Firefox 4+
  • Safari 5+
  • Internet Explorer 8+