HTML: <div class=”ask-for-advice”>
<form id=”order” novalidate=”novalidate”>
<h2>Gửi yêu cầu tư vấn</h2>
<div class=”frm-afa”>
<label for=”FullName”>
<input type=”text” name=”FullName” id=”FullName” placeholder=”Họ và tên”>
</label>
<label for=”Address”>
<input type=”text” name=”Address” id=”Address” placeholder=”Địa chỉ”>
</label>
<label for=”Mobile”>
<input type=”text” name=”Mobile” id=”Mobile” placeholder=”Điện thoại”>
</label>
<label for=”Email”>
<input type=”text” name=”Email” id=”Email” placeholder=”Email”>
</label>
</div>
<div class=”midle-border”>
<p>Cấu hình thang máy</p>
</div>
<div class=”frm-afa”>
<label for=”Size”>
<input type=”text” name=”Size” id=”Size” placeholder=”Kích thước hố thang”>
</label>
<label for=”Weight”>
<input type=”text” name=”Weight” id=”Weight” placeholder=”Tải trọng”>
</label>
<label for=”Floor”>
<input type=”text” name=”Floor” id=”Floor” placeholder=”Số tầng”>
</label>
<label for=”Speed”>
<input type=”text” name=”Speed” id=”Speed” placeholder=”Tốc độ”>
</label>
<label for=”Note” class=”cus-textarea”>
<textarea name=”Note” id=”Note” placeholder=”Nội dung yêu cầu”></textarea>
</label>
</div>
<p class=”hotline”>
Hotline: <a href=”tel:0907182268 “>0907 182 268 </a>
</p>
<button type=”submit”>Gửi đi</button>
</form>
<div class=”close”><i class=”fa fa-close”></i></div>
</div>
CSS: .ask-for-advice {
border: 1px solid #5e718c;
border-radius: 3px;
background: rgba(0, 0, 0, 0.3);
padding: 20px 16px;
overflow: hidden;
}
.ask-for-advice h2 {
font-size: 22px;
text-transform: uppercase;
line-height: 46px;
margin-bottom: 10px;
text-align: center;
}
.frm-afa {
overflow: hidden;
margin: 0 -5px;
}
.frm-afa label {
width: 50%;
padding: 7px;
float: left;
margin: 0;
}
.frm-afa input {
width: 100%;
line-height: 35px;
padding: 0 10px;
border-radius: 4px;
height: 35px;
}
.midle-border {
position: relative;
height: 40px;
}
.midle-border:before {
content: ”;
position: absolute;
width: 25%;
height: 1px;
background: #949698;
top: 20px;
left: 0;
}
.midle-border p {
margin: 0;
position: absolute;
font-family: ‘Muli’,sans-serif;
font-size: 14px;
font-weight: 400;
color: #fff;
text-transform: uppercase;
left: 50%;
transform: translate(-50%,50%);
}
.midle-border:after {
content: ”;
position: absolute;
width: 25%;
height: 1px;
background: #949698;
top: 20px;
right: 0;
}
.frm-afa label.cus-textarea {
width: 100%;
overflow: hidden;
}
.ask-for-advice .hotline {
display: block;
float: left;
color: #fff;
font-family: ‘Muli’,sans-serif;
padding-left: 33px;
margin: 0;
line-height: 36px;
background: url(http://thangmaytudong.com/Content/html/img/icon/hotline-red.png) no-repeat;
background-position: 0 6px;
margin-top: 5px;
}
.ask-for-advice button {
float: right;
line-height: 33px;
padding-left: 45px;
padding-right: 12px;
text-transform: uppercase;
color: #fff;
font-size: 16px;
font-weight: bold;
font-family: ‘Muli’,sans-serif;
border-radius: 3px;
background: red url(http://thangmaytudong.com/Content/html/img/icon/btn-send.png) no-repeat;
background-position: 12px 9px;
margin-top: 5px;
}
Bình luận của bạn