- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Applying CSS Filters to Text</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="image text">
<img src="img/spb-2.jpg" alt="">
<p>Savior on the Spilled Blood</p>
</div>
<div class="compare text">
<div class="compare-left blur">
<div class="image">
<img src="img/spb-1.jpg" alt="">
<p>St. Isaac’s Cathedral</p>
</div>
</div>
<div class="compare-right shadow">
<div class="image">
<img src="img/spb-5.jpg" alt="">
<p>Trinity Cathedral</p>
</div>
</div>
</div>
</body>
</html>
CSS
.blur p {
}
.shadow p {
}
You’ve gone to a different page
Goalscompleted
0
- Apply the blur filter with a value of
2px
to the paragraph in the.blur
block, - and then apply a shadow filter with the value
2px 2px 2px black
to the paragraph in the.shadow
block.
Comments