Geo-Complete widget: Stop dynamic resizing of width

  • j21frye
    Asked on May 23, 2018 at 7:43 AM

    My Geo-Complete field keeps shrinking when I enter data and the full address gets cut off. Is there a way to fix this via CSS?

    1527075804address jotform Screenshot 10

  • aubreybourke
    Replied on May 23, 2018 at 10:13 AM

    Replace the CSS for your geo-complete widget with this:

    #geocomplete {

    min-width: 500px !important;

    max-width: 500px !important;

    height: 20px;

    border: 1px solid rgb(204, 204, 204);

    background-color: #fafafa;

    font-size: 17px;

    }

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

    #geocomplete {

    width: 90% !important;

    }

    }

    How-to-Inject-CSS-Codes-to-Widgets


    Here we specify the field to be 500 pixels wide on desktop view.

    1527084517k3ays Screenshot 10


    And 90% wide on mobile devices (under 400 pixels wide).

    15270845637135m Screenshot 21

  • j21frye
    Replied on May 23, 2018 at 12:43 PM
    Thanks so much! Totally worked!
    ...