How to Create Quote 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
**/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&display=swap');
*{
box-sizing: border-box;
}
html{
height: 100%;
}
body{
font-family: Arial, sans-serif;
height: 100%;
background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
}
.section1{
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card{
display: flex;
flex-direction:row;
justify-content: center;
border-radius:10px;
width:750px;
height:520px;
padding:40px 20px;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
background-color: rgba(255,255,255, 0.90);
}
.cardin1{
display: flex;
flex-direction:column;
justify-content: center;
width:30%;
padding:0 10px;
}
.cardin1 img{
width: 350px;
height:450px;
border-radius:6px;
margin:10px 0px 10px -120px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
.cardin2{
display: flex;
flex-direction:column;
justify-content: center;
align-items: center;
width:70%;
margin-left:40px;
}
.cardin2 h2{
margin:2px 0;
font-family: 'Barlow Condensed', sans-serif;
font-size: 45px;
line-height:90px;
color: #121212;
}
.cardin2 h6{
margin:0 30px 0 auto;
text-align:right;
font-size:16px;
}
@media only screen and (max-width: 1024px){
.card{
width:70%;
flex-direction:column;
height: fit-content;
}
.cardin1{
width: 100%;
align-items: center;
}
.cardin1 img{
margin:10px;
}
.cardin2{
width: 100%;
margin:10px;
}
.cardin2 h2{
text-align: center;
}
}
@media only screen and (max-width: 630px){
.card{
width:98%;
flex-direction:column;
height: fit-content;
}
.cardin1{
width: 100%;
align-items: center;
}
.cardin1 img{
margin:10px;
}
.cardin2{
width: 100%;
margin:10px;
}
.cardin2 h2{
text-align: center;
font-size:26px;
line-height:normal;
}
}
.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;
}
Thank you for reading our blog. If you face any problem in Creating a Quote 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.
إرسال تعليق
Thank you
Learning robo team