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 class="form-group">
                        <label>E-mail <span class="required">*</span></label>
                        <input type="email" name="email" placeholder="E-mail" required="">
                    <div class="form-group">
                        <label>Phone Number <span class="required">*</span></label>
                        <input type="text" name="number" placeholder="Phone Number" required="">
                    <div class="form-group">
                        <label>Message <span class="required">*</span></label>
                            <textarea placeholder name="message"required=""></textarea>
                        <input type="submit" name="contactus" value="Submit">

CSS Code Here..

/*-- 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{
.contact-top1 label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    display: inherit;
    margin-top: 14px;
.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;
    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{
     -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"]{

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..

Author: Mukesh Jakhar

This is Mukesh Jakhar. I’m a professional web developer with 3+ years experience. I am always ready for freelance work and i am writing blogs in my free time. I love to learn new technologies and share with others.
I founded PHPKIDA in September 2015. The focus of this website to provide web development tutorials of PHP, WordPress, CodeIgniter, Jquery, MySQL, HMTL, CSS etc and sharing solution of problems which i already solved.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts: You may like

20 awesome css3 hover effects social icons

Responsive Coming Soon Template

Stylish responsive sidebar menu navigation

Social sharing button sidebar widget

Rotating Words with CSS Animations

Pure CSS Loader and spinners animation

Pure css drop down menu

Pure css dropdown navigation bar

404 error page template

Lively Chat Pricing Plans Table Bootstrap Responsive Widget

PHPKIDA Offering Free Tools:


Free online tool to download Instagram videos, photos and save Instagram videos, photos to your device. It's free & easy to use.

Download Now


Our real time currency converter calculator will convert your money based on current values from around the world. It's free & easy to use.

Convert Now


Create robots txt file that help search engines to crawling and indexing your site with help of our free online Robots.txt Generator tool.

Create Now


Free online tool to minify or compress html code and reduce the size of html code in few clicks. It's free & easy to use.

Minify Now


Free online tool to minify or compress css code and reduce the size of css code in few clicks. It's free & easy to use.

Minify Now


Free online tool to minify or compress javascript code and reduce the size of javascript code in few clicks. It's free & easy to use.

Minify Now

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.