- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Difference Between box-shadow and drop-shadow</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="compare symbol">
<div class="compare-left box-shadow">
<img src="img/symbol.png" alt="">
</div>
<div class="compare-left filter-shadow">
<img src="img/symbol.png" alt="">
</div>
</div>
</body>
</html>
CSS
.box-shadow img {
}
.filter-shadow img {
}
You’ve gone to a different page
Goalscompleted
0
- Assign the shadow
box-shadow: 0 0 10px red
to the image in the.box-shadow
block, - For the image in the
.filter-shadow
block, assign adrop-shadow
filter with the value0 0 10px red
. - And then assign a white background color to both images:
background-color: #ffffff
.
Comments