Draw ellipses with 'border-radius'

 You can draw ellipses and other curved shapes by giving two values to 'border-radius' in CSS.


For example:


     border-radius: 50% 49% 40% 40% /

                    45% 45% 45% 45%;


The first set of values are horizontal radii and the second are vertical radii.


This is used in a Github icon that I adapted. See:


      https://codepen.io/Bert-Beckwith/pen/yyNYeZm


The border-radius value above is used for the head which has an 'aqua' color.




Comments

Popular posts from this blog

Minifying CSS

Violating Flickr's terms of service

How a CSS fish animation works