Making gradient background fill page with css

后端 未结 7 1183
醉酒成梦
醉酒成梦 2020-12-14 01:22

I have this gradient background but I don\'t want it to repeat the way it does to fill the page, I want it to be one large gradient that fills the page.

html:

<
7条回答
  •  天命终不由人
    2020-12-14 01:45

    As of today, none of the above are working. The linear gradient is repeating itself.

    To stretch the gradient over the entire page you have to add this in the css:

    body {
      background: linear-gradient(to left top, blue, red) fixed;
    }
    

    That's all.

提交回复
热议问题