Skip to main content
Jan 20, 2015 9:05 PM UTC
Solved

Form creates line break between each label/field on mobile

Hi! I'm noticing an issue where my forms look perfect on desktop, but when switched to mobile each form label and form field gets broken into 2 lines instead of staying in 1 line as it normally does. Does anyone know how to fix this? 

Thanks,
Elaine
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Casey_Grimes2
Casey_Grimes2Accepted solution
Level 10
Jan 21, 2015 6:54 PM UTC
There are some specific media queries called in forms2.css that handle this behavior; simply add your own media queries to override Marketo's default behavior.

5 replies

Tim_Langlois1
Level 4
Jan 21, 2015 5:54 AM UTC
Hi Elaine,

It's hard to say without seeing it, but edit your form and try changing the label position  to be above instead of left in your form settings. (Form Settings > Label Position field > select Above). If you already have labels above, you may need to reduce your form field width. 
Translate
Jan 21, 2015 7:28 AM UTC
Hi Elaine

I undarstand your issue.
I try to fix it, but not yet.
I think it related to forms2.js and browser's user agent.
The issue is raised at iPhone and not raised at iPad.
See below

iPhone6 plus with iOS8.1


iPad with iOS8.1
Translate
Jan 21, 2015 5:38 PM UTC
Takehiro, that's so interesting! Please let me know if you come up with a solution. I've tried fiddling around with field label and input margin, padding and width and nothing did the trick. Thanks! 
Translate
Casey_Grimes2
Casey_Grimes2Accepted solution
Level 10
Jan 21, 2015 6:54 PM UTC
There are some specific media queries called in forms2.css that handle this behavior; simply add your own media queries to override Marketo's default behavior.
Translate
Jan 21, 2015 8:09 PM UTC
Thanks Courtney! That solved it! 
 
Translate