×
×
Correct!
Set a linear gradient background for the <div> element, going diagonally from top left to bottom right.
<style>
div {
background-image: linear-gradient(to bottom right, white, green);
}
</style>
<body>
<div style="height:200px"></div>
</body>
<style>
div {
background-image: linear-gradient(to right bottom, white, green);
}
</style>
<body>
<div style="height:200px"></div>
</body>
Not CorrectClick here to try again. Correct!<style> div { background-image: linear-gradient(, white, green); } </style> <body> <div style="height:200px"></div> </body> |