Small screen on both mobile and desktop view

  • Sarmad Larik
    Asked on July 8, 2022 at 11:45 AM

    Hi. I have added the css code as instructed above. I am getting the small screen version both on the Desktop and on the Mobile preview. Please let me know what I am doing wrong here:
    Link:
    Code:
    @media screen and (max-width:480px){
    #list {
    width: 100%;
    border-collapse: collapse;
    }
    #list tbody:first-child > tr > td {
    display: block;
    padding: 6px 1px;
    }
    #list tbody:first-child > tr:first-child {
    display: none;
    }
    #list tbody:first-child > tr + tr + tr {
    border-top: 1px solid #ccc;
    }
    #list > tbody:first-child tr td.col1 {
    padding-top: 20px;
    }
    .buttonsColumn {
    text-align: right;
    }
    .mobileColumnName {
    display: block;
    padding-bottom: 4px;
    box-sizing: border-box;
    }
    .mobileColumnName + input, .mobileColumnName + textarea, .mobileColumnName + select, .mobileColumnName + .radio-container, .mobileColumnName + .checkbox-container, .mobileColumnName + .dateContainer, .stepper-wrap input.stepper {
    width: 100%;
    display: block;
    box-sizing: border-box;
    box-shadow: none;
    max-width: 320px;
    }
    input, select {
    padding: 5px 5px !important;
    }
    .checkbox-container, .radio-container {
    column-width: 240px;
    max-width: 500px !important;
    }
    .checkbox, .radio {
    display: flex;
    flex-direction: row;
    align-items: start;
    }
    .checkbox input, .radio input {
    margin-top: 2px;
    }
    }

  • Lesther JotForm Support
    Replied on July 8, 2022 at 12:48 PM

    Hi Sarmad,

    Thanks for reaching out to Jotform Support. I understand that you're getting a small screen on both mobile and desktop views for your form. Kindly share the form URL and the website URL as well if it is embedded in a website. Share a screenshot as well in your response to help us understand better what is going on.

    Once we hear back from you, we'll be able to help you with this.