Today i worked on designing a greeting card with html and css which consisted of blending structure with style to create a small, simple digital page. I made the layout using html, then tried to bring it to life with colors, and decorative elements through css i will add photos below

body {
font-family: Arial, sans-serif;
padding: 40px;
text-align: center;
background-color: brown;
}
.card {
background-color: white;
max-width: 400px;
padding: 40px;
margin: 0 auto;
border-radius: 10px;
box-shadow: 0 4px 8px gray;
transition: transform 0.3s, background-color 0.3s ease
}
.card:hover {
background-color: khaki;
transform: scale(1.1);
}
h1::before {
content: "🥳 ";
}
h1::after {
content: " 🥳";
}
.message {
font-size: 1.2em;
margin-bottom: 20px;
}
.card-links {
margin-top: 20px;
display: flex;
justify-content: space-around;
}
.card-links a {
text-decoration: none;
font-size: 1em;
padding: 10px 20px;
border-radius: 5px;
color: white;
background-color: midnightblue;
transition: background-color 0.3s ease;
}
.card-links a:hover {
background-color: orangered;
}
.card-links a:active {
background-color: midnightblue;
}
.card-links a:focus {
outline: 2px solid yellow;
}
.card-links a:visited {
color: crimson;
}
section {
margin: 20px auto;
max-width: 600px;
background-color: whitesmoke;
padding: 20px;
border-radius: 10px;
}
section:hover{
transform: skewX(10deg);
}
all the code that was including in the css to create to page (75% of the work)


Leave a Reply