-
Aida Nadhirah Ahmad ShukriAsked on February 9, 2024 at 9:51 AM
How to left aligned the description in Card layout for mobile view?
-
Jefferson JotForm SupportReplied on February 9, 2024 at 10:10 AM
Hi Aida,
Thanks for reaching out to Jotform Support. I understand the issue, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.
-
Jefferson JotForm SupportReplied on February 9, 2024 at 10:45 AM
Hi Aida,
Thanks for reaching out to Jotform Support. If I understand your concern correctly, you would like to left-align the fields in mobile view. Yes, you can do that by injecting custom CSS code into your form. Let me show you how:
1. Open your Form Builder and go to Build.
2. Click on the Paint Roller icon.
3. Under the Form Designer, go to Styles tab.
4. Scroll down a little bit until you see the Inject Custom CSS area.
Copy the following CSS code inside the Inject Custom CSS area:
.form-all {
width : 100% !important;
}
@media screen and (max-width: 480px){
.form-input, .form-input-wide, .form-textarea, .form-textbox, .form-dropdown {
max-width : 100% !important;
width : auto !important;
}
label + div {
float : right !important;
}
}
That's it! Test your form and see if it left-align the fields in your form.
You can also check out this guide on How to Inject Custom CSS Codes.
Give it a try and let us know how it goes.