![]() |
This class accepts lots of values in tailwind CSS. It is the alternative to the CSS Align Self property. This class is used to control how an individual flex or grid item is positioned along its container’s cross axis. Align Self Classes:
self-autoThis class is used to inherit its parent container align-items property or stretched if it has no parent container. It is a default value. Syntax: <element class="self-auto">...</element> Example:
Output: ![]() self-startThis class is used to align the selected item at the beginning of the flexible container. Syntax: <element class="self-start">...</element>
Example:
Output: ![]() self-endThis class is used to align the selected item at the end of the flexible container. Syntax: <element class="self-end">...</element> Example: >
Output: ![]() self-centerThis class is used to place the item at the center of the flexible container. Syntax: <element class="self-center">...</element> Example:
Output: ![]() self-stretchThis class is used to position the elements to fit the container. Syntax: <element class="self-stretch">...</element> Example:
Output: ![]() |
Reffered: https://www.geeksforgeeks.org
Tailwind CSS |
Related |
---|
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |