how to make a css gradient stop after so many pixels?

前端 未结 4 733
-上瘾入骨i
-上瘾入骨i 2021-02-05 08:14
-moz-radial-gradient(center -200px , ellipse farthest-corner, #323C49 0%, #718299 65%) no-repeat scroll 0 0 transparent;

I have this code above and i j

4条回答
  •  庸人自扰
    2021-02-05 08:31

    You can use the background-size property together.

    like this:

    
        
        div {
            height:100px;
            background:-moz-radial-gradient(center, ellipse farthest-corner, #323C49 0%, #718299 65%) no-repeat;
            background-size:auto 30px;
        }
        
    
    

提交回复
热议问题