iPhone Landscape Orientation

  • sergeantcarter
    Asked on October 8, 2018 at 2:34 PM

    So I still cannot figure out how to get the phone and email fields to line up on the same line with the correct margin and padding, similar to the first and last name fields above them.

    Also, I cannot seem to target the sublabels so that they are the same font size as the first and last name fields.

    Desktop view and iPad portrait and landscape orientation work correctly.

    Here's a screenshot from my iPhone 6 in landscape orientation...

    1539023586iPhone Landscape Screenshot 10

    Jotform Thread 1603729 Screenshot
  • Richie JotForm Support
    Replied on October 8, 2018 at 4:35 PM

    I have checked your form and it seems to be working correctly at my end.

    iPhone Landscape Orientation Image 1 Screenshot 20

    May we know which part/field in the form do you want to adjust?


  • Richie JotForm Support
    Replied on October 8, 2018 at 4:41 PM

    My apologies, I may have not viewed the website correctly in landscape mode.

    Kindly try adding these custom CSS in your form.

    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px)
    and (orientation : landscape) {

    .form-sub-label{
    font-size:15px;/*kindly adjust to your desired size*/

    }

    }

    Let us know how it goes.

    Thank you.

  • sergeantcarter
    Replied on October 9, 2018 at 12:46 AM

     All that does is just make the sub labels bigger in iPhone portrait orientation and match the sub lablel font sizes in iPhone landscape. So it actually makes it worse.

    What is the font size for the sub labels for the first name and last name fields? The DevTools shows the font size for the phone and email fields to be...

    .form-sub-label {
       

    font-size: 0.786em;

    }

    It seems that this should be the font size for the other fields sub labels.

    Also, my original question included how to make the phone and email fields look like the first name and last name fields (on the same line...inline).

  • Victoria_K
    Replied on October 9, 2018 at 5:10 AM

    Hello,

    I have added some css to your form and it seems to have the correct layout at lightbox in landscape now:

    153907615712 08 18 Screenshot 10

    153907616912 08 00 Screenshot 21

    Please check your form again and let us know if you need any further assistance.

  • sergeantcarter
    Replied on October 9, 2018 at 10:48 AM

     Thank you Victoria, that seemed to work! :-)

    Any chance I could get the phone and email fields to look like the first name and last name fields above them?

  • Victoria_K
    Replied on October 9, 2018 at 11:51 AM

    Glad to know that this issue is now resolved. 

    As far as I understand, you want to place email and phone fields on 1 line. 

    Let me some time to pick the correct codes for you. I will update you via this thread. 

  • Victoria_K
    Replied on October 9, 2018 at 12:23 PM

    Please try the following code:

    .form-line-column {

      width: 50% !important;

    }

    and remove this part 

    153910216719 21 21 Screenshot 10

    This should work this way:

    153910219119 21 58 Screenshot 21

    Let us know how it goes. 

  • sergeantcarter
    Replied on October 9, 2018 at 1:46 PM

     Okay, you're a keeper! That was exactly what I was looking for.

    Thank you Victoria!

    I'll leave you guys alone now (for awhile).

  • Ray Moore
    Replied on October 9, 2018 at 2:25 PM

    Oops, I almost forgot...

    I put the following code in the custom css to show the pink background on error.

    .form-line-error {
      background-color: #FFF4F4 !important;
    }

    For some reason there is a white line below the "Your Email" field. I guess the div isn't tall enough. I've tried different css to fix it but can't seem to figure it out.

    It is the FVHL Meet Our Team form.

    1539109474FVHL Meet Our Team Screenshot 10

    This may need to go on a different thread. Not sure.

    Any advice would be appreciated.

  • Richie JotForm Support
    Replied on October 9, 2018 at 2:39 PM

    I have moved your question to a new thread.

    Kindly follow this link https://www.jotform.com/answers/1605181

    Thank you.