- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sharp Color Transitions</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="flag"></div>
</body>
</html>
CSS
body {
background-color: #f5f5f5;
}
.flag {
margin: 100px auto;
width: 360px;
height: 240px;
background-image: linear-gradient(#ffffff 25%, #1199ff 50%, #0039a6 75%, #d52b1e 100%);
box-shadow: 1px 1px 3px #333333;
}
You’ve gone to a different page
Goalscompleted
0
- Change the positions of the first and second colors to
33%
. - Then change the positions of the third and fourth colors to
66%
. - Then change the second color from
#1199ff
to#0039a6
.
Comments