How to make one circle inside of another using CSS

后端 未结 13 2316
-上瘾入骨i
-上瘾入骨i 2020-12-30 03:54

I am trying to make one circle inside of another circle using css, but I am having an issue making it completely centered. I am close, but still not there. Any ideas?

<
13条回答
  •  抹茶落季
    2020-12-30 04:37

    See How I have positioned the Divs, Just border-radius should do the Job

    .outer{width:500px;height:500px;background:#f00;border-radius:50%;position:relative;top:0;left:100;}
    .inner{width:250px;height:250px;background:#000;border-radius:50%;position:absolute;top:125;left:125;}
    
    
    
       

    DEMO

提交回复
热议问题