How to give a div oval shape?

前端 未结 5 910
粉色の甜心
粉色の甜心 2020-12-03 18:17

I tried a lot on oval shape which have cut in both sides but not able to do it please \"enter<

5条回答
  •  鱼传尺愫
    2020-12-03 18:36

    Change the values on css:

    #demo {
        width: 100%;
        height: 600px;
        background: white;
        -moz-border-radius: 50% / 250px;
        -webkit-border-radius: 40% / 250px;
        border-radius: 50% / 250px;
    
        z-index: 100;
        position: relative;
    }
    

提交回复
热议问题