html - calculate radius of a circle using javascript -


I am trying to calculate the radius of a circle using javascript.

  .circle {position: absolute; width: 100px; height: 100 pixels; border-radius: 70px; background: red;}  
< Pre class = "snippet-code-html lang-html prettyprint-override"> section class = "circle">

The width and height of this circle is 100x100. How do I calculate my radius?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -