Mailchimp Custom Form CSS - html

I have created a MailChimp form for the footer of my website, I have modified the CSS with a bit of help to get it looking how it does now. I've become stuck now I attached two images the first one is how I want the form to look and the second one is what the current code makes it look like.
Some help to point me in the right direction would be greatly appreciated.
<div class="row">
<div class="mc-field-group col-lg-6">
<label for="mce-FNAME">First Name:<span class="asterisk"></span></label>
<input type="text" value="" name="FNAME" class="input required" id="mce-FNAME">
</div>
<div class="mc-field-group col-lg-6">
<label for="mce-LNAME">Last Name:<span class="asterisk"></span></label>
<input type="text" value="" name="LNAME" class="input required" id="mce-LNAME">
</div>
</div><!--row-->
<div class="row">
<div class="mc-field-group col-lg-8">
<label class="label" for="mce-EMAIL">Email Address<span class="asterisk"></span></label>
<input type="email" value="" name="EMAIL" class="required input email" id="mce-EMAIL">
</div>
<div class="col-lg-4">
<input type="submit" value="Submit" name="subscribe" id="mc-embedded-subscribe" class="button">
</div>
</div><!--row—>
.mc4wp-form .input {
margin: 10px 0;
float: left;
width: 100%;
line-height: 25px;
border: 1px solid #000;
border-radius: 10px;
}
.mc4wp-form .input:focus,
.mc4wp-form .button:focus {
outline: none;
}
.mc4wp-form .button {
color:#ffffff;
margin-top: 34px;
display: block;
width: 100%;
background: #2451f4;
height: 30px;
font-size: 15px;
border-radius: 10px;
outline: none;
-webkit-transition: all 0.35s ease;
-moz-transition: all 0.35s ease;
-o-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.mc4wp-form .button:hover {
cursor: pointer;
background: #000;
color: #fff;
}
.mc4wp-form {
width: 100%;
max-width: 470px;
}
.mc4wp-form .mc-field-group label {
display: block;
font-size: 22px;
}
.mc4wp-form .row {
display: block;
float: left;
width: 100%;
}
.mc4wp-form .col-lg-6,
.mc4wp-form .col-lg-8,
.mc4wp-form .col-lg-4 {
float: left;
padding: 12px;
box-sizing: border-box;
}
.mc4wp-form .col-lg-6 {
width: 50%;
}
.mc4wp-form .col-lg-8 {
width: 80%;
}
.mc4wp-form .col-lg-4 {
width: 20%;
}

The "Email Address" label has a class of "label" while the other labels do not. Simply delete this class and it will look like the other two.
Find this line:
<label for="mce-EMAIL" class="label">Email Address:</label>
Change it to this:
<label for="mce-EMAIL">Email Address:</label>
Where to find it:
<form action="https://www.kayakinguk.com/" method="post"><div class="mc-field-group col-lg-6">
<label for="mce-FNAME">First Name:</label>
<input type="text" id="mce-FNAME" class="input required" name="FNAME" value="">
</div>
<div class="mc-field-group col-lg-6">
<label for="mce-LNAME">Last Name:</label>
<input type="text" id="mce-LNAME" class="input required" name="LNAME" value="">
</div>
<div class="mc-field-group col-lg-8">
<label for="mce-EMAIL" class="label">Email Address:</label>
<input type="email" id="mce-EMAIL" class="required input email" name="EMAIL" value="">
</div>
The .label class that's changing its background color and font properties is a preset found in bootstrap.css on line 5494 in case you're curious.

Related

Input doesn't work when "required" and "pattern" attribute is applied

Can you help me with this, I don't know what wrong. Input "Fullname" has applied required is ok.
(1) When I apply "required", "pattern" on input "Mail", the label doesn't hold the position as it's focus.
(2)Apply "pattern", don't apply "required, the label doesn't hold the position as begin. I attach an image, you can see more clearly explanation img
https://codepen.io/quang-dang/pen/BOgBNM
<form class="wrapper">
<div class="field">
<input type="text" id="fullName" name="fullName" required>
<label for="fullName">Full Name(*)</label>
<span class="bar"></span>
</div>
<div class="field">
<input type="mail" id="mail" name="mail" pattern="[a-z0-9._%+-]+#[a-z0-9.-]+\.[a-z]{2,3}$" required>
<label for="mail">Email(*)</label>
<span class="bar"></span>
</div>
<div class="field">
<input type="text" id="phoneNumber" name="phoneNumber" pattern="[0-9]+">
<label for="phoneNumber">Phone number</label>
<span class="bar"></span>
</div>
<div class="field">
<input type="text" id="message" name="message">
<label for="message">Message</label>
<span class="bar"></span>
</div>
<button typy="sumbit">Submit</button>
</form>
/*
* LAYOUT
*/
body {
width: 100%;
height: 100%;
margin: 0;
}
.wrapper {
max-width: 800px;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
}
/*
* FIELD > INPUT
*/
.field {
position: relative;
max-width: 300px;
margin-bottom: 30px;
}
.field input,
.filed input:empty {
width: 100%;
border: none;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
outline: none;
padding: 6px 0;
transition: all 0.2s ease;
}
.field input:focus {
border-color: transparent;
}
.field label,
.field input:empty ~ label {
position: absolute;
top: 50%;
left: 5px;
font-size: 16px;
color: #999;
transform: translateY(-50%);
transition: all 0.2s ease;
}
.field input:focus ~ label,
.field input:valid ~ label {
top: 0px;
left: 0;
font-size: 12px;
color: #333;
}
/*
* FIELD > BAR
*/
.field .bar {
display: flex;
/*Start animation at center*/
justify-content: center;
}
.bar:before,
.bar:after {
content: "";
height: 2px;
width: 0;
background: #3498db;
transition: all 0.2s ease;
}
.field .bar:before {
left: 50%;
}
.filed .bar:after {
right: 50%;
}
.field input:focus ~ .bar:before,
.field input:focus ~ .bar:after {
width: 50%;
}
<form class="wrapper">
<div class="field">
<input type="text" id="fullName" name="fullName" required>
<label for="fullName">Full Name(*)</label>
<span class="bar"></span>
</div>
<div class="field">
<input type="text" id="Email" name="Email" required>
<label for="Email">Email(*)</label>
<span class="bar"></span>
</div>
<div class="field">
<input type="text" id="phoneNumber" name="phoneNumber" pattern="[0-9]+">
<label for="phoneNumber">Phone number</label>
<span class="bar"></span>
</div>
<div class="field">
<input type="text" id="message" name="message">
<label for="message">Message</label>
<span class="bar"></span>
</div>
<button typy="sumbit">Submit</button>
</form>

message box to show in right column

I want to design the responsive contact form where the layout is name, email, subject fields be in one column and message field be in the another column. I could not make that message field appear in another column though I have used the width as 50%. Here is the demo
http://jsbin.com/vuxojuqeve/edit?html,css,output
The code
#responsive-form {
max-width: 600px;
margin: 0 auto;
width: 100%;
}
.form-row {
width: 100%;
}
.form-row input {
margin: 10px 0;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
.button {
float: left;
background: #CA0002;
color: #fff;
text-transform: uppercase;
border: none;
padding: 8px 20px;
cursor: pointer;
}
input[type="text"],
textarea {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 3px;
box-sizing: border-box
}
.half-size {
width: 50%;
}
<div id="responsive-form" class="clearfix">
<div class="half-size">
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
</div>
<div class="half-size">
<div class="form-row">
<div class="column">
<textarea class="form-control" cols="40" rows="10"></textarea>
</div>
</div>
</div>
<div class="form-row">
<div class="column">
<input type="submit" name="name" class="button">
</div>
</div>
</div>
</div>
This is what I wanted with submit button on the left column
You need to set your containers to display:inline-block, as they are block level elements by default and won't allow others to be positioned beside them.
I'm using 45% because 50% + 50% is not usually 100% when using inline-blocks because of an issue with whitespace, there are some ways around it, I'll let you decide for yourself which hack to use...
#responsive-form {
max-width: 600px;
margin: 0 auto;
width: 100%;
}
.form-row {
width: 100%;
}
.form-row input {
margin: 10px 0;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
.button {
float: left;
background: #CA0002;
color: #fff;
text-transform: uppercase;
border: none;
padding: 8px 20px;
cursor: pointer;
}
input[type="text"],
textarea {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 3px;
box-sizing: border-box
}
.half-size {
width: 45%;
display:inline-block;
}
<div id="responsive-form" class="clearfix">
<div class="half-size">
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
<div class="form-row">
<div class="column">
<input type="text" name="name" class="form-control">
</div>
</div>
</div>
<div class="half-size">
<div class="form-row">
<div class="column">
<textarea class="form-control" cols="40" rows="10"></textarea>
</div>
</div>
</div>
<div class="form-row">
<div class="column">
<input type="submit" name="name" class="button">
</div>
</div>
</div>
</div>
If there are columns, use flexbox.
Inputs and textarea width unit is vw and e.g. min-width: 180px.
Example
body {
margin: 0;
}
::placeholder,
input[type="submit"] {
color: #BACEE7;
font-weight: bold;
}
.form {
display: flex;
justify-content: center;
padding: 15px;
}
.form input,
.form textarea {
min-width: 180px;
background: #F2F2F2;
border: 1px solid #ccc;
text-transform: uppercase;
border-radius: 3px;
text-align: center;
box-sizing: border-box;
}
.form>.inputs {
margin-right: 5px;
}
.form>.inputs>input {
width: 30vw;
display: block;
margin-bottom: 5px;
padding: 1.5vw;
}
.form>.inputs>input:last-child {
margin-bottom: 0 !important;
}
.form textarea {
width: 35vw;
padding-top: 80px;
display: block;
height: 100%;
}
.form input[type="submit"] {
background: #CA0002;
color: white;
border: none;
cursor: pointer;
}
<div class="form">
<div class="inputs">
<input type="text" name="first_name" placeholder="first name">
<input type="text" name="last_name" placeholder="last name">
<input type="email" name="email" placeholder="email">
<input type="text" name="organization" placeholder="organization">
<input type="tel" name="phone" placeholder="phone">
<input type="submit" name="submit">
</div>
<div class="textarea">
<textarea name="" id="" cols="30" placeholder="message"></textarea>
</div>
</div>

How can I create a responsive side by side form?

I'm looking for the best way to go about a side by side form.
I've done mine in a responsive grid which apparently isn't viable as I am using two separate form tags.
Here is what I've come up with so far.
http://jsfiddle.net/pentester/aFP68/
Any Help Would be greatly appreciated.
<div class="section group">
<div class="col span_1_of_2">
<div class="formwrap">
<form method="post" action="contact.php">
<input type="text" name="name" id="name" placeholder="Name" required />
<input type="text" name="company" id="company" placeholder="Company" required />
<input type="text" name="email" id="email" placeholder="Email" required />
<input type="text" name="phone" id="phone" placeholder="Phone Number" required />
<p class="submit">
<input id="submit" name="submit" type="submit" value="Send" />
</p>
</form>
</div>
</div>
<div class="col span_1_of_2">
<div class="formwrap">
<form method="post" action="contact.php">
<select name="new_or_upgrade" id="new_or_upgrade" placeholder="Type of website">
<option value="Type">Type of website</option>
<option value="normal">Normal</option>
<option value="cms">Content Management Site</option>
<option value="upgrade">E Commerce</option>
</select>
<textarea name="message" placeholder="Tell us about your project" required /></textarea>
</form>
</div>
</div>
/*Form*/
select{
width:100%;
padding:0.5em;
border:1px solid #F2F2F2;
margin-top: 0.5em;}
.formwrap {
margin: auto;
max-width: 70em;
padding: 0 0.5em;
}
.formwrap p {
font-family: sans;
font-weight: 100;
font-size: 1em;
margin: 0;
}
form {
clear: both;
float: left;
width: 100%;
margin: 0 auto;
}
input,
textarea {
padding: 10px;
border: 1px solid #EFEFEF;
width: 100%;
color: #000;
margin-top: 0.5em;
border-radius:3px;
}
textarea {
width: 100%;
height: 150px;
line-height: 18px;
}
input:focus,
textarea:focus {
border: 1px solid #21ABD3;
transition: all 0.2s ease;
}
form label {
margin-left: 1em;
color: #000;
}
.submit input {
background-color: #1D8FBB;
width: 6em;
color: #FFF;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
border: none;
float: left;
transition: none;
border-radius: 3px;
font-family:opensans
}
.submit input:hover {
background-color: #34A2CD;
transition: all 0.2s ease;
}
.submit input:active {
box-shadow: 0 0 3px rgba(51, 51, 51, 0.61) inset;
}
/* SECTIONS */
.section {
clear: both;
padding: 0px;
margin: 0px;
}
/* COLUMN SETUP */
.col {
display: block;
float: left;
margin: 1% 0 1% 1%;
}
.col:first-child {
margin-left: 0;
}
/* GROUPING */
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
zoom: 1; /* For IE 6/7 */
}
/* GRID OF TWO */
.span_2_of_2 {
width: 100%;
}
.span_1_of_2 {
width: 49.5%;
}
/* GO FULL WIDTH AT LESS THAN 600 PIXELS */
#media only screen and (max-width: 800px) {
.col {
margin: 0;
}
}
#media only screen and (max-width: 800px) {
.span_2_of_2 {
width: 100%;
}
.span_1_of_2 {
width: 100%;
}
}
#media only screen and (max-width: 600px) {
.block{
padding:0.5em 1em}
}
There are a lot of way to create responsive layout. For me, I would like to use Bootstrap.
http://jsfiddle.net/wrcuv/
Here is the example,
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
<div class="container">
<form method="post" action="contact.php" class="form">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<input type="text" name="name" id="name" placeholder="Name" class="form-control" required />
</div>
<div class="form-group">
<input type="text" name="company" id="company" placeholder="Company" class="form-control" required />
</div>
<div class="form-group">
<input type="text" name="email" id="email" placeholder="Email" class="form-control" required />
</div>
<div class="form-group">
<input type="text" name="phone" id="phone" placeholder="Phone Number" class="form-control" required />
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<select name="new_or_upgrade" id="new_or_upgrade" class="form-control" placeholder="Type of website">
<option value="Type">Type of website</option>
<option value="normal">Normal</option>
<option value="cms">Content Management Site</option>
<option value="upgrade">E Commerce</option>
</select>
</div>
<div class="form-group">
<textarea name="message" placeholder="Tell us about your project" class="form-control" required /></textarea>
</div>
</div>
</div>
<div class="row text-center">
<input id="submit" name="submit" type="submit" value="Send" class="btn btn-primary" />
</div>
</form>
</div>

