Skip to content

Top / Right / Bottom / Left

Utilities for controlling the placement of positioned elements.

Quick reference

ClassPropertyToken
top-0top: 0;top
right-0right: 0;right
bottom-0bottom: 0;bottom
left-0left: 0;left

Usage

Use the {key} class for setup the display type.

html

<div class="top-0">
    <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

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

html

<div class="top-0 lg:left-0">
    <!-- ... -->
</div>

Customization

Extend your theme

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

scss
@use "lasco" with (
    $extend: (
        "top": (
            "10": "10px"
        )
    )
);

Released under the MIT License.