- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Multiple Shadows</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<button class="btn" type="button">Button</button>
</body>
</html>
CSS
body {
background-color: black;
font-size: 18px;
font-family: "Tahoma", sans-serif;
}
.btn {
display: block;
margin: 100px auto;
padding: 15px 20px;
width: 150px;
border: none;
box-sizing: content-box;
background-color: #34495e;
color: white;
text-align: center;
text-transform: uppercase;
font: inherit;
}
You’ve gone to a different page
Goalscompleted
0
Add two shadows to the button:
- Assign the first shadow a vertical offset of
-5px
, feathering of10px
, stretch of-3px
, and the color:#3498db
. - Assign the second shadow a vertical offset of
-5px
, feathering of10px
, stretch of-3px
, and color:#2ecc71
.
The horizontal offset for both shadows should be zero.
Comments