- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Brightness and Contrast</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="image">
<img src="img/spb-1.jpg" alt="">
</div>
<div class="compare">
<div class="compare-left brightness">
<div class="image">
<img src="img/spb-1.jpg" alt="">
</div>
</div>
<div class="compare-right contrast">
<div class="image">
<img src="img/spb-1.jpg" alt="">
</div>
</div>
</div>
</body>
</html>
CSS
.brightness img {
}
.contrast img {
}
You’ve gone to a different page
Goalscompleted
0
- Apply the
filter: brightness(2)
filter to the image in the.brightness
block, - and then apply the
contrast(2)
filter to the image in the.contrast
block.
Comments