- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Multiple Borders for One Element</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<button class="btn" type="button">Button</button>
</body>
</html>
CSS
body {
background-image: url("bg.jpg");
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;
border-radius: 5px;
background-color: #34495e;
color: white;
text-align: center;
text-transform: uppercase;
font: inherit;
}
You’ve gone to a different page
Goalscompleted
0
Add three shadows to the button. All shadows must have zero horizontal offset, vertical offset, and feathering.
- First: stretch of
5px
, color:#e74c3c
. - Second: stretch of
10px
, color:#f1c40f
. - Third: stretch of
15px
, color:#2ecc71
.
Comments