Share on:

article image to show article

Responsive signup form design using pure css and html

Jul 18 2016
I have created a stylish sign up form using pure css and html. This layout is responsive. You can try in demo
Demo
Here is full code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Form Design</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <style>
            body{
                background-color: #fff;
                background-image: url('./images/bg.jpg');
            }
            .container{
                margin-left: 33.33%;
                width: 33.33%;
            }
            .form-container{
                background-color:rgba(25,25,25,0.5);
                margin-top: 25%;
                padding: 10%;
                border-radius: 20px;

            }
            .input-container{
                margin-bottom: 15px;
                display: block;

            }
            .inputs{
                display: block;
                height: 30px;
                width: 100%;
                border-radius: 10px;
                border:0;
                padding: 5px;
                padding-left: 10px;
                color: #000;
                font-size: 16px;
                font-family: sans-serif;
            }

            ::-webkit-input-placeholder {  
                color: #ccc;  
                font-size: 16px;
                font-family: sans-serif;
            }
            .btn{
                padding: 10px 20px;
                border-radius: 5px;
                background-color: #19c282;
                border:0;
                color:#fff;
                font-size: 16px;
                font-family: sans-serif;
                cursor: pointer;
            }
            hr{
                width: 100%;
            }
            .text-center{
                text-align: center;
            }
            .developer{
                margin-top: 10px;
            }
@media screen and (max-width: 480px) {
                .container{
                    margin-left: 10%;
                    width: 80%;
                }
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="form-container">
                
                <form>
                    <div class="input-container">
                        <input type="text" class="inputs" placeholder="Name">
                    </div>
                    <div class="input-container">
                        <input type="text" class="inputs" placeholder="Username">
                    </div>
                    <div class="input-container">
                        <input type="text" class="inputs" placeholder="Email">
                    </div>
                    <div class="input-container">
                        <input type="text" class="inputs" placeholder="Password">
                    </div>
                    <div class="input-container">
                        <button type="submit" class="btn">Submit</button>
                    </div>
                </form>
                
            </div>
           
        </div>
    </body>
</html>
Category: html  css