Responsive contact form html css

Here we will show you how to create an HTML and HTML5 responsive contact form with CSS.

You can also view live demo and download code using given downloading link below of article page.

HTML Code Here..

<div class="contact" id="contact">
    <div class="container">
        <div class="contact-grid1">
            <div class="contact-top1">
                <form action="" method="post" enctype="multipart/form-data" name="contactus">
                    <div class="form-group">
                        <label>Name <span class="required">*</span></label>
                        <input type="text" name="name" placeholder="Name" required="">
                    </div>
                    <div class="form-group">
                        <label>E-mail <span class="required">*</span></label>
                        <input type="email" name="email" placeholder="E-mail" required="">
                    </div>
                    <div class="form-group">
                        <label>Phone Number <span class="required">*</span></label>
                        <input type="text" name="number" placeholder="Phone Number" required="">
                    </div>
                    <div class="form-group">
                        <label>Message <span class="required">*</span></label>
                            <textarea placeholder name="message"required=""></textarea>
                    </div>
                        <input type="submit" name="contactus" value="Submit">
                </form>
            </div>
        </div>
    </div>
</div>

CSS Code Here..

<style>
/*-- Contact --*/
body{padding:0px; margin:0px;}
.contact-grid1 input[type="text"], .contact-grid1 input[type="email"],.contact-grid1 textarea{
    width: 98%;
    padding: 12px 1%;
    font-size: 1em;
    border: none;
    outline: none;
}
.contact-grid1 textarea{
    height:140px;
    resize:none;
}
.contact-top1 label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    display: inherit;
    margin-top: 14px;
}
.required{color:#FF0000;}
.contact-top1 {
    background: rgba(0, 0, 0, 0.85);
    padding: 3em 3em 4em;
}
.contact-grid1 input[type="submit"] {
    font-size: 1.1em;
    outline: none;
    border: none;
    text-transform: uppercase;
    background: #ff4c4c;
    padding: 0.7em 0;
    letter-spacing: 1px;
    color: #fff;
    display: block;
    width: 300px;
    cursor:pointer;
    margin: 15px auto 0;
    transition: 0.5s all;
    -webkit-transition: .5s all;
    -moz-transition: .5s all;
    -o-transition: .5s all;
    -ms-transition: .5s all;
}
.contact-grid1 input[type="submit"]:hover{
    background:#0099e5;
     -webkit-transition: .5s all;
    -moz-transition: .5s all;
    -o-transition: .5s all;
    -ms-transition: .5s all;
}

@media(max-width: 500px){
    .contact-grid1 input[type="submit"]{
        width:100%;
    }
}
</style>

You Can View Demo and download Source Code of This Tutorial

If You have any question and problem in this code feel free, leave comment below! SHARE WITH YOUR FRIENDS..

About Author

My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.