How to Create Responsive Registration 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
**/
*{
box-sizing: border-box;
}
body{
margin: 0%;
}
.container{
height:100vh;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}
.child1{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 620px;
width: 400px;
}
form{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color:rgb(22, 22, 22);
height: 620px;
width: 400px;
padding:10px 20px;
border-radius: 15px;
margin:0px;
}
input[type=text],input[type=email],input[type=password]{
background-color:rgb(61, 61, 61);
padding:15px 5px;
margin: 0px;
border-radius:5px;
width:100%;
border: none;
color:#ddd;
}
.child1 button{
background-color: silver;
text-align: center;
padding: 15px;
width:100%;
border:none;
border-radius:5px;
}
.child1 button:hover{
cursor: pointer;
}
.child1 h2{
text-align: center;
color:#ddd;
font-size:35px;
font-family: 'Courier New', Courier, monospace;
}
input::placeholder{
color: #ddd;
}
@media screen and (max-width:630px){
.child1{
height:fit-content;
width:90%;
}
}
.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:tomato;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a Responsive Registration 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