How to make one circle inside of another using CSS

后端 未结 13 2185
-上瘾入骨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:43

    Here is an example of a circle with outer border.

    HTML:

    <div id="inner-circle"></div>
    

    Styles:

        #inner-circle {
        background: #385a94;
        border : 2px solid white;
        border-radius: 50%;
        height:30px;
        width:30px;
        position: relative;
        box-shadow: 0 0 0 1px #cfd1d1;
        }
    

    See results: JSFiddle

    0 讨论(0)
提交回复
热议问题