- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Uniform Multicolor Gradient</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<img src="bear.svg" alt="Northern landscape">
<div class="aurora"></div>
</body>
</html>
CSS
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #003f86;
}
.aurora {
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 500px;
background-image: none;
}
You’ve gone to a different page
Goalscompleted
0
- Add a “top-down” linear gradient to the
.aurora
block with the colors#063365
,#29b593
,#4ecad2
,#13a0f0
,#6d4bf6
,#731cb7
,#003f86
.
Comments