Hi dear welcome to "CodePrime" Blog . In this post we are going to learn how to use linear-gradient property in css. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linear-Gradient-css by codeprime</title>
</head>
<body>
</body>
</html>
CSS CODE
body{
width: 100%;
min-height: 100vh;
background-image:linear-gradient(red ,blue )
}
0 Comments