Form Style Guideline – Form validation – Dynamic Contact Form

Form Style Guideline - Form validation - Dynamic Contact Form

Markup

<div class="section-padding">
    <div class="container">
        <div class="row">
            <div class="col-md-8">
                <div class="white-box">
                    <h4>Send us a message</h4>
                    <div class="contact-form">
                        <form action="http://formspree.io/bdhostit@gmail.com" method="POST">
                            <div class="row">
                                <div class="col-md-6">
                                    <input name="firstname" type="text" placeholder="First Name" required>
                                </div>
                                <div class="col-md-6">
                                    <input name="lastname" type="text" placeholder="Last Name" required>
                                </div>
                                <div class="col-md-6">
                                    <input name="email" type="email" placeholder="Your Email" required>
                                </div>
                                <div class="col-md-6">
                                    <input name="subject" type="text" placeholder="Subject" required>
                                </div>
                            </div>
                            <textarea name="message" id="1" cols="30" rows="10" placeholder="Write Your Message" required></textarea>
                            <input type="submit" value="Send Message">                                    
                        </form>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="colored-box">
                    <h4>Get In Touch</h4>
                    <p class="contact-info"><i class="fa fa-home"></i>2123/1, Mazar, College Taltola<br />Uttar Khan, Dhaka - 1230</p>
                    <p class="contact-info"><i class="fa fa-phone"></i><a href="tel:8801911235233">+880 1911-235233</a> <br /><a href="tel:8801780808075">+880 1780-808075</a> </p>
                    <p class="contact-info"><i class="fa fa-envelope"></i><a href="mailto:bdhostit@email.com">bdhostit@email.com</a> <br /><a href="mailto:bdhostit@email.com">codexcafe@email.com</a> </p>
                    <div class="social-icons">
                        <a href="" target="_blank"><i class="fa fa-facebook"></i></a>
                        <a href="" target="_blank"><i class="fa fa-twitter"></i></a>
                        <a href="" target="_blank"><i class="fa fa-linkedin"></i></a>
                        <a href="" target="_blank"><i class="fa fa-skype"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

Style

/* Base CSS */
.alignleft {
    float: left;
    margin-right: 15px;
}
.alignright {
    float: right;
    margin-left: 15px;
}
.aligncenter {
    display: block;
    margin: 0 auto 15px;
}
a:focus, input:focus, textarea:focus, button:focus { 
    outline: 0 solid 
}
img {
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    font-weight: 700;
}
body {
    
}
a:hover { text-decoration: none }


.section-padding {
    padding: 80px 0;
}
.white-box {
    box-shadow: 0 0 10px #f5f5f5;
    padding: 30px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], textarea {
    background: #f9f9f9 none repeat scroll 0 0;
    border: medium none;
    padding: 15px;
}
.contact-form input, .contact-form textarea {
    margin-bottom: 15px;
    width: 100%;
}
input[type="submit"] {
    margin: 0;
    width: auto;
}
.contact-form textarea {
    height: 143px;
    resize: none;
}
.contact-form input[type="submit"], .contact-form button[type="submit"] {
    background: #52b0fb none repeat scroll 0 0;
    border: medium none;
    border-radius: 3px;
    color: #fff;
    padding: 15px 30px;
}
.colored-box {
    background: #52b0fb none repeat scroll 0 0;
    color: #fff;
    min-height: 460px;
    padding: 30px;
}
.colored-box a {
    color: #fff;
}
.contact-info {
    margin-bottom: 30px;
    padding-left: 45px;
    position: relative;
}
.contact-info i.fa {
    font-size: 20px;
    left: 0;
    position: absolute;
    top: 3px;
}
.colored-box h4, .white-box h4 {
    font-weight: 400;
    margin-bottom: 40px;
}
.social-icons a {
    background: #fff none repeat scroll 0 0;
    border-radius: 50%;
    box-shadow: 0 0 3px #999;
    color: #333;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin-right: 10px;
    text-align: center;
    transition: all 0.3s ease 0s;
    width: 40px;
}
.social-icons a:hover {
    box-shadow: 0 0 0;
    color: #52b0fb;
}

 

Mark up url: Click here

Pseudo Element and Advance Usage

Pseudo Element and Advance Usage

Markup

