How to make Halloween offer Card 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=Yantramanav&display=swap');
*{
box-sizing: border-box;
}
:root{
--bg:#434343;
--fontcolor:#ddd;
}
body{
margin:0%;
}
.section1{
height: 100vh;
display: flex;
flex-direction: column;
justify-content:center;
align-items: center;
background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
}
.card{
display: flex;
flex-direction:row;
justify-content:space-between;
border-radius: 10px;
width:650px;
height:450px;
background-image:url("https://cdn.pixabay.com/photo/2020/09/23/19/58/halloween-5596921_1280.jpg");
background-position:top left;
background-repeat: no-repeat;
background-size:cover;
box-shadow: rgba(0, 0, 0, 0.6) 0px 7px 19px 0px;
}
.cardin1{
display: flex;
flex-direction:column;
align-items:center;
justify-content: center;
height:450px;
padding:20px 30px;
width:640px;
color:var(--fontcolor);
}
.c2in{
display: flex;
flex-direction:column;
align-items:center;
justify-content: center;
height:430px;
padding:20px 30px;
width:600px;
background-color:#0D2133;
backdrop-filter:blur(10px);
background-color:rgba(0,0,0,0.1);
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
border-radius: 10px;
}
.c2in h3{
margin:0px;
font-family: 'Yantramanav', sans-serif;
font-size: 70px;
text-align: center;
line-height:60px;
}
.c2in h2{
margin:0px;
font-family: 'Yantramanav', sans-serif;
font-size: 30px;
}
.c2in h6{
font-family: 'Yantramanav', sans-serif;
margin:0px;
font-size:16px;
}
.c2in button{
padding: 10px 40px;
font-size: 16px;
border-radius: 30px;
transition: .5s;
border:none;
background-color:#121212;
color:var(--fontcolor);
font-weight: 900;
margin:10px 0px;
border:2px solid #fff;
}
.c2in button:hover{
transform: scale(1.05);
cursor: pointer;
background-color: #121212;
}
.c2in .icons{
display: flex;
align-items: end;
margin:10px 0px;
}
.c2in .icons i{
background-color: #f1f1f1;
margin: 2px 4px;
padding: 10px;
border-radius:30px;
color:#121212;
font-size:20px;
}
.c2in .icons i:hover{
cursor: pointer;
background-color:#ddd;
}
@media only screen and (max-width: 630px){
.card{
flex-direction: column;
width:98%;
height:fit-content;
}
.cardin1{
width:100%;
border-radius:10px;
}
.c2in{
width:95%;
}
}
.credit a{
text-decoration: none;
color: #fff;
font-weight: 800;
}
.credit{
color: #fff;
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 Halloween offer 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.
Post a Comment
Thank you
Learning robo team