0

Gradint color on text!

Hey Developers, i would like to ask about how to make text gradient color on CSS?

11th Nov 2024, 12:53 AM
Mohammed Wagih
Mohammed Wagih - avatar
1 Antwort
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>
11th Nov 2024, 2:55 PM
Ethan
Ethan - avatar