-
jmcneilcrbcAsked on November 23, 2021 at 7:22 PM
Hello,
I have a configurable list in my form. The first column is very tight and there appears to be plenty of room to expand the width of the list. I've tried messing around with the CSS coding but I haven't figured out how to space it out better. Here's a screenshot for reference. Is it possible to adjust the list so it's more evenly spaced out width-wise?
-
Tommaso_FReplied on November 24, 2021 at 3:51 AM
Hello there,
Allow me some time to check and we will be back to you.
Regards. -
Tommaso_FReplied on November 24, 2021 at 4:25 AM
Hello there,
Could you please adjust padding in the CSS code you already added?
-
jmcneilcrbcReplied on November 24, 2021 at 1:32 PM
Hi Tommaso,
Thank you for the response but unfortunately this fix adjusted the space between rows, not columns. I've annotated the screenshot to hopefully provide a bit more clarity. As you can see, the spacing between column 1 and column 2 is razor thin.
Also, the space for the configurable lists between the label and the list is very tight. Is there a way to push the list to start on the next line (under the label) or to add more padding?
Thank you!
~Jennifer -
Kenneth JotForm SupportReplied on November 24, 2021 at 4:45 PM
Hi there,
After customizing the form, here is how it looks:
If that is acceptable, kindly insert this code into your Configurable List Widget Custom CSS Area:
div#cid_22 {
float: left !important;
display: contents;
}
Let us know if you need further assistance.
Best.
-
jmcneilcrbcReplied on November 24, 2021 at 8:20 PM
Hi Kenneth,
That looks to be the fix I need! Apologies but where should I put the CSS code? I've tried adding to the end of the existing CSS code area for the configurable list but it's not doing anything.
Thank you!
~Jennifer
-
Tommaso_FReplied on November 25, 2021 at 2:32 AM
Hey Jennifer,
Allow me to reach Kenneth in order to check the code.
Meanwhile, change the field label to top -
Kenneth JotForm SupportReplied on November 25, 2021 at 5:19 AM
Hi there,
I double-checked, and have applied the mentioned code into your Inject Custom CSS Area instead of the Configurable Lists Widget CSS Area, now it is applied.
Here is how: https://www.jotform.com/help/117-how-to-inject-custom-css-codes/.
Let us know if you need further assistance.
Best.
-
jmcneilcrbcReplied on November 25, 2021 at 5:22 PM
Thank you so much to you both, Tommaso and Kenneth! One more spacing question now that this is coming together. Is there a way to push the input fields for this spinner, map, file upload, and "additional comments" text area to align with the configurable list input fields?
-
John Support Team LeadReplied on November 25, 2021 at 5:42 PM
Please try adding these custom codes below to your form:
#label_61,#label_20,#label_41,#label_15 {
width: 38%;
}
#cid_61,#cid_20,#cid_15,#cid_41 {
width: 50%;
}
This will be the result: https://form.jotform.com/213287042660957
GUIDE: https://www.jotform.com/help/117-how-to-inject-custom-css-codes/
-
jmcneilcrbcReplied on November 25, 2021 at 5:51 PM
Hi JohnRex,
I tried adding the CSS code to the Custom CSS section of the form designer but it didn't do anything. Should I be adding it somewhere else?
Thank you!
~Jennifer -
Jovanne JotForm SupportReplied on November 25, 2021 at 5:59 PM
Hi,
As per checking you have not added the CSS code to your form. Please try adding them again and clear your form cache to refresh your forms.
GUIDE: how-to-clear-your-form-cache
You may also try adding !important to your code if it still does not work. The code you need to insert will look like this:
#label_61,#label_20,#label_41,#label_15 {
width: 38% !important;
}
#cid_61,#cid_20,#cid_15,#cid_41 {
width: 50% !important;
}
Please give it a try and let us know if you need further concerns.
Thank you.
-
jmcneilcrbcReplied on November 29, 2021 at 6:11 PM
Hi Jovanne_A,
I actually did insert the CSS code and when it did not work, I removed it to avoid confusion. I attempted the additional steps you mentioned, cleared the form cache and added the "!important", but it still did not result in any changes to the form. I have removed the additional code to avoid confusion since it is not currently working and am open to additional suggestions.
Thank you,
~Jennifer -
Jovanne JotForm SupportReplied on November 29, 2021 at 7:29 PM
Hi Jennifer,
Could you please try replacing your entire CSS code with this one?
iframe[src*="configurableList"] {
width : 100% !important;
}
#customFieldFrame_22 {
width : 100% !important;
}
#customFieldFrame_33 {
width : 400px !important;
}
#customFieldFrame_34 {
width : 400px !important;
}
#customFieldFrame_37 {
width : 400px !important;
}
.form-all:before {
background-size : contain;
}
div#cid_22 {
display: contents !important;
}
.form-label.form-label-auto {
display: inline-block;
float: left;
text-align: left;
}
label#label_61,#label_20,label#label_41,label#label_15 {
width: 38%;
}
div#cid_61,div#cid_20,div#cid_15,#cid_41 {
width: 50%;
}
Please note that some of this CSS code will only work on the live form. Please give it a try and let us know how it goes.
-
jmcneilcrbcReplied on November 29, 2021 at 7:44 PM
Hi Jovanne_A,
Thank you so much, that did the trick! I always check the updates on the live form, not just the preview, so I'm not sure what caused the disconnect. The form looks exactly how I want it to now though, so thank you!
-
jmcneilcrbcReplied on November 29, 2021 at 8:42 PM
Hmm, I just noticed one of the lines doesn't line up with everything else. Is there a way to adjust it? Here's a screenshot for reference:
-
Tommaso_FReplied on November 30, 2021 at 2:07 AM
Hello there,
We're unable to find any issue with recent code suggested.
Could you please elaborate more? -
jmcneilcrbcReplied on November 30, 2021 at 12:36 PM
Hi Tommaso,
You are looking at an old version of the form, please see the live version here.Thank you,
~Jennifer -
Ariel JotForm SupportReplied on November 30, 2021 at 2:41 PM
Hi Jennifer,
I have moved your other concern to a new support ticket so that we can address it separately: https://www.jotform.com/answers/3553785