How to create circles around a circle with css, javascript?

前端 未结 5 1494
感情败类
感情败类 2020-12-14 18:16

I would like to create a circle (without any animation) which is surrounded by other circles, like this:

\"my

5条回答
  •  感动是毒
    2020-12-14 18:53

    Using css you can try something like that. but use circle tag of HTML5 will give you a better result.

    http://jsbin.com/etuzis/1/

    HTML

    
    
    
    
    JS Bin
    
    
      

    CSS

    .div1{
      margin:40px 10px 10px 50px;
      position:relative;
      width:150px;
      height:150px;
      background-color:#ac5;
      border-radius:100px;
    }
    .div2{
      position:absolute;
      width:40px;
      height:40px;
      background-color:#ac5;
      border-radius:100px;
    }
    

提交回复
热议问题