{"id":122,"date":"2013-10-22T19:21:01","date_gmt":"2013-10-22T19:21:01","guid":{"rendered":"http:\/\/advancedwebhelp.com\/blog\/?p=122"},"modified":"2013-11-12T20:10:35","modified_gmt":"2013-11-12T20:10:35","slug":"css-rounded-corners","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2013\/css-rounded-corners","title":{"rendered":"CSS Rounded Corners"},"content":{"rendered":"<h1>Create a Rounded Corner 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 rounded corners on a div, account for old and new browsers. Most new browsers will recognize rounded corners, available with CSS3. However, browsers not recognizing CSS3 may appreciate -mos, -webkit and -khtml variations.<\/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    -moz-border-radius: 10px;\r\n    -webkit-border-radius: 10px;\r\n    -khtml-border-radius: 10px; \r\n    border-radius: 10px; \r\n}\r\n\r\n<\/code><\/pre>\n<div class=\"sample rounded\"><\/div>\n<\/aside>\n<p class=\"gap\">In each case, there is 1 parameter to the border radius declaration. That is:<\/p>\n<ul>\n<li>param 1: The corner radius.<\/li>\n<\/ul>\n<h1>Create Selected Rounded Corners<\/h1>\n<p>If you would like to create rounded corners on selected corners, there is an option to handle this situation. This is available in CSS3, and special case options for -moz and -webkit browsers.<\/p>\n<aside class=\"sample\">\n<h1><label>CSS<\/label>Sample<\/h1>\n<pre><code>\r\n.rounding { \r\n  -moz-border-radius-topleft: 10px;\r\n  -moz-border-radius-topright: 20px;\r\n  -moz-border-radius-bottomright: 30px;\r\n  -moz-border-radius-bottomleft: 40px ;\r\n\r\n  -webkit-border-top-left-radius: 10px;\r\n  -webkit-border-top-right-radius: 20px;\r\n  -webkit-border-bottom-right-radius: 30px;\r\n  -webkit-border-bottom-left-radius: 40px ;\r\n\r\n  border-top-left-radius: 10px;\r\n  border-top-right-radius: 20px ;\r\n  border-bottom-left-radius: 30px ;\r\n  border-bottom-right-radius: 40px ;\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 a Rounded Corner on a DIV If you would like to create rounded corners on a div, account for old and new browsers. Most new browsers will recognize rounded corners, available with CSS3. However, browsers not recognizing CSS3 may appreciate -mos, -webkit and -khtml variations. CSSSample .rounded { -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 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-122","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\/122","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=122"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/122\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}