Hello Gliders!
Is there a way to make chips in choice component the same width with CSS? Or any other way to make it look better?
Hello Gliders!
Is there a way to make chips in choice component the same width with CSS? Or any other way to make it look better?
Custom class name: adjusted-choice.
Code:
.adjusted-choice li {
width: 60px;
justify-content: center;
}
Please try this and let me know if it works for you. Adjust the width as needed.
This is beautiful, thank you!
I took it a bit further and made the elements centered:
.adjusted-choice li {
width: 60px !important;
justify-content: center !important;
text-align: center !important;
margin: 5px auto !important;
}
Just a note: Was the !important needed for each line?
Honestly, I donβt know. Claude did it and it works)
@ThinhDinh when playing with Glide CSS classes, I always add the !important, because sometimes, the style is added inline from JavaScript in Glide, making custom CSS classes useless until you add the !important keyword.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.