How can we make a circle and line in css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can we make a circle and line in css?

26th Jun 2018, 7:42 AM
Rishabh Singh
Rishabh Singh - avatar
4 Answers
+ 37
i hope this link will help you☺ https://www.sololearn.com/Discuss/1368386/?ref=app
26th Jun 2018, 8:20 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 4
There are lots of ways to accomplish this. The best answer for your situation would require you to provide more context. Otherwise, generically speaking, The easiest way to make a line is with the <hr> tag. This is not necessarily semantic and does not appear the same way across browsers. The easiest way to make a circle is to make a div with its length equal to its width and 50% border-radius. You can also use canvas or svg. I hope this helps! :) -- Janning.
26th Jun 2018, 8:20 AM
Janning⭐
Janning⭐ - avatar
+ 2
use hr tag in html if u need in css use this border-bottom: 2px solid #000;
28th Jun 2018, 2:04 AM
Anusuya S
Anusuya S - avatar
+ 1
circle- height :100px; width : 100px; border-radius: 50%;
28th Jun 2018, 1:59 AM
Anusuya S
Anusuya S - avatar