Skip to content

Instantly share code, notes, and snippets.

@zpalexander
Created February 13, 2014 21:32
Show Gist options
  • Save zpalexander/8984290 to your computer and use it in GitHub Desktop.
Save zpalexander/8984290 to your computer and use it in GitHub Desktop.
Virtual Trip Booking Form
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="virtual-booking-style.css">
</head>
<body>
<div class="virtual-booking">
<h4>Online Inquiry</h4>
<div class="form-wrapper">
<form method="post" target="" action"">
<div class="form-body">
<ul class="form-fields">
<li class="field">
<label>First Name</label>
<input name="first-name" type="text">
</li>
<li class="field">
<label>Last Name</label>
<input name="last-name" type="text">
</li>
<li class="field">
<label>Email</label>
<input name="email" type="text">
</li>
<li class="field">
<label>Phone</label>
<input name="phone" type="text">
</li>
<li class="field">
<label>Best Time to Contact</label>
<select>
<option value="Day">Day</option>
<option value="Night">Night</option>
</select>
</li>
</ul>
</div>
<div class="form-footer">
<input type="submit" class="form-button" value="Submit">
</div>
</form>
</div>
</div>
</body>
html {
}
ul {
border: 0;
list-style: none;
margin: 0;
padding: 0;
font-size: 14px;
font: inherit;
vertical-align: baseline;
}
li {
margin-bottom: 30px;
}
.virtual-booking {
width: 25%;
margin: 0 auto;
}
h4 {
font-weight: 300;
font-size: 18px;
margin: 0;
}
.form-wrapper {
color: #9f9f9f;
font-size: 14px;
font-weight: 500;
line-height: 1.285;
margin-top: 0.357em;
margin-bottom: 0.357em;
text-transform: uppercase;
}
.form-body {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
label {
font-weight: 500;
font-size: 14px;
letter-spacing: 0.06em;
margin-bottom: 3px;
display: inline-block;
}
input {
display: block;
border: 1px solid #9f9f9f;
width: 100%;
padding: 1rem;
line-height: normal;
margin: 0;
}
select {
display: block;
text-transform: none;
font-size: 14px;
margin: 0;
}
.form-button {
background-color: #e56f5e;
border: none;
color: white;
font-size: 14px;
font-weight: bold;
line-height: 1;
margin-top: 10px;
margin-bottom: 0;
padding: 0.9em;
text-transform: uppercase;
width: 75%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment