Home  »  CodeSnippets   »   How to Display Text With Multiple Colors in CSS

How to Display Text With Multiple Colors in CSS

Posted: February 7, 2022 | by Michael Bright

Two colors text in CSS:

h1 {
  font-size: 72px;
  background: -webkit-linear-gradient(green, red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.