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

后端 未结 8 2589
南旧
南旧 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:15

    You can use special characters to make lots of shapes. Examples: http://jsfiddle.net/martlark/jWh2N/2/

    hollow square
    solid circle
    open circle

    enter image description here

    Many more can be found here: HTML Special Characters

提交回复
热议问题