How to create a gradient background for an HTML page

后端 未结 5 1137
暗喜
暗喜 2021-01-03 07:02

I am in the process of learning HTML.

What is the best way to create a gradient background for an HTML page?

So far this is what I have as a background:

5条回答
  •  孤城傲影
    2021-01-03 07:19

    There are many online tools that create Gradients. Either you can use them or you can create your own

    Simply check here: http://www.cssmatic.com/gradient-generator

    Also you can create your own by this way

    CSS

    background-image: -webkit-linear-gradient(bottom, rgb(color_code) 25%, rgb(color_code) precent%, rgb(color_code) percent%);
    background-image: -moz-linear-gradient(bottom, rgb(color_code) 25%, rgb(color_code) precent%, rgb(color_code) percent%);
    background-image: -ms-linear-gradient(bottom, rgb(color_code) 25%, rgb(color_code) precent%, rgb(color_code) percent%);
    background-image: -o-linear-gradient(bottom, rgb(color_code) 25%, rgb(color_code) precent%, rgb(color_code) percent%);
    background-image: linear-gradient(bottom, rgb(color_code) 25%, rgb(color_code) precent%, rgb(color_code) percent%);
    

提交回复
热议问题