Apply divide in the center of elements when a gap is specified #19370
Kashi-Aida
started this conversation in
Ideas
Replies: 1 comment
-
|
This is currently fairly challenging to accomplish with regular CSS. Rather, you'd need to use some sort of padding with parent elements and such instead of truly use If one must use As such, you'd be better off for now using some kind of padding system: https://play.tailwindcss.com/cjLen6zKXv |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when you use the
divideandgapclasses together, you will see that the border added by divide will always hug the prior element (as seen in the image when you apply agap-[SOMETHING]). Instead, it makes much more sense for the divide to apply in the center between the two objects.For example,
You will see the border will hug the first element. Currently, you have to either manually adjust paddings or manually adjust borders to get the desired result, but it makes so much more sense from a TailwindCSS theming perspective to be able to use both divide and gap simultaneously, with the divide being placed in the middle of the two elements.
Do you know if this is something that can be added?
Beta Was this translation helpful? Give feedback.
All reactions