Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
247 views
in Technique[技术] by (71.8m points)

Make CSS color with linear Gradients

I am new to CSS users, I really like this color. Is there anyone who knows how to make the background color like the picture that I point to blow?

I try to use linear gradients but did not get it.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try This Code

Generated From This Page https://cssgradient.io/

.ht{
background: rgb(77,77,77);
background: linear-gradient(180deg, rgba(77,77,77,1) 0%, rgba(42,42,42,1) 100%, rgba(0,212,255,1) 100%);width:500px;height:500px;
}
<div class="ht"><h1>Cool Background </h1></div>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...