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

mysql - How to enter php data into a html multiple select box -

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

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -