tl;dr;
.text-gradient {
// 👇 show a solid color in older browsers (e.g., IE11)
color: darkblue;
// 👇 show the text gradient in modern browsers
@supports (--css: variables) {
background: linear-gradient(to right, darkblue, darkorchid);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
}
}
All comments posted on 'CSS Text Gradients — The right, progressive way.' are held for moderation and only published when on topic and not rude. Get a gold star if you actually read & follow these rules.
You may write comments in Markdown. This is the best way to post any code, inline like `<div>this</div>` or multiline blocks within triple backtick fences (```) with double new lines before and after.
Want to tell me something privately, like pointing out a typo or stuff like that? Contact Me.