Text Card Using HTML and CSS

 Create a Awesome text card using HTML and CSS - 

Text Card using HTML and CSS

HTML File Content - 

<!DOCTYPE html>
<html>
<head>
<title>Text Card</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

<div class="box">
<div class="header">
<h1>14</h1>
</div>
<div class="footer">
<p>October 14, 2020</p>
</div>
</div>

</body>
</html>


CSS File Content - 


*{
margin: 0;
padding: 0;
font-family: cursive;
box-sizing: border-box;
}
body{
height: 100vh;
display: grid;
place-items: center;
}
.box{
width: 400px;
height: 500px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25),
0 6px 20px 0 rgba(0,0,0,0.2);
}
.header{
height: 400px;
line-height: 400px;
text-align: center;
background-color: #4caf50;
}
.header h1{
font-size: 100px;
color: white;
}
.footer{
text-align: center;
height: 100px;
line-height: 100px;
font-weight: 600;
}







Comments