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

Leave a Reply

Related Posts: You may like

Responsive Coming Soon Template

Stylish responsive sidebar menu navigation

Social sharing button sidebar widget

Rotating Words with CSS Animations

Tools:

Crypto Currency

PHPKIDA provides free online the best real-time crypto market price, news, predictions, index with graphs & historical data for 2000+ coins including bitcoin, ethereum, & altcoins from major cryptocurrency exchanges.

Visite Tool

Icon Generator

PHPKIDA provides free online icon generator. Our icon generator help you to edit, modify, resize and customize icon for your website and applications. Convert to a shap you like add icon border, you can change icon border color, border size, background color, icon shadow, icons color, icon size in your own way and save it as a png image.

Visite Tool

Youtube Video Downloader

PHPKIDA provides Free online YouTube video downloader to download YouTube videos quickly in MP4, 3GP, and more. Search your video and free fast download youtube videos.

Visite Tool

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.