<div class="section-padding">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="section-title">
                    <h2>Why Choose Us</h2>
                    <div class="section-borders">
                        <span></span>
                        <span class="black-border"></span>
                        <span></span>
                    </div>                            
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="single-feature-item">
                    <div class="row">
                        <div class="col-md-3">
                            <div class="bordered-img bordered-img-bg-1"></div>
                        </div>
                        <div class="col-md-9">
                            <h3>Guaranteed Word</h3>
                            <p>Duis autem vel eum iriure dolor in hendrerit in velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero.</p>
                        </div>
                    </div>
                </div>
                <div class="single-feature-item">
                    <div class="row">
                        <div class="col-md-3">
                            <div class="bordered-img bordered-img-bg-2"></div>
                        </div>
                        <div class="col-md-9">
                            <h3>Expert Worker</h3>
                            <p>Duis autem vel eum iriure dolor in hendrerit in velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero.</p>
                        </div>
                    </div>
                </div>
                <div class="single-feature-item">
                    <div class="row">
                        <div class="col-md-3">
                            <div class="bordered-img bordered-img-bg-3"></div>
                        </div>
                        <div class="col-md-9">
                            <h3>24/7 Support</h3>
                            <p>Duis autem vel eum iriure dolor in hendrerit in velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero.</p>
                        </div>
                    </div>
                </div>
                
            </div>
            <div class="col-md-6">
                <div class="big-feature-bordered-img"></div>
            </div>
        </div>
    </div>
</div>

Style

/* Base CSS */
.alignleft {
    float: left;
    margin-right: 15px;
}
.alignright {
    float: right;
    margin-left: 15px;
}
.aligncenter {
    display: block;
    margin: 0 auto 15px;
}
a:focus { outline: 0 solid }
img {
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    font-weight: 700;
}
body {
    
}
a:hover { text-decoration: none }


.section-padding {
    padding: 80px 0;
}
.section-title {
    margin-bottom: 80px;
    text-align: center;
}
.single-feature-item {
    margin-bottom: 40px;
}

.bordered-img-bg-1 {background: url('../img/guaranteed-word.jpg')}
.bordered-img-bg-2 {background: url('../img/expert-worker.jpg')}
.bordered-img-bg-3 {background: url('../img/24-7-support.jpg')}

.bordered-img {
    border: 1px solid #fff;
    height: 120px;
    position: relative;
    width: 100px;
}
.bordered-img::after {
    background-color: #6AAF08;
    bottom: -5px;
    content: "";
    height: 100%;
    position: absolute;
    right: -5px;
    width: 100%;
    z-index: -1;
}
.single-feature-item h3 {
    border-bottom: 1px dashed #6AAF08;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 14px;
    margin-top: 6px;
    padding-bottom: 12px;
}

.section-borders span {
    background: #6aaf08 none repeat scroll 0 0;
    border-radius: 4px;
    display: inline-block;
    height: 3px;
    width: 36px;
}
.section-borders .black-border {
    background: #000 none repeat scroll 0 0;
    width: 24px;
}

.big-feature-bordered-img {
    background: #ddd url('../img/big-image.jpg');
    background-position: center;
    background-size: cover;
    border: 1px solid #fff;
    height: 430px;
    margin-left: 5%;
    position: relative;
    width: 95%;
}
.big-feature-bordered-img::after {
    background: #000;
    content: "";
    height: 100%;
    left: 0;
    opacity: 0.5;
    position: absolute;
    top: 0;
    width: 100%;
}
.big-feature-bordered-img::before {
    background: #6AAF08 url('../img/black-twill.png');
    content: "";
    height: 100%;
    left: -8px;
    position: absolute;
    top: 8px;
    width: 100%;
    z-index: -1;
}

 

Mark up url: Click here

Absolute Menu and Hero Section

Absolute Menu and Hero Section

Markup

