[Support request] Horizontal contact form 7 responsive issue

Home Forums Support [Support request] Horizontal contact form 7 responsive issue

Home Forums Support Horizontal contact form 7 responsive issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2265069
    Nave

    Hello guys,

    I’m trying to implement contact form 7 horizontaly but for some reason it’s not responsive.
    I use generate blocks + generate press and also Ive added this custom css to help do the job:
    /* CSS for contact form 7 */

    .whole-form {
    display: flex;
    }
    .field-space {
    padding-right: 10px;
    }
    .submit-button {
    padding: 25px 10px;
    }


    @media
    only screen and (max-width: 600px) {
    .whole-form {
    flex-direction: column;
    }
    .submit-button {
    padding: 15px 0px;
    }
    .field-space {
    margin: 10px 0px;
    }
    }

    would love some help thanks!

    #2265071
    Nave

    main issue is that contact form wont shrink when the screen is getting smaller.

    #2265287
    Fernando
    Customer Support

    Hi Nave,

    To clarify, by shrinking, are you referring to making the fields smaller in size or for just to align them in one column?

    If you’re wanting to align them in one column at max-width of 600px and have it wrap on bigger screens, I altered your code a bit:

    .whole-form {
        display: flex;
        flex-wrap: wrap;
    }
    
    .field-space {
        padding-right: 10px;
    }
    
    .submit-button {
        padding: 25px 10px;
    }
    
    @media (max-width: 600px) {
        .whole-form {
            flex-direction: column;
        }
    
        .submit-button {
            padding: 15px 0px;
        }
    
        .field-space {
            margin: 10px 0px;
        }
    }

    The default mobile menu breakpoint is 768 px though.

    Kindly let us know.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.