{"id":141,"date":"2013-10-22T20:19:35","date_gmt":"2013-10-22T20:19:35","guid":{"rendered":"http:\/\/advancedwebhelp.com\/blog\/?p=141"},"modified":"2013-11-12T20:15:00","modified_gmt":"2013-11-12T20:15:00","slug":"css-elliptical-corners","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2013\/css-elliptical-corners","title":{"rendered":"CSS Elliptical Corners"},"content":{"rendered":"<h1>Create Elliptical Corners on a DIV<\/h1>\n<p><a href=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/css.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-332 alignright\" style=\"margin-top: -20px ;\" alt=\"CSS logo\" src=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/css.png\" width=\"200\" height=\"180\" srcset=\"https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/css.png 200w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/css-148x133.png 148w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/css-31x27.png 31w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/css-38x34.png 38w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a>If you would like to create elliptical corners on a div, you can accomplish this with CSS3. Most new browsers will recognize elliptical corners, available with CSS3. However, browsers not recognizing CSS3 may appreciate -webkit variations (the -mos-border-radius does not support elliptical corners).<\/p>\n<aside class=\"sample\" class=\"sample\" style=\"width: 589px ;\">\n<h1><label>CSS<\/label>Sample<\/h1>\n<pre><code>\r\n.rounded {\r\n    -webkit-border-radius: 40px\/10px ;\r\n    border-radius: 40px\/10px; \r\n}\r\n\r\n<\/code><\/pre>\n<div class=\"sample rounded\" style=\"margin-top: 4px !important;\"><\/div>\n<\/aside>\n<p class=\"gap\">In each case, there are 2 parameter to the border radius declaration. That is:<\/p>\n<ul>\n<li>param 1: The horizontal radius.<\/li>\n<li>param 2: the vertical radius.<\/li>\n<\/ul>\n<h1>Create Selected Elliptical Corners<\/h1>\n<p>If you would like to create elliptical corners on selected corners, there is an option to handle this situation. This is available in CSS3, and special case options for old -webkit browsers.<\/p>\n<aside class=\"sample\">\n<h1><label>CSS<\/label>Sample<\/h1>\n<pre><code>\r\n.rounding { \r\n\r\n  -webkit-border-top-left-radius: \r\n     40px 10px;\r\n  -webkit-border-top-right-radius: \r\n     40px 10px;\r\n  -webkit-border-bottom-right-radius: \r\n     40px 10px;\r\n  -webkit-border-bottom-left-radius: \r\n     40px 10px ;\r\n\r\n  border-top-left-radius: 40px 10px;\r\n  border-top-right-radius: 40px 10px ;\r\n  border-bottom-left-radius: 40px 10px ;\r\n  border-bottom-right-radius: 40px 10px ;\r\n}\r\n<\/code><\/pre>\n<div class=\"sample rounding\"><\/div>\n<\/aside>\n<p class=\"gap\">The parameters are the same as the standard border radius, but affects only the selected corner.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create Elliptical Corners on a DIV If you would like to create elliptical corners on a div, you can accomplish this with CSS3. Most new browsers will recognize elliptical corners, available with CSS3. However, browsers not recognizing CSS3 may appreciate -webkit variations (the -mos-border-radius does not support elliptical corners). CSSSample .rounded { -webkit-border-radius: 40px\/10px ; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-css"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":467,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions\/467"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}