Skip to content

Instantly share code, notes, and snippets.

@unwiredtech
Created September 21, 2018 07:48
Show Gist options
  • Save unwiredtech/6b5c93f0b724b46d50976d409d7cc647 to your computer and use it in GitHub Desktop.
Save unwiredtech/6b5c93f0b724b46d50976d409d7cc647 to your computer and use it in GitHub Desktop.
Contact form 7 - 2 column
.cf-wrapper{
position: relative;
}
#left-input {
width: 47%;
float: left;
margin-right:6%;
}
#right-input {
width: 47%;
float: left;
}
.clearfix:after {
content:"\0020";
display:block;
height:0;
clear:both;
visibility:hidden;
overflow:hidden;
margin-bottom:10px;
}
.clearfix {
display:block;
}
@media screen and (max-width: 576px){
#left-input {
width: 100%;
margin-right: 0;
}
#right-input{
width: 100%;
margin-right: 0;
}
}
/*--- 2 Column Form Styles End ---*/
<div class="clearfix">
<div id="left">
First name [text first-name] <br/>
Last Name[text last-name] <br/>
How Did You Find Us? [text text-find-us]
</div>
<div id="right">
Email [email* your-email] <br/>
Phone [text your-phone]
</div>
</div>
Subject [text* your-subject] <br/>
Message [textarea* your-message] <br/>
[submit "Send"]
<div class="cf-wrapper">
<div class="clearfix">
<div id="left-input">
<label> Full Name(required)
[text* your-name] </label>
</div>
<div class="right-input">
<label>Prefered Time To Contact You
[text* prefered-time] </label>
</div>
</div>
<div class="clearfix">
<div id="left-input">
<label> Your Email
[email* your-email] </label>
</div>
<div class="right-input">
<label>Telephone &bull; Mobile
[tel* telephone-mobile]</label>
</div>
</div>
<div class="clearfix">
<div class="full-input">
<label> Message &bull; Inquiry
[textarea your-message] </label>
[submit "Send"]
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment