-
Ana Lucia Cruz RuizAsked on January 27, 2023 at 4:25 PM
Hi, I have list that includes text, a checkbox, and then text again. How can I control the width of these three elements? Can you share the CSS code? Thank you!
-
Lorenz JotForm SupportReplied on January 27, 2023 at 10:25 PM
Hello Ana,
Thanks for reaching out to Jotform. Please share with us the form and the fields you are referring to so we can check? Also, may we know how you want to fit/display the fields in your form? You've mentioned that you want to control the width of those elements, do you have a particular width size in mind, so we can use them on the CSS code we may share to you in order to achieve your requirement.
Once we hear back from you, we'll be able to help you with this.
-
acruzruizReplied on January 29, 2023 at 11:43 AM
Hi Lorenz,
I have added an image of the form elements I would like to modify.
Ideally, I would like to have them all on the same line. Space could be saved by adjusting the amount of space the checkbox element takes + reducing the "Link" text box.
-
Amin JotForm SupportReplied on January 29, 2023 at 2:09 PM
Hello Ana,
Thanks for reaching out to Jotform Support. Please inject the following CSS code into your widget:
.col1, .col2, .col3, .col4{
min-width: 40px !important;
}
Result:
Let us know if you have any other questions.
-
acruzruizReplied on January 30, 2023 at 4:29 AM
That works thank you! Another question: How can I set a specific length for the text fields? For instance, what if I wanted the "Title" field to be slightly wider than the rest?
Thanks in advance,
Ana
-
CJ_GReplied on January 30, 2023 at 5:24 AM
Hello Ana,
Thanks for your response. To change the width of the Title field inside the configurable list widget to make it slighter wider than the other fields, please replace the code provided by my colleague with the CSS code below:
.col3{
min-width: 200px !important;
}
.col1, .col2, .col4{
min-width: 40px !important;
}
Result:
Give it a try and let us know if you need help.