- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stretching the Shadow</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;
background-color: #3498db;
box-shadow: 0 0 0 0 #34495e;
color: white;
text-align: center;
text-transform: uppercase;
font: inherit;
}
You’ve gone to a different page
Goalscompleted
0
- Give the original shadow a stretch of
5px
. - And then decrease it to
70px
. - Then assign a stretch of
-5px
.
Comments