Gradient word color in css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home</title>
<style>
h1{
font-size: 200px;
background: linear-gradient(to right,red , #3727c7);
-webkit-background-clip:text;
-webkit-text-fill-color: transparent;
}
</style>
</head>
<body>
<h1>Rajnish</h1>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home</title>
<style>
h1{
font-size: 200px;
background: linear-gradient(to right,red , #3727c7);
-webkit-background-clip:text;
-webkit-text-fill-color: transparent;
}
</style>
</head>
<body>
<h1>Rajnish</h1>
</body>
</html>
Comments
Post a Comment