WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
different fields in the same row (2 posts)

  1. lkdstudio
    Member
    Posted 6 months ago #

    Good morning i have this field:

    Adulti: [number* your-number min:10 max:99 step:1 class:required "0"]
    Bambini: [number* your-number min:10 max:99 step:1 class:required "0"]
    Animali: [number* your-number min:10 max:99 step:1 class:required "0"]

    Like this every field are in a different rows....i would like to have these three fields in the same row.

    How i can make it?

    Thanks

    dt

    http://wordpress.org/plugins/contact-form-7/

  2. buzztone
    Member
    Posted 5 months ago #

    I use Ordered List elements to display multiple fields on single line.

    HTML:

    <ol class="singleline">
    <li> <label for="cf7-phone">Phone</label> [text cf7-phone 15/]</li>
    <li> <label for="cf7-mobile">Mobile</label> [text cf7-mobile 15/]</li>

    Added to Form section of CF7 interface. tags are added for improved accessability.

    CSS:

    .wpcf7-form .singleline ol {
    list-style: none;
    margin: 0;
    }
    
    .wpcf7-form .singleline li{
    display: inline-block;
    float: left;
    margin-right: 10px;
    padding-right: 10px;
    }

    Added to Child Theme style.css

    May not work with HTML5 type Number which has only limited browser support - see http://www.wufoo.com/html5/types/7-number.html

Reply

You must log in to post.

About this Plugin

About this Topic

Tags