Input forms not aligning correctly in Safari

I am currently working on a page Here
I am trying to style the form to be aligned as it is displayed in chrome.
I am sure my way of doing this is out of the park wrong but my styling is working in everything but safari and I cannot figure out why
This is the current code I am using....
<div>
<div>
<br />
<div class="required-notice">
<span class="required-star">*</span><span> = Required Field</span>
</div>
<div class="loan-form-body">
<div>
<span>First Name:</span><span class="required-star">*</span>
</div>
<div>
<input type="text" name="FirstName" id="firstname" class="validate required" style="width: 200px;" />
</div>
<div>
<span>Email Address:</span><span class="required-star">*</span>
</div>
<div>
<input type="text" name="EmailAddress" id="emailaddress" class="validate required" style="width: 200px;" />
</div>
<div>
<span>Address:</span><span class="required-star">*</span>
</div>
<div>
<input type="text" name="HomeAddress" id="HomeAddress" class="validate required" style="width: 430px;" />
</div>
<div>
<div>
<span style="text-align: left; position: absolute; margin-left: 40%; margin-top:-21%;">
Last Name:
<span class="required-star">*</span>
</span>
</div>
<div>
<input type="text" name="LastName" id="lastname" style="width: 200px; position: absolute; margin-left: 40%; margin-top: -18%;" />
</div>
<div style="position: absolute; margin-left: 40%; margin-top: -14%;">
Work Phone:
</div>
<div>
<input type="text" name="DaytimePhone" id="daytimephone" style="width: 200px; position: absolute; margin-left: 40%; margin-top: -10.7%;" />
</div>
</div>
<div class="submit">
<input type="submit" style="width: auto; outline: none; -webkit-appearance: none;" onclick="return validate();" class="button" data-form-type="submit" value="Get An Instant Report" />
</div>
Pardon the messy code.
I fixed your code a little and made some CSS, here's a FIDDLE
<form name="loan-form" class="loan-form" action="#">
<div class="required-notice">
<span class="required-star">*</span>= Required Field
</div>
<div class="loan-form-body">
<label>First Name:<span class="required-star">*</span></label>
<input type="text" name="FirstName" id="firstname" class="validate required" />
<label>Email Address:<span class="required-star">*</span></label>
<input type="text" name="EmailAddress" id="emailaddress" class="validate required" />
<label>Address:<span class="required-star">*</span></label>
<input type="text" name="HomeAddress" id="HomeAddress" class="validate required" />
<label>Last Name:<span class="required-star">*</span></label>
<input type="text" name="LastName" id="lastname" />
<label>Work Phone:</label>
<input type="text" name="DaytimePhone" id="daytimephone" />
<input type="submit" onclick="return validate();" class="button" data-form-type="submit" value="Get An Instant Report" />
</div>
</form>
.loan-form {
width: 400px;
padding: 10px;
font-family: Sans-serif;
font-size: 16px;
border: 1px solid #ddd;
}
.loan-form label {
float: left;
clear: left;
width: 150px;
}
.loan-form input[type="text"] {
float: left;
width: 200px;
margin: 0 0 12px;
padding: 2px 4px;
border: 1px solid #ddd;
outline: none;
transition: box-shadow 0.2s ease-in-out;
-moz-transition: box-shadow 0.2s ease-in-out;
-webkit-transition: box-shadow 0.2s ease-in-out;
}
.loan-form input[type="text"]:focus {
box-shadow: 0 0 3px 0 #333;
-moz-box-shadow: 0 0 3px 0 #333;
-webkit-box-shadow: 0 0 3px 0 #333;
}
.loan-form input[type="submit"] {
display: block;
width: 160px;
height: 26px;
margin: 0 auto;
}
.required-notice {
padding: 7px;
margin: 0 0 15px;
}
.required-star {
vertical-align: top;
margin: 0 3px;
font-size: 12px;
color: red;
}
just finish styling by you wish.

