Single Col
SingleCol
lets you create a single-column layout. It’s basically a Wrap
without horizontal padding.
-->
SingleCol
lets you create a single-column layout. It’s basically a Wrap
without horizontal padding.
You can use width
and self-*
to shift the entire SingleCol
column to the left, center, or right easily.
SingleCol
behaves like Vertical
so you can place its items on the left, center, or right easily.
SingleCol
is usually used inside Wrap
.
Inner Content
If SingleCol
is placed in Wrap
, you can use shift*
to shift the column to the left, center, or right. To do this, you also need to set width
because SingleCol
has width
set to 100%
by default.
If you don’t want to set width
, you can use Vertical
instead.
Inner
behaves like Vertical
so you can place items on the left, center, or right easily.
You can change the gap between items with the gap
property. If you don’t use Tailwind, you can use the --gap
variable.
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
SingleCol
is usually used inside Wrap
.
Inner Content
If SingleCol
is placed in Wrap
, you can use shift*
to shift the column to the left, center, or right. To do this, you also need to set width
because SingleCol
has width
set to 100%
by default.
If you don’t want to set width
, you can use Vertical
instead.
Inner
behaves like Vertical
so you can place items on the left, center, or right easily.
You can change the gap between items with the gap
property. If you don’t use Tailwind, you can use the --gap
variable.
Here’s the CSS for SingleCol
.
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Here’s the CSS for SingleCol
.
Properties | Default | Description |
---|---|---|
width | 100% | Sets the width of the element. |
Class | Description |
---|---|
self-stretch | Default value. Stretches the item. |
self-start | Aligns item to the left. |
self-center | Aligns item to the center. |
self-end | Aligns item to the right. |
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Properties | Default | Description |
---|---|---|
width | 100% | Sets the width of the element. |
Class | Description |
---|---|
self-stretch | Default value. Stretches the item. |
self-start | Aligns item to the left. |
self-center | Aligns item to the center. |
self-end | Aligns item to the right. |