Fix button length
Hi dear ones!
Is there a way (maybe css) to fix the length of a button so that it always stays the same width, even if the text changes?
I need this for a multilingual solution where the text changes depending on the language. However, the button should remain the same width in every language.
Best regards
Marc
0
-
Hi Marc,
Thank you for contacting us.
Please try this:
.mybutton {
min-width: 180px;
}
/* Tablet */
@media (max-width: 1024px) {
.mybutton {
min-width: 150px;
}
}
/* Mobile */
@media (max-width: 768px) {
.mybutton {
min-width: 120px;
}
}
You may adjust the min-width as needed.
0 -
Hi Ariel,
works great.
Thanx!!
0
Please sign in to leave a comment.
Comments
2 comments