You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to align a text in collapse in the center, but chevron arrow takes some space and title is set a little to the right from the center. Is it possible to make arrow have a absolute position and text to be exactly in the center?
<divtabindex="0" class="collapse-arrow collapse m-5 border border-base-300 bg-base-100 text-center max-w-128"><divclass="collapse-title font-semibold bg-red-400">
Middle
</div><divclass="collapse-content text-sm">Click the "Sign Up" button in the top right corner and follow the registration process.</div></div>
I tried pl-X, but it only works if the title is not dynamic (like comming from backend data).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to align a text in collapse in the center, but chevron arrow takes some space and title is set a little to the right from the center. Is it possible to make arrow have a absolute position and text to be exactly in the center?
https://play.tailwindcss.com/L2yalFmJcY
I tried
pl-X
, but it only works if the title is not dynamic (like comming from backend data).Beta Was this translation helpful? Give feedback.
All reactions