Header with header logo being cut off on mobile devices

  • PAL_Connie
    Asked on March 14, 2017 at 2:15 PM

    Hi

    I added header on page 1, but when viewing on mobile, it was cut out. I think it's not mobile responsive. Can you please help. 

    Also the words "Email" and "Web" should show in the new row. 

     

    Thanks

    Connie

    Jotform Thread 1091368 Screenshot
  • Mike_G JotForm Support
    Replied on March 14, 2017 at 3:56 PM

    It seems that adding a logo in the header would not have the header texts (main and sub) to appear in a separate line.

    To fix the issue, you can add the following CSS codes below to your form:

    @media only screen and (max-width: 480px) {

      .form-header-group.hasImage>.header-text{

        display: block !important;

      }

      .form-header-group.hasImage>.header-logo{

        display: block !important;

      }

    }

    To learn how you can inject CSS codes to your form, please see this guide: How-to-Inject-Custom-CSS-Codes

    Adding the codes will have the header texts (main and sub) placed under the logo on mobile devices.

    Header with header logo being cut off on mobile devices Image 1 Screenshot 40

    If you want to have the logo and the header texts (main and sub) aligned to the right, you can add the CSS codes below in addition to the CSS codes above.

    @media only screen and (max-width: 480px) {

      .form-header-group.hasImage>.header-logo {

        text-align: right !important;

      }

      .form-header-group.hasImage>.header-logo img {

        margin-right: 0px !important;

       }

    }

    Header with header logo being cut off on mobile devices Image 2 Screenshot 51

    However, if you want it aligned to the left you can add the CSS codes below instead.

    @media only screen and (max-width: 480px) {

    .form-header-group.hasImage>.header-text {

        display: block !important;

        text-align: left !important;

    }

    Header with header logo being cut off on mobile devices Image 3 Screenshot 62

    I hope this helps. If you have any further questions regarding this, please feel free to contact us again anytime.

    Thank you.

  • PAL_Connie
    Replied on March 14, 2017 at 6:46 PM
    Many thanks. 😊
    ...