Could any please explain why this code is not working
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
div{
background:linear-gradient(90deg,red,yellow,green);
</style>
</head>
<body>
<div></div>
</body>
</html>
Could any please explain why this code is not working
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
div{
background:linear-gradient(90deg,red,yellow,green);
</style>
</head>
<body>
<div></div>
</body>
</html>
You are missing the closing }
and the div has no content so no height;
div {
background: linear-gradient(90deg, red, yellow, green);
height: 20px;
}
For better understanding of the challenge by anyone among us you must attach or go for **Ask For Help**
Section , which include all knowledge of the challenge and we will give you more fast solution.
hope you understand.
like this if you unstand this message.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.