{"id":70,"date":"2013-10-22T07:53:20","date_gmt":"2013-10-22T07:53:20","guid":{"rendered":"http:\/\/advancedwebhelp.com\/blog\/?p=70"},"modified":"2013-11-12T20:30:22","modified_gmt":"2013-11-12T20:30:22","slug":"css-box-shadow","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2013\/css-box-shadow","title":{"rendered":"CSS Box Shadow"},"content":{"rendered":"<h1>Create a Drop Shadow<\/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 drop shadows, account for old and new browsers. Most new browsers will recognize box-shadow, available with CSS3. However, browsers not recognizing CSS3 may appreciate -mos and webkit variations.<\/p>\n<aside class=\"sample\" style=\"width: 589px ;\">\n<h1><label>CSS<\/label>Sample<\/h1>\n<pre><code>\r\n.shadow { \r\n   -moz-box-shadow: 4px 4px 2px 3px #E3DFCD ; \r\n   -webkit-box-shadow: 4px 4px 2px 3px #E3DFCD ; \r\n   box-shadow: 4px 4px 2px 3px #E3DFCD ;    \r\n}\r\n<\/code><\/pre>\n<div class=\"sample shadow\"><\/div>\n<\/aside>\n<p class=\"gap\">In each case, there are 4 parameters to the shadow declaration. These are:<\/p>\n<ul>\n<li>param 1: horizontal offset of shadow.<\/li>\n<li>param 2: vertical offset of shadow.<\/li>\n<li>param 3: blur of shadow. (0 = no blur)<\/li>\n<li>param 4: spread of shadow. (0 = shadow is same size as blur)<\/li>\n<\/ul>\n<h1>Create an Inner Shadow<\/h1>\n<p>If you would like to create a 3D curve effect on the edge of a box, there is an option in the box shadow. 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.ishadow { \r\n   -moz-box-shadow: inset 2px 2px 2px 3px #E3DFCD ; \r\n   -webkit-box-shadow: inset 2px 2px 2px 3px #E3DFCD ; \r\n   box-shadow: inset 2px 2px 2px 3px #E3DFCD ;    \r\n}\r\n<\/code><\/pre>\n<div class=\"sample ishadow\"><\/div>\n<\/aside>\n<p class=\"gap\">The parameters are the same as the standard box-shadow, with the addition of a clarifying parameter &#8220;inset.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a Drop Shadow If you would like to create drop shadows, account for old and new browsers. Most new browsers will recognize box-shadow, available with CSS3. However, browsers not recognizing CSS3 may appreciate -mos and webkit variations. CSSSample .shadow { -moz-box-shadow: 4px 4px 2px 3px #E3DFCD ; -webkit-box-shadow: 4px 4px 2px 3px #E3DFCD ; [&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-70","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\/70","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=70"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}