How to create Login Form Using 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=Mukta:wght@300&family=Nunito+Sans:opsz,wght@6..12,300&display=swap');
:root{
--bg:#ffffff;
}
h1,h4{
margin:0%;
}
*{
margin:0;
}
body{
background-image: linear-gradient(30deg,#CEDEBD 50%,#435334 50%);
font-family: 'Mukta', sans-serif;
}
.container{
height:100vh;
max-height:auto;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
.container-sub{
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
background-color:var(--bg);
text-align: center;
border-radius:10px;
width:30vw;
padding:30px 5px 5px 5px;
animation: 2s ease-out 0s 1 slideInup;
}
@keyframes slideInup {
0% {
transform: translatey(100%);
}
100% {
transform: translatey(0);
}
}
.container-sub img{
height:150px;
width:150px;
border-radius:50%;
border:5px solid #CEDEBD;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.container-sub form {
display: block;
align-items: center;
margin-top: 10px;
}
.container-sub form input[type="email"],input[type="password"]{
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
border: 2px solid #ddd;
width: 60%;
}
.container-sub label{
margin-bottom: 10px;
}
.container-sub form input[type="submit"]{
width:60%;
height:50px;
border: none;
border-radius: 10px;
background-color: #435334;
color:var(--bg);
margin-bottom: 10px;
}
.container-sub form input[type="submit"]:hover{
cursor: pointer;
color:black;
background-color:#CEDEBD ;
transition:0.5s;
}
@media only screen and (max-width: 1024px){
.container-sub{
width: 50vw;
}
}
@media only screen and (max-width: 630px){
.container-sub{
width: 90vw;
}
.container-sub img{
height:100px;
width:100px;
}
}
.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;
}
Thank you for reading our blog. If you face any problem in Creating a Login Form using HTML 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.
إرسال تعليق
Thank you
Learning robo team