githubEdit

PostCSS Place Properties

NPM Versionarrow-up-right CSS Standard Statusarrow-up-right Build Statusarrow-up-right Support Chatarrow-up-right

PostCSS Place Propertiesarrow-up-right lets you use place-* properties as shorthands for align-* and justify-*, following the CSS Box Alignmentarrow-up-right specification.

.example {
  place-self: center;
  place-content: space-between center;
}

/* becomes */

.example {
  align-self: center;
  justify-self: center;
  place-self: center;
  align-content: space-between;
  justify-content: center;
  place-content: space-between center;
}

Usage

Add PostCSS Place Propertiesarrow-up-right to your project:

Use PostCSS Place Propertiesarrow-up-right to process your CSS:

Or use it as a PostCSSarrow-up-right plugin:

PostCSS Place Propertiesarrow-up-right runs in all Node environments, with special instructions for:

Options

preserve

The preserve option determines whether the original place declaration is preserved. By default, it is preserved.

Last updated