0
Gradint color on text!
Hey Developers, i would like to ask about how to make text gradient color on CSS?
1 Réponse
0
heres an example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Gradient Example</title>
<style>
.gradient-background {
width: 100%;
height: 100vh; /* Full viewport height */
background: linear-gradient(to right, red, yellow, green);
}
</style>
</head>
<body>
<div class="gradient-background">
<h1>Gradient Background</h1>
</div>
</body>
</html>