Sling Academy
Home/Tailwind CSS/Page 4

Tailwind CSS

Tailwind CSS: Align an element to the left/right of its parent

Updated: Dec 01, 2023
In Tailwind CSS, you can align a child element to the left or right side of its parent div by using the mr-auto or ml-auto utility class, respectively (we also add the flex utility to the parent). This technique works well in both these......
← PreviousPage 4 of 4