Set a linear gradient background for the <div> element, going from the top to bottom, transitioning from "rgba(0,255,0,0.2)" to "rgba(0,255,0,1)". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set a linear gradient background for the <div> element, going from the top to bottom, transitioning from "rgba(0,255,0,0.2)" to "rgba(0,255,0,1)".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!-- w  ww.j  av a  2  s.com-->
    background: linear-gradient(rgba(0,255,0,0.2), rgba(0,255,0,1));
}
</style>
</head>
<body>

<div style="height:200px"></div>

</body>
</html>

Related Tutorials