- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The box-shadow Property</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;
color: white;
text-align: center;
text-transform: uppercase;
font: inherit;
}
You’ve gone to a different page
Goalscompleted
0
- Add the property
box-shadow
with the value0 0 5px 0 #34495e
to the element with class.btn
.
Comments