How to make Responsive Login Card Design 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
**/
body {
height: 100vh;
width: 100vw;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0%;
}
.con{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.login-container {
display: flex;
justify-content: center;
background-color: #e6f7ff;
padding: 20px;
border-radius: 10px;
width: 70%;
height: 80vh;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.left-section {
flex: 1;
padding: 20px;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.right-section {
flex: 1;
background-color: #9c27b0;
border-radius: 10px;
color: #fff;
}
h1 {
font-size: 28px;
}
.social-button {
background-color: none;
background: transparent;
border: .2px solid gray;
padding: 10px 20px;
margin: 5px 0;
border-radius: 25px;
cursor: pointer;
}
input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 25px;
background: transparent;
}
.forgot-password {
color: #666;
text-decoration: none;
font-size: 14px;
margin-top: 20px;
}
.login-button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin-top: 25px;
}
.right-section{
object-fit: contain;
background-image: url(https://cdn.pixabay.com/photo/2024/07/08/05/41/girl-8880144_1280.png);
background-position: center;
}
.credit a {
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit {
color: #121212;
height: 3vh;
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 Responsive Login Card Design using 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