Hy, I wish to draw a circle in a html page, unfortunately I cannot use css3 stuff like: border-radius, is there any more basic other way without html5 or css3? thx!
Asked
Active
Viewed 1,424 times
-2
-
Why you cannot use CSS3? – laaposto Nov 11 '14 at 12:46
-
2Create a circle image, and import it with `
`. – LcSalazar Nov 11 '14 at 12:47
-
3http://stackoverflow.com/questions/6936972/draw-circle-using-css-alone – brandelizer Nov 11 '14 at 12:47
-
Do you actually want to 'draw' a circle or do you just want to display one somewhere? What size circle and to what end? – Tim Ogilvy Nov 11 '14 at 13:48
2 Answers
1
In order of complexity, here are your options:-
1) Use the <IMG> element to link to and display an image of a circle
2) Use CSS to create one (I know you've already said you can't do this)
3) Use the CANVAS element and Javascript to draw a circle in the element
4) You could also use SVG and (again) Javascript to do this - or you could use a javascript library like Raphael to achieve this.
Without using "HTML5", CSS or JS however, I'd say the only remaining option is #1.

Mat Richardson
- 3,576
- 4
- 31
- 56
-
Or this http://stackoverflow.com/questions/6936972/draw-circle-using-css-alone which would be much more flexible than an image – Turnip Nov 11 '14 at 12:52
-
-
0
this called circle
.circle{
border: 1px solid #000;
border-radius: 50%;
width: 100px;
height: 100px;
}
<div class="circle"></div>

Avinash Antala
- 641
- 5
- 10