Positioning Fields next to each other….
-
Hi, I am trying to get the first two input fields next to each other on the same row and I’m not having much success. The best I’ve been able to get is next to each other, but the form inserts a </br> between the two input fields so they are not inline.
Same <DIV> but not inline.
<div id="comment-input"> <span class="wpcf7-form-control-wrap form1-firstname"> <input ....> </span> <span class="wpcf7-form-control-wrap form1-email"> <input ....> </span> </div>
Then I trying two separate DIVs floating left and right and they just end up on two separate rows…
<div id="wpcf7-f17-p2-o1" class="wpcf7"> <form class="wpcf7-form" novalidate="novalidate" method="post" action="/wp/sample-page/#wpcf7-f17-p2-o1"> <div style="display: none;"> <input type="hidden" value="17" name="_wpcf7"> <input type="hidden" value="3.4" name="_wpcf7_version"> <input type="hidden" value="wpcf7-f17-p2-o1" name="_wpcf7_unit_tag"> <input type="hidden" value="ba7ea094aa" name="_wpnonce"> </div> <style> #comment-textarea textarea { width: 430px; height: 105px;}</p> </style> <div id="comment-input" style="float:left;"> <span class="wpcf7-form-control-wrap form1-firstname"> </div> <div id="comment-input" style="float:right;"> <span class="wpcf7-form-control-wrap form1-email"> <input id="email" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email input-email" type="email" placeholder="Email (required)" aria-required="true" maxlength="50" size="200" value="" name="form1-email"> </span> </div> <div id="comment-textarea"> <span class="wpcf7-form-control-wrap id:comment"> <textarea class="wpcf7-form-control wpcf7-textarea textarea-comment" placeholder="Comment..." maxlength="500" rows="10" cols="40" name="id:comment"></textarea> </span> </div> <p></p> <div id="comment-submit"> <p> <input id="1234" class="wpcf7-form-control wpcf7-submit comment-submit small button green" type="submit" value="Send"> <img class="ajax-loader" src="https://www.aa.local/wp/wp-content/plugins/contact-form-7/images/ajax-loader.gif" alt="Sending ..." style="visibility: hidden;"> </p> </div> <div class="wpcf7-response-output wpcf7-display-none"></div>
Any help provided or points would be greatly received.
Thank you
Neville
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Positioning Fields next to each other….’ is closed to new replies.