Search results
Add horizontal space between children. Use the space-x-* utilities to control the horizontal space between elements.
10 cze 2024 · As you can see in the code snippet below, I have tried all 6 of Tailwind's justify and align content, items, and self properties as well as flex justify-between on the parent and still not managing...
Space between. Use justify-between to justify items along the container’s main axis such that there is an equal amount of space between each item:
Tailwind Space Between is a powerful property that allows you and other designers to easily add equal spacing between multiple elements without the need for custom CSS. In this article, we’ll explore what Tailwind Space Between is, how it works, and how you can use it in your websites.
26 lip 2022 · To add spacing between the elements just add “justify-between” on the parent div as shown on the code below. It adds space between the elements and can be used for multiple elements.
By default, Tailwind’s gap scale uses the default spacing scale. You can customize your spacing scale by editing theme.spacing or theme.extend.spacing in your tailwind.config.js file.
If you'd like to customize your values for space between, padding, margin, width, and height all at once, use the theme.spacing section of your tailwind.config.js file. // tailwind.config.js module.exports = { theme: { spacing: { + sm: '8px', + md: '16px', + lg: '24px', + xl: '48px', } } }