Контактная форма (CSS-макет)
HTML
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<div class="body">
<div class="contact">
<form action="#">
<fieldset>
<div class="row">
<section class="col col-2">
<label class="input">
<i class="fa fa-append fa-user"></i>
<input type="text" placeholder="Имя" required>
</label>
</section>
<section class="col col-2">
<label class="input">
<i class="fa fa-append fa-envelope-o"></i>
<input type="email" placeholder="E-mail" required>
</label>
</section>
</div>
<section>
<label class="input">
<i class="fa fa-append fa-tag"></i>
<input type="text" placeholder="Тема">
</label>
</section>
<section>
<label class="textarea">
<i class="fa fa-append fa-comment"></i>
<textarea rows="4" placeholder="Сообщение" required></textarea>
</label>
</section>
<button type="submit" class="button">Отправить</button>
</fieldset>
</form>
</div>
</div>
CSS
/*
* базовые стили
*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
*{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
width: 100%;
overflow: hidden;
padding: 40px;
background-attachment: fixed;
background-position: 50% 0;
background-size: cover;
-webkit-text-size-adjust: none;
background: -webkit-linear-gradient(90deg, #DAE2F8 10%, #D6A4A4 90%);
background: -moz-linear-gradient(90deg, #DAE2F8 10%, #D6A4A4 90%);
background: -ms-linear-gradient(90deg, #DAE2F8 10%, #D6A4A4 90%);
background: -o-linear-gradient(90deg, #DAE2F8 10%, #D6A4A4 90%);
background: linear-gradient(90deg, #DAE2F8 10%, #D6A4A4 90%);
}
/*
* контактная форма
*/
.contact {
max-width: 467px;
min-width: 320px;
margin: 0 auto;
background: rgba(255,255,255,0.9);
box-shadow: 0 0 8px rgba(0,0,0,.3);
}
.contact * {
outline: none;
border: 0;
background: none;
}
form fieldset {
display: block;
padding: 25px 30px;
}
form .row {
margin: 0 -15px;
}
form .col-2 {
width: 50%;
}
form .col {
float: left;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
form .row:after {
content: '';
display: table;
clear: both;
}
form section {
margin-bottom: 20px;
}
form .input, form .textarea, form .radio, form .checkbox, form .button {
position: relative;
display: block;
}
form .fa-append {
position: absolute;
top: 5px;
right: 5px;
width: 29px;
height: 29px;
padding-left: 3px;
border-left: 1px solid #e5e5e5;
font-size: 15px;
line-height: 29px;
text-align: center;
color: #ccc;
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-user:before {
content: "\f007";
}
.fa-envelope-o:before {
content:...