How to fit 15 fields into a 400px by 510px form

I'm currently dealing with a form that has many fields, and I am trying to fit them all nicely within a box that is 400px in height and 510px in width. Im pretty noobish when it comes to editing advanced CSS (this is advanced for me).
Would love it if someone could figure this one out for me! I'm not trying to get this done for me, but rather if someone did it or explained how to do it, it would really help me learn how to do it myself.
I do not have access to the html
I'm pulling the stylesheet from another server which I also do not have access to
I need 15 form fields to fit (neatly) within that 400x510px space
CSS:
#qw {
width: 100%;
height: 400px;
background-color: #transparent;
border-radius: 0 0 0px 0px;
padding: 0px;
font: 14px/20px sylfaen, garamond, 'urw palladio l', georgia, serif;
}
#qw #qw_header {
background-image:;
width: 100%;
height: 68px;
}
#qw label {
display: none;
}
#qw fieldset {
border: none;
margin-top: 0px;
padding-top: 0px;
padding-left: 8px;
}
#qw fieldset legend {
visibility: hidden;
}
#qw fieldset input, #qw fieldset select {
width: 93%;
border: 1px solid #bbb;
border-top-color: #777;
border-bottom-color: #ddd;
padding: 4px;
margin-bottom: 4px;
font-size: 16px;
font-family: helvetica, arial, sans-serif;
height: 18px;
}
#qw fieldset select {
height: 28px;
width: 100%;
}
#qw .qw_personal_header {
text-align: center;
}
#qw .qw_personal_header:before {
content:'You';
text-transform: uppercase;
font-size: 16px;
color: #000;
width: 100%;
}
#qw .qw_personal:after {
clear: both;
}
#qw .qw_vehicle_header {
text-align: center;
clear:both;
}
#qw .qw_vehicle_header:before {
clear: both;
font-size: 16px;
content:' Car';
text-transform: uppercase;
color: #000;
width: 100%;
}
#qw .qw_first_name, #qw .qw_last_name, #qw .qw_zip_code, #qw .qw_city, #qw .qw_state, #qw .qw_phone, #qw .qw_email {
float: left;
width: 45%;
margin: 5px;
}
#qw .qw_monthly_income, #qw .qw_vehicle_year, #qw .qw_vehicle_make, #qw .qw_vehicle_model, #qw .qw_vehicle_mileage, #qw .qw_vehicle_owned {
float: right;
width: 45%;
margin: 5px;
}
#qw .qw_vehicle_owned {
width: 93%;
}
#qw .submit {
margin-top: 10px;
text-align: center;
}
#qw .submit input {
background:url cursor:pointer;
height: 46px;
width: 297px !important;
font-size: 0px;
border: none;
}
#qw .qw_legal {
font-size: 12px;
color: #000;
padding-left: 15px;
padding-right: 15px;
line-height: 12px;
}
#qw .qw_legal a {
color: black;
text-decoration:underline;
}
#qw .submit input {
width: 80%;
}
working example: http://jsfiddle.net/awesome/Jbj2h/
using bootstrap 3.1: http://getbootstrap.com
CSS:
.form-box {
width: 510px !important;
height: 400px !important;
overflow: hidden !important;
background-color: White;
display: block;
padding: 5px;
}
body {
background-color: Gainsboro;
}
.form-box .form-group {
margin-bottom: 10px;
}
.form-box textarea {
margin-bottom: 10px;
}
HTML:
<div class="form-box">
<form class="form-horizontal" role="form">
<div class="col-xs-12">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label class="sr-only" for="awesome">Awesome</label>
<input type="text" class="form-control input-sm" id="awesome" placeholder="Enter text">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<select class="form-control input-sm">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<select class="form-control input-sm">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</div>
<textarea class="form-control input-sm" rows="2" placeholder="stuff"></textarea>
<button type="button" class="btn btn-primary btn-block">Go!</button>
</form>
</div>
I find with css fitting things on a form can be a bit tricky. My advice would be to avoid using floats and clearfixes where you can and instead stick to your width=__%
When using the width however one thing that trips me up is that this includes the margin and padding as well, so why it might make sense to have two items side by side at 50%, it doesn't often work out that way.
Another tip I use when doing css like this is to inspect it in the browser using development tools (In most you access this by right clicking and selecting "inspect element"). This way you can modify your css code as much as you like until your happy with it to try it in your code proper, as well as seeing the boundaries of the margins, content and padding.
http://jsfiddle.net/r3gw7/
Concept fiddle, makes use of
overflow-y: scroll;