How to make Form UI 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=Exo+2:wght@500&display=swap');
*{
box-sizing: border-box;
}
body{
margin:0px;
}
.container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-image: linear-gradient(to right, #434343 0%, black 100%);
font-family: 'Exo 2', sans-serif;
height: 100vh;
width:100%;
}
.p1{
width: 800px;
height: 500px;
display: flex;
border: 5px solid gray;
border-radius: 15px;
}
.contact-info{
width:50%;
background-color: #333;
color: #fff;
padding: 20px;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
display: flex;
flex-direction: column;
align-items: start;
justify-content:space-evenly;
}
.contact-info h2{
font-size: 24px;
margin-bottom: 20px;
}
.contact-info .info-item a{
text-decoration: none;
color: #3498db;
font-weight: bold;
transition: color 0.3s;
}
.contact-form{
width:50%;
background-color: #444;
padding: 20px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
.contact-form h2{
color: #fff;
font-size: 24px;
margin-bottom: 20px;
}
.input-group{
margin: 15px 0;
}
.input{
width:100%;
padding: 10px;
background-color: #555;
border: 1px solid #777;
border-radius: 5px;
color: #fff;
outline: none;
}
textarea{
width: 100%;
height:100px;
padding: 10px;
background-color: #555;
border: 1px solid #777;
border-radius: 5px;
color: #fff;
outline: none;
}
.submit-btn{
margin-top: 15px;
}
input[type="submit"]{
background:aquamarine;
color: black;
padding: 10px 20px;
border: none;
height: 35px;
width: 100px;
border-radius: 15px;
cursor: pointer;
text-align: center;
border: 2px solid gray;
}
input[type="submit"]:hover{
background:white;
color: black;
height: 36px;
width: 102px;
}
.info1{
display: flex;
align-items: center;
}
.info2{
display: flex;
align-items: center;
column-gap:10px;
cursor: pointer;
}
.info3{
display: flex;
align-items: center;
column-gap:10px;
cursor: pointer;
}
.info4{
display: flex;
align-items: center;
column-gap:10px;
cursor: pointer;
}
.info5{
display: flex;
align-items: center;
column-gap:10px;
}
.info5 a{
color: white;
text-decoration: none;
cursor: pointer;
}
.info5 a:hover{
color: lightcoral;
text-decoration: underline;
}
.contact-info h2{
color:aquamarine;
}
.contact-form h2{
color: aquamarine;
}
.info2:hover{
text-decoration: underline;
color: lightcoral;
}
.info3:hover{
text-decoration: underline;
color: lightcoral;
}
.info4:hover{
text-decoration: underline;
color: lightcoral;
}
@media screen and (max-width: 630px){
.container{
padding:10px 0px;
height: fit-content;
}
.p1{
width:98%;
height:fit-content;
display: flex;
flex-direction: column;
}
.contact-info,.contact-form{
width:100%;
height: fit-content;
border-radius:10px;
}
}
.credit a{
text-decoration: none;
color: #ddd;
font-weight: 800;
}
.credit{
color: #ddd;
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 Form UI 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.
إرسال تعليق
Thank you
Learning robo team