adc

clicks

How to create a login form with HTML and CSS

 



HTML
Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.
After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

<!DOCTYPE html>

<html>

<head>

            <title>Sing Up form</title>

            <link rel="stylesheet" type="text/css" href="style.css">

            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0    /css/font-awesome.min.css">

</head>

<body>

            <div class="wrapper">

                        <div class="top">

                                    <h1>Sing Up</h1>

                                    <div class="form">

                                                <div class="input">

                                                            <input type="text" name="" placeholder="Username">

                                                </div>

                                                <div class="input">

                                                            <input type="text" name="" placeholder="E-Mail">

                                                </div>

                                                <div class="input">

                                                            <input type="text" name="" placeholder="password">

                                                </div>

                                                <div class="btn">

                                                            <a href="#">Sing UP</a>

                                                </div>

                                    </div>

                                    <div class="or">

                                                Or

                                    </div>

                                   

                        </div>

                        <div class="bottom">

                                                <h3>With Other Platforms</h3>

                                                <div class="social-icon">

                                                            <div class="item"><i class="fa fa-facebook-f"></i></div>

                                                            <div class="item"><i class="fa fa-twitter"></i></div>

                                                            <div class="item"><i class="fa fa-google-plus"></i></div>

                                                </div>

                                    </div>

                </div>
</body>

</html>

CSS
Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

*{

            padding: 0;

            margin:0;

            outline:none;

            text-decoration:none;

            font-family: sans-serif;

}

body{

            background-color: green;

}

.wrapper{

            max-width: 350px;

            width: 100%;

            background:#fff;

            position: absolute;

            top: 50%;

            left: 50%;

            transform: translate(-50%, -50%);

            box-shadow: 0 0 3px reb(15,181,214,0.6);

}

.top{

            padding: 40px;

            text-align: center;

            position: relative;

}

.top h1{

            margin-bottom: 20px;

}

.input{

            margin-bottom: 12px;

}

.input input[type="text"]{

            width: 100%;

            background:#cdd8e5;

            border:0;

            padding: 12px;

            padding-left: 20px;

            border-radius: 25px;

}

.or {

  position: absolute;

  bottom: -18px;

  left: 50%;

  transform: translateX(-50%);

  width: 35px;

  height: 35px;

  line-height: 35px;

  border-radius: 50%;

  background: #fff;

  color: #41a7f2;

  box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);

}

 

.btn{

            background-color:#41a7f2;

            margin-top: 20px;

            padding: 12px;

            border-radius: 25px;

}

.btn a{

            color: #fff;

            display: flex;

            text-transform: uppercase;

            letter-spacing: 3px;

            justify-content: center;

}

.bottom{

            background-color: #41a7f2;

            padding: 40px;

}

.bottom h3{

            margin-bottom: 20px;

            text-align: center;

            color: #fff;

}

.social-icon{

            display: flex;

            justify-content: center;

}

.item{

            width: 40px;

            height: 40px;

            line-height: 40px;

            text-align: center;

            border-radius: 50%;

            background-color: #fff;

            margin:0 5px;

            cursor: pointer;

}

.iten i{

            color: #41a7f2;

            font-size: 14px;

}

 


 




How to create a login form with HTML and CSS How to create a login form with HTML and CSS Reviewed by easycoding on August 26, 2020 Rating: 5

No comments:

Powered by Blogger.