- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello, linear-gradient!</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="content">
<h1>Hello, linear-gradient!</h1>
</div>
</body>
</html>
CSS
html,
body {
margin: 0;
height: 100%;
}
.content {
height: 100%;
background-color: yellow;
}
h1 {
margin: 0;
padding-top: 250px;
text-align: center;
font-size: 30px;
font-family: "Georgia", serif;
}
You’ve gone to a different page
Goalscompleted
0
- Add the
background-image
property to the.content
block with the valuelinear-gradient(yellow, green)
.
Comments