How to make Foteer Design 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.
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');
*{
box-sizing: border-box;
}
.container{
height: 100vh;
width: 100vw;
display: flex;
background-color: rgb(84, 82, 82);
align-items: end;
}
.p1{
height: 75vh ;
width: 100%;
background-color: rgb(0, 0, 0);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-family: 'Nunito', sans-serif;
}
.card{
height: 89%;
width: 100%;
display: flex;
background-color: rgb(0, 0, 0);
align-items: center;
justify-content: center;
}
.d1{
height: 95%;
width: 300px;
background-color: rgb(30, 27, 27);
margin-right: 30px;
border-radius: 10px;
display: flex;
flex-direction: column;
color: aliceblue;
align-items: center;
}
.d2{
height: 90%;
width: 250px;
background-color: rgb(0, 0, 0);
margin-right: 30px;
border-radius: 10px;
color: white;
}
.d3{
height: 90%;
width: 400px;
background-color: rgb(0, 0, 0);
margin-right: 30px;
border-radius: 10px;
color: white;
}
.end{
height: 11%;
width: 100%;
background-color: black;
}
.image{
height: 50%;
width: 100%;
background-color: transparent;
border-radius: 10px 10px 0 0;
display: flex;
justify-content: center;
align-items: center;
margin: auto;
}
.image img{
height:90%;
width: 90%;
object-fit: contain;
}
.logo{
height: 25%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
}
.words {
height: 30%;
width: 100%;
background-color: transparent;
display: flex;
justify-content: center;
align-items: center;
}
.words span{
margin-left:20px ;
margin-right: 10px;
font-weight: 500;
font-size: 12px;
}
h3{
margin-left: 20px;
}
.logo span{
height: 40px ;
width: 40px;
border-radius: 50%;
background-color: rgb(99, 93, 93);
display: flex;
align-items: center;
justify-content: center;
margin-left: 10px;
}
.logo span:hover{
transform: scale(1.1);
background-color: red;
transition: all 0.2s ease-in-out;
cursor: pointer;
}
.head{
height: 20%;
width: 100%;
background-color: rgb(0, 0, 0);
display: flex;
justify-content: left;
align-items: center;
color: aliceblue;
cursor: pointer;
}
.head span{
font-size: 12px;
}
.icon{
height: 100%;
width: 40px;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.3em;
color: red;
}
.heading{
height: 20px;
width: 100%;
background-color: rgb(0, 0, 0);
display: flex;
flex-direction: column;
align-items: center;
color: red;
}
.heading span{
border: 1.3px solid transparent;
border-style: solid;
width: 20%;
border-color: white;
margin-left: 20px;
display: flex;
}
.options{
height: 50%;
display: flex;
}
.side1,.side2{
display: flex;
flex-direction: column;
font-size: 13px;
height: 100%;
width: 100%;
justify-content: space-evenly;
margin: 40px 30px;
}
.side1 span,.side2 span{
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.side1 span:hover,.side2 span:hover{
transform: scale(1.1);
color: red;
}
.content{
height: 30%;
width: 100%;
background-color: rgb(0, 0, 0);
display: flex;
justify-content: center;
align-items: center;
margin-top: 40px;
}
.content span{
margin-left:20px ;
margin-right: 10px;
font-weight: 500;
font-size: 12px;
}
.mail{
display: flex;
align-items: center;
justify-content: center;
}
.mail input{
width: 500px;
height: 45px;
border: none;
outline: none;
padding: 10px 30px;
border-radius: 500px;
margin: 10px;
color: #fff;
font-size: 15px;
background-color: transparent;
box-shadow: 3px 3px 10px rgba(0,0,0,1),
-1px -1px 6px rgba(255, 255, 255, 0.4);
}
.input:focus {
border: 2px solid transparent;
color: #fff;
box-shadow: 3px 3px 10px rgba(0,0,0,1),
-1px -1px 6px rgba(255, 255, 255, 0.4),
inset 3px 3px 10px rgba(0,0,0,1),
inset -1px -1px 6px rgba(255, 255, 255, 0.4);
}
.mail button{
height: 40px;
width: 60px;
translate: -66px ;
border-radius: 0 500px 500px 0;
border: none;
cursor: pointer;
background-color: rgb(255, 0, 0);
}
.mail button:hover{
background-color: rgb(245, 71, 71);
}
.end{
color: #fff;
display: flex;
justify-content: space-evenly;
align-items: center;
background-color: rgb(30, 27, 27);
}
.right {
display: flex;
justify-content: space-evenly;
}
.right span{
margin-left: 29px;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.right span:hover{
transform: scale(1.1);
color: red;
}
@media screen and (max-width:900px){
.container{
height: 100%;
width: 100%;
align-items: end;
}
.p1{
height: 1300px;
width: auto;
flex-direction: column;
}
.card{
flex-direction: column;
}
.end{
height: 5%;
}
}
.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 Product Card 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