Skip to content
On this page

Justify Self

Utilities for applying justify-self property an element.

Quick reference

ClassPropertyToken
justify-self-autojustify-self: auto;auto
justify-self-startjustify-self: start;start
justify-self-endjustify-self: end;end
justify-self-centerjustify-self: center;center
justify-self-stretchjustify-self: stretch;stretch

Usage

Use the justify-self-{key} class for set up the justify-self type.

html
<div class="justify-self-center">
    <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

You can also control the responsive breakpoint with variant class modifiers. For example lg:justify-self-start will be only apply on large screens size and above.

html
<div class="justify-self-center lg:justify-self-start">
    <!-- ... -->
</div>

Customization

Extend your theme

By default, the configuration provides a handful of general purpose justify-self type utilities. You can easily filter the default scales using the Sass configuration.

scss
@use "lasco" with (
    $extend: (
        "justify-self": (
            "center"
        )
    )
);

Disabled

You can easily disable the properties you don't need to use.

scss
@use "lasco" with (
    $extend: (
        "justify-self": false
    )
);

Released under the MIT License.