![]() |
This class accepts a lot of values in tailwind CSS. It is the alternative to the CSS Align Items property. This class is used to set the alignment of items inside the flexible container or in the given window. It aligns the flex Items across the axis. The align-self class is used to override the align-items class. Align Items Classes:
items-startItems will be positioned at the beginning of the container. Syntax: <element class="items-start">...</element> Example:
Output: ![]() items-endItems will be positioned to the end of the container. Syntax: <element class="items-end">...</element>
Example:
Output: ![]() items-centerThe position of items should be the center of the container vertically. Syntax: <element class="items-center">...</element> Example: >
Output: ![]() items-baselineItems will be positioned to the baseline of the container. Syntax: <element class="items-baseline">...</element> Example:
Output: ![]() items-stretchItems are stretched to fit the container and it is the default value. Syntax: <element class="items-stretch">...</element> Example:
Output: ![]() |
Reffered: https://www.geeksforgeeks.org
Tailwind CSS |
Related |
---|
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |