How to make Stylish Social Media 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=Play&display=swap');
*{
box-sizing: border-box;
}
:root{
--color:#eee;
}
body{
font-family: Arial, sans-serif;
margin:0%;
}
.section1{
height: 100vh;
display: flex;
flex-direction: column;
justify-content:center;
align-items: center;
background-image: linear-gradient(-225deg, #5271C4 0%, #B19FFF 48%, #ECA1FE 100%);
}
.card{
display: flex;
flex-direction:column;
align-items: center;
justify-content:center;
border-radius: 10px;
width:300px;
height:450px;
background-color: #121212;
padding:20px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.cardin1{
padding:10px 0;
display: flex;
flex-direction:column;
align-items:center;
border-radius: 10px;
height:360px;
width:400px;
background-image: linear-gradient(-225deg, #FFFEFF 0%, #D7FFFE 100%);
}
.cardin1 img{
width: 110px;
height: 110px;
border-radius: 50%;
margin:20px 0px;
border: 6px solid #121212;
object-fit:cover;
}
.cardin1 h2{
margin:0px;
font-family: 'Play', sans-serif;
font-size: 25px;
}
.cardin1 h6{
margin:0px;
font-size:12px;
}
.cardin1 h5{
margin:0px;
font-size:18px;
font-weight: 300;
}
.cardin1 p{
margin:0px;
font-size:16px;
font-weight:100;
}
.cardin1 Button{
margin:0px;
font-size:18px;
font-weight:100;
border: none;
border-radius: 12px;
padding: 10px 25px;
background-color: #121212;
color: var(--color);
transition: .5s;
box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.cardin1 Button:hover{
transform: scale(1.05);
cursor: pointer;
}
.cardin1 .info{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
width:360px;
height:60px;
column-gap:40px;
margin:10px 0px;
}
@media only screen and (max-width: 630px){
.card{
width:300px;
}
.cardin1{
width:350px;
}
}
.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 Stylish Social Media 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