<div class="header-area">
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <div class="logo">
                    <a href=""><img src="assets/img/target-logo.png"></a>
                </div>
            </div>
            <div class="col-md-9">
                <div class="mainmenu">
                    <ul>
                        <li><a href="">Home</a></li>
                        <li><a href="">About</a></li>
                        <li><a href="">Services</a></li>
                        <li><a href="">Pages</a></li>
                        <li><a href="">Project</a></li>
                        <li><a href="">Features</a></li>
                        <li><a href="">Blog</a></li>
                        <li><a href="">Contact</a></li>
                        <li><a href=""><i class="fa fa-search"></i></a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="homepage-slides">
    <div class="single-slide-item">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="slide-text">
                        <h2>I won't be making any friends <br />in the corporate suites</h2>
                        <p>Lorem ipsum is simply dummy of the printing and typesetting industry. dummy text ever since the when an unknown printer took.</p>
                        <a href="" class="bordered-btn">Read more <i class="fa fa-angle-right"></i></a>
                    </div>
                </div>
                <img class="slide-image" src="assets/img/target-man-1.png" alt="Target Man">
            </div>
        </div>
    </div>
    <div class="single-slide-item">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="slide-text">
                        <h2>I won't be making any friends <br />in the corporate suites</h2>
                        <p>Lorem ipsum is simply dummy of the printing and typesetting industry. dummy text ever since the when an unknown printer took.</p>
                        <a href="" class="bordered-btn">Read more <i class="fa fa-angle-right"></i></a>
                    </div>
                </div>
                <img class="slide-image" src="assets/img/target-man-1.png" alt="Target Man">
            </div>
        </div>
    </div>
    <div class="single-slide-item">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="slide-text">
                        <h2>I won't be making any friends <br />in the corporate suites</h2>
                        <p>Lorem ipsum is simply dummy of the printing and typesetting industry. dummy text ever since the when an unknown printer took.</p>
                        <a href="" class="bordered-btn">Read more <i class="fa fa-angle-right"></i></a>
                    </div>
                </div>
                <img class="slide-image" src="assets/img/target-man-1.png" alt="Target Man">
            </div>
        </div>
    </div>
    <div class="single-slide-item">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="slide-text">
                        <h2>I won't be making any friends <br />in the corporate suites</h2>
                        <p>Lorem ipsum is simply dummy of the printing and typesetting industry. dummy text ever since the when an unknown printer took.</p>
                        <a href="" class="bordered-btn">Read more <i class="fa fa-angle-right"></i></a>
                    </div>
                </div>
                <img class="slide-image" src="assets/img/target-man-1.png" alt="Target Man">
            </div>
        </div>
    </div>
</div>

Style

/* Base CSS */
.alignleft {
    float: left;
    margin-right: 15px;
}
.alignright {
    float: right;
    margin-left: 15px;
}
.aligncenter {
    display: block;
    margin: 0 auto 15px;
}
a:focus { outline: 0 solid }
img {
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    font-weight: 700;
}
body {

}
a:hover { text-decoration: none }


.mainmenu ul {
    list-style: outside none none;
    margin: 0;
    padding: 0;
    text-align: right;
}
.mainmenu li {
    display: inline-block;
}
.mainmenu li a {
    color: #fff;
    display: block;
    font-size: 16px;
    padding: 10px 0 10px 20px;
    transition: 0.3s;
}
.mainmenu li a:hover {
    color: #dca521;
}
.single-slide-item {
    background-color: #263238;
    color: #fff;
    font-size: 16px;
    line-height: 32px;
}
.slide-image {
    bottom: 0;
    max-height: 550px;
    position: absolute;
    right: 15px;
    width: auto !important;
}
.slide-text {
    padding: 180px 0 150px;
}
.single-slide-item .row {
    position: relative;
}
.slide-text h2 {
    color: #dca521;
    font-size: 40px;
    font-weight: 300;
    line-height: 55px;
}
.bordered-btn {
    border: 1px solid #fff;
    border-radius: 5px;
    color: #dca521;
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    transition: 0.3s;
}
.bordered-btn:hover {
  border: 1px solid #dca521;
  color: #fff;
}

.homepage-slides .owl-dots div {
    background: #fff none repeat scroll 0 0;
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin: 5px;
    width: 10px;
}
.homepage-slides .owl-dots {
    bottom: 20px;
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;
}
.homepage-slides .owl-dots div.active {
    background: #dca521;
}

.homepage-slides .owl-nav div {
    background: transparent;
    color: #263238;
    display: inline-block;
    font-size: 20px;
    height: 35px;
    line-height: 35px;
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
    width: 40px;
    transition: 0.5s;
}
.homepage-slides:hover .owl-nav div {
    color: #dca521;
}
.homepage-slides .owl-nav {
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
}
.homepage-slides .owl-nav .owl-next {
    float: right;
}
.homepage-slides .owl-nav .owl-prev {
    float: left;
}

.header-area {
    left: 0;
    margin: 30px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9;
}

 

Mark up url: Click here