{"id":48,"date":"2016-02-25T06:20:38","date_gmt":"2016-02-25T06:20:38","guid":{"rendered":"https:\/\/danielepais.com\/journal\/2016\/02\/25\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/"},"modified":"2022-01-24T22:28:35","modified_gmt":"2022-01-24T15:28:35","slug":"how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css","status":"publish","type":"post","link":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/","title":{"rendered":"How to drop a shadow and add a border to an image using CSS"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/24aef4085725\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=75&h=0&c=0 75w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/87be7ba9a756\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=100&h=0&c=0 100w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/07dbbc2a11ec\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=150&h=0&c=0 150w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/03bfb9c923b2\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=240&h=0&c=0 240w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/a6af0fa09290\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=320&h=0&c=0 320w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/960d0405d802\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=500&h=0&c=0 500w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/7b9b9b399176\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=640&h=0&c=0 640w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/de0771ea24de\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=800&h=0&c=0 800w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/982448fc5327\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=1024&h=0&c=0 1024w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/e8c18738e58c\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=1280&h=0&c=0 1280w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/ee14670b0705\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48&w=1600&h=0&c=0 1600w\" style=\"float: right; height: 147px; margin-left: 6px; margin-right: 6px; width: 300px;\" title=\"How to drop a shadow and add a border using your CSS\" fifu-data-src=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wMi9kcm9wLXNoYWRvdy1hbmQtYWRkLWJvcmRlci12aWEtY3NzLmpwZw\/5f920a59046e\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp?p=48\" alt=\"How to drop a shadow and add a border using your CSS\" width=\"391\" height=\"147\" \/>This little code can come very handy especially if you have many <a href=\"https:\/\/danielepais.com\/journal\/compressing-images-with-squoosh\/\">images<\/a> to add too your <a href=\"https:\/\/danielepais.com\/journal\/web-scraping-increase-sales\/\">web<\/a> pages and wants to automate the job of styling them. There is not much if no difference whatsoever in what they do, or what the result will be, in other words the page will look the same, however, as a rule of thumb, you should only use one unique ID per element, (so ID &#8220;are&#8221; unique). Classes can be used multiple times in the same element. Not everyone even care of this when writing web pages code, however, if you want to do your job at best and you are concerned on passing HTML\/CSS validation you should definitely select the right one according to how many times you are running your code on the same element. For more of this tutorials, stay tuned ..or, Follow me in any of the social <a href=\"https:\/\/danielepais.com\/journal\/sharing-a-network-with-linux-and-windows-using-samba\/\">network<\/a> indicated by the small icons on my signature below. <strong>STEP 1 &#8211; \u00a0<\/strong>Here\u00a0is\u00a0the code that you need to add to you stylesheet: <iframe loading=\"lazy\" src=\"https:\/\/danielepais.com\/blog\/code-snippets\/drop-shadow-on-images-with-css\/how-to-drop-a-shadow-and-add-a-border-with-css.html\" width=\"100%\" height=\"125\" frameborder=\"0\" scrolling=\"yes\"><\/iframe><\/p>\n<p>Now that we have added the code to our stylesheet let&#8217;s concentrate on to the web page where you would like to see the images displayed with the new styling.<\/p>\n<p><strong>STEP 2<\/strong> &#8211; Add the <a href=\"https:\/\/danielepais.com\/journal\/a-custom-html-css-link-box\/\">html<\/a> code to your web page body.<\/p>\n<p><iframe loading=\"lazy\" title=\"Add this code to see the drop shadow images you have generated via your CSS code \" src=\"https:\/\/danielepais.com\/blog\/code-snippets\/drop-shadow-on-images-with-css\/how-to-drop-a-shadow-and-add-a-border-with-css[web-page-code].html\" width=\"100%\" height=\"75\" frameborder=\"0\" scrolling=\"yes\"><\/iframe><\/p>\n<p>That&#8217;s it, job done. Just remember to replace the placeholder text with the name of your image and add any other customization you might require to your HTML code. Refresh your web page and now you can see your images with the new styling. One consideration, you might have noticed that I have used an ID instead of a class on our CSS code. If you are planning to have the same code running multiple times in the same element you might consider using a class.\u00a0<\/p>\n<p><strong>Difference between ID and Classes<\/strong><\/p>\n<p><strong><iframe loading=\"lazy\" title=\"Difference between ID and classes on CSS coding\" src=\"https:\/\/danielepais.com\/blog\/code-snippets\/drop-shadow-on-images-with-css\/id-and-classes.html\" width=\"100%\" height=\"55\" frameborder=\"0\" scrolling=\"yes\"><\/iframe><\/strong><\/p>\n<p>There is not much if no difference whatsoever in what they do, or what the result will be, in other words the page will look the same, however, as a rule of thumb, you should only use one unique ID per element, (so ID &#8220;are&#8221; unique). Classes can be used multiple times in the same element. Not everyone even care of this when writing web pages code, however, if you want to do your job at best and you are concerned on passing HTML\/CSS validation you should definitely select the right one according to how many times you are running your code on the same element. For more of this tutorials, stay tuned ..or, Follow me in any of the social network indicated by the small icons on my signature below.<\/p>\n<p><strong>About the Author<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This littl<img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-47\" alt=\"How to drop a shadow and add a border using your CSS\" src=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/drop-shadow-and-add-border-via-css.jpg\" style=\"float:right; height:75px; margin-left:6px; margin-right:6px; width:200px\" title=\"How to drop a shadow and add a border using your CSS\" width=\"391\" height=\"147\" srcset=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/drop-shadow-and-add-border-via-css.jpg 391w, https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/drop-shadow-and-add-border-via-css-300x113.jpg 300w\" sizes=\"(max-width: 391px) 100vw, 391px\" \/>e code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.<\/p>\n","protected":false},"author":1,"featured_media":6543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[225],"tags":[175,177,173,151,176],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Daniele Pais\"\/>\n\t<meta name=\"google-site-verification\" content=\"googleb91c9505ed997b99\" \/>\n\t<meta name=\"msvalidate.01\" content=\"AD1C96C338E051848BE08C67378B20CA\" \/>\n\t<meta name=\"keywords\" content=\"add border,coding,css,drop shadow,how to,design\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Daniele Pais Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to drop a shadow and add a border to an image using CSS | Phuket Web Design\" \/>\n\t\t<meta property=\"og:description\" content=\"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp\" \/>\n\t\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1462\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-02-25T06:20:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-01-24T15:28:35+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@daniele_pais\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to drop a shadow and add a border to an image using CSS | Phuket Web Design\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2017\/10\/daniele-pais-digital-design.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#article\",\"name\":\"How to drop a shadow and add a border to an image using CSS | Phuket Web Design\",\"headline\":\"How to drop a shadow and add a border to an image using CSS\",\"author\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp\",\"width\":2048,\"height\":1462,\"caption\":\"How to drop a shadow and add a border to an image using CSS\"},\"datePublished\":\"2016-02-25T06:20:38+07:00\",\"dateModified\":\"2022-01-24T22:28:35+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#webpage\"},\"articleSection\":\"Design, add border, coding, css, drop shadow, how to\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/danielepais.com\\\/journal\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/design\\\/#listItem\",\"name\":\"Design\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/design\\\/#listItem\",\"position\":2,\"name\":\"Design\",\"item\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/design\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#listItem\",\"name\":\"How to drop a shadow and add a border to an image using CSS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#listItem\",\"position\":3,\"name\":\"How to drop a shadow and add a border to an image using CSS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/design\\\/#listItem\",\"name\":\"Design\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#person\",\"name\":\"Daniele Pais\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniele Pais\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/\",\"name\":\"Daniele Pais\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniele Pais\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#webpage\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/\",\"name\":\"How to drop a shadow and add a border to an image using CSS | Phuket Web Design\",\"description\":\"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#mainImage\",\"width\":2048,\"height\":1462,\"caption\":\"How to drop a shadow and add a border to an image using CSS\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\\\/#mainImage\"},\"datePublished\":\"2016-02-25T06:20:38+07:00\",\"dateModified\":\"2022-01-24T22:28:35+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#website\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/\",\"name\":\"Phuket Web Design\",\"description\":\"Digital Print\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to drop a shadow and add a border to an image using CSS | Phuket Web Design","description":"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.","canonical_url":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/","robots":"max-image-preview:large","keywords":"add border,coding,css,drop shadow,how to,design","webmasterTools":{"google-site-verification":"googleb91c9505ed997b99","msvalidate.01":"AD1C96C338E051848BE08C67378B20CA","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#article","name":"How to drop a shadow and add a border to an image using CSS | Phuket Web Design","headline":"How to drop a shadow and add a border to an image using CSS","author":{"@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author"},"publisher":{"@id":"https:\/\/danielepais.com\/journal\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp","width":2048,"height":1462,"caption":"How to drop a shadow and add a border to an image using CSS"},"datePublished":"2016-02-25T06:20:38+07:00","dateModified":"2022-01-24T22:28:35+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#webpage"},"isPartOf":{"@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#webpage"},"articleSection":"Design, add border, coding, css, drop shadow, how to"},{"@type":"BreadcrumbList","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal#listItem","position":1,"name":"Home","item":"https:\/\/danielepais.com\/journal","nextItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/design\/#listItem","name":"Design"}},{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/design\/#listItem","position":2,"name":"Design","item":"https:\/\/danielepais.com\/journal\/category\/design\/","nextItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#listItem","name":"How to drop a shadow and add a border to an image using CSS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#listItem","position":3,"name":"How to drop a shadow and add a border to an image using CSS","previousItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/design\/#listItem","name":"Design"}}]},{"@type":"Person","@id":"https:\/\/danielepais.com\/journal\/#person","name":"Daniele Pais","image":{"@type":"ImageObject","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniele Pais"}},{"@type":"Person","@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author","url":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/","name":"Daniele Pais","image":{"@type":"ImageObject","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniele Pais"}},{"@type":"WebPage","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#webpage","url":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/","name":"How to drop a shadow and add a border to an image using CSS | Phuket Web Design","description":"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/danielepais.com\/journal\/#website"},"breadcrumb":{"@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#breadcrumblist"},"author":{"@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author"},"creator":{"@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp","@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#mainImage","width":2048,"height":1462,"caption":"How to drop a shadow and add a border to an image using CSS"},"primaryImageOfPage":{"@id":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/#mainImage"},"datePublished":"2016-02-25T06:20:38+07:00","dateModified":"2022-01-24T22:28:35+07:00"},{"@type":"WebSite","@id":"https:\/\/danielepais.com\/journal\/#website","url":"https:\/\/danielepais.com\/journal\/","name":"Phuket Web Design","description":"Digital Print","inLanguage":"en-US","publisher":{"@id":"https:\/\/danielepais.com\/journal\/#person"}}]},"og:locale":"en_US","og:site_name":"Daniele Pais Blog","og:type":"article","og:title":"How to drop a shadow and add a border to an image using CSS | Phuket Web Design","og:description":"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.","og:url":"https:\/\/danielepais.com\/journal\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css\/","og:image":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp","og:image:secure_url":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2016\/02\/how-to-drop-a-shadow-and-add-a-border-to-an-image-using-css.webp","og:image:width":2048,"og:image:height":1462,"article:published_time":"2016-02-25T06:20:38+00:00","article:modified_time":"2022-01-24T15:28:35+00:00","twitter:card":"summary","twitter:site":"@daniele_pais","twitter:title":"How to drop a shadow and add a border to an image using CSS | Phuket Web Design","twitter:description":"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.","twitter:image":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2017\/10\/daniele-pais-digital-design.png"},"aioseo_meta_data":{"post_id":"48","title":"How to drop a shadow and add a border to an image using CSS | #site_title","description":"This little code can come very handy especially if you have many images to add too your web pages and wants to automate the job of styling them.","keywords":[{"label":"add border","value":"add border"},{"label":"coding","value":"coding"},{"label":"css","value":"css"},{"label":"drop shadow","value":"drop shadow"},{"label":"how to","value":"how to"}],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"created":"2020-12-28 02:13:00","updated":"2025-06-11 18:44:44","ai":null,"seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/posts\/48"}],"collection":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/media\/6543"}],"wp:attachment":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}