How do I create a circle or square with just CSS - with a hollow center?

后端 未结 8 2631
南旧
南旧 2020-12-13 08:47

It should just basically be an outline of the square or circle - that I can style accordingly (i.e. change the color to whatever I want, change the thickness of the border,

8条回答
  •  孤街浪徒
    2020-12-13 09:30

    i don't know of a simple css(2.1 standard)-only solution for circles, but for squares you can do easily:

    .squared {
        border: 2x solid black;
    }
    

    then, use the following html code:

    an image 
    

提交回复
热议问题