How to make Login form in HTML and CSS.[Source Code]
To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
/**
Hello Future Developer Thanks for Using learningrobo.com,
Check our website Regularly For New Snippets Post.
Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
box-sizing: border-box;
}
body{
margin: 0;
font-family: 'Poppins', sans-serif;
}
.container{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100%;
background-image: url('https://cdn.pixabay.com/photo/2017/05/19/06/22/desk-2325627_1280.jpg');
background-repeat: no-repeat;
background-size: cover;
}
.from-box{
position: relative;
width: 450px;
height: 550px;
display: flex;
background:white;
justify-content: center;
align-items: center;
border-radius:20px;
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}
.from-box img{
max-width: 50px;
max-height: 50%;
position: absolute;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 1px solid black;
}
h2{
font-size: 2em;
color: black;
text-align: center;
}
.inputbox{
position: relative;
margin: 30px 0;
width: 310px;
border-bottom: 2px solid black;
}
.inputbox label{
position: absolute;
top: 50%;
left: 5px;
transform: translateY(-50%);
color: black;
font-size: 1em;
pointer-events: none;
}
input:focus ~label, input:not(:placeholder-shown)~label{
top: -5px;
}
.inputbox input{
width:100%;
height: 50px;
background: transparent;
border: none;
outline: none;
font-size: 1em;
padding: 0 35px 0 5px;
color: black;
}
.inputbox ion-icon{
position: absolute;
right: 8px;
color: black;
font-size: 1.2em;
top: 20px;
}
.Remember{
color: black;
}
button{
width: 100%;
height: 40px;
border-radius: 40px;
background: black;
border: none;
outline: none;
cursor: pointer;
font-size: 1em;
font-weight: 600;
color: white;
}
.Forgot{
font-size: 0.9em;
color: black;
text-align: center;
margin: 25px 0 10px;
}
.Forgot p a{
text-decoration: none;
color: black;
font-weight: 600 ;
}
.Forgot p a:hover{
text-decoration: underline;
}
@media screen and (max-width:630px){
.from-box{
width:98%;
}
}
.credit a{
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit{
color: #121212;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:#000;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a Login form in HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.
Explore
Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.
In Our older post it doesnot work we working on that.
Post a Comment
Thank you
Learning robo team