{"id":3792,"date":"2015-04-23T12:15:18","date_gmt":"2015-04-23T09:15:18","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=3792"},"modified":"2018-01-09T09:14:28","modified_gmt":"2018-01-09T07:14:28","slug":"css-text-shadow-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/","title":{"rendered":"CSS Text Shadow Example"},"content":{"rendered":"<p>Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? <\/p>\n<p>Well, it&#8217;s probably because you&#8217;ve used colors that won&#8217;t match to give a good view of the text, (e.g make it readable).<\/p>\n<p>With CSS, it is very easy to solve this using the <code>text-shadow<\/code> property to enhance the text readability and contrast.<\/p>\n<p>In this example, we&#8217;re going to use text shadows in some really essential cases which will later enable you to explore more.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;nAkUl5IbAjqlXSla&#8217;]<\/p>\n<h2>1. Basic Set Up<\/h2>\n<p>First, go ahead and create a new html file and add the basic <code>html<\/code> and <code>css<\/code> like this:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n\t&lt;title&gt;CSS Buttons&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n\t&lt;!-- STYLE SECTION --&gt;\r\n\r\n\t&lt;style type=\"text\/css\"&gt;\r\n\r\n  \t&lt;\/style&gt;\r\n\r\n\r\n\t&lt;!-- HTML SECTION --&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>On the html section, add a <code>&lt;h1&gt;<\/code> tag with a class of <code>text<\/code> like so:<\/p>\n<pre class=\"brush:xml\">\r\n\t&lt;!-- HTML SECTION --&gt;\r\n\r\n\t&lt;h1 class=\"text\"&gt;Web Code Geeks&lt;\/h1&gt;\r\n<\/pre>\n<p>And this is the element we will be adding shadow on.<\/p>\n<p>I have given this element some initial properties to make it look good on the screen:<\/p>\n<pre class=\"brush:css\">\r\n&lt;!-- STYLE SECTION --&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\n\r\nbody{\r\n\tfont-family: \"Arial\", \"sans-serif\";          \/* just a custom font *\/  \r\n}\r\n\r\nh1 {                                \/* centered the text for a better view *\/\r\n\tmargin-left: 7em;\r\n\tmargin-top: 5em;\r\n}\r\n&lt;\/style&gt;\r\n\r\n<\/pre>\n<p>Now let&#8217;s give the text the text-shadow attribute.<\/p>\n<p>Before doing that, let us explain what are the inputs of this attribute:<\/p>\n<pre class=\"brush:css\">text-shadow: 4px 4px 4px #ccc;<\/pre>\n<p><code>4px<\/code> &#8211;  X (horizontal) offset<br \/>\n<code>3px<\/code> &#8211;  Y (vertical offset<br \/>\n<code>2px<\/code> &#8211;  blur amount<br \/>\n<code>#ccc<\/code> &#8211; color<\/p>\n<p>Basically, you can see it like this:<\/p>\n<pre class=\"brush:css\">text-shadow: horizontal-offset vertical-offset blur color;<\/pre>\n<p>where the color can be either in <code>hex<\/code> <code>#ccc;<\/code> code or <code>rgba(0,0,0,0.3);<\/code> code.<\/p>\n<p>Applying the shadow to our text in css would look like this:<\/p>\n<pre class=\"brush:css\">\r\n&lt;!-- STYLE SECTION --&gt;\r\n\r\n.text {\r\n\tfont-size: 5em; \t\t\t\t\t          \/* just made text larger *\/\r\n\ttext-shadow: 4px 3px 2px #ccc;\r\n}\r\n\r\n<\/pre>\n<p>The view in the browser of this text with shadow would be:<br \/>\n<figure id=\"attachment_3836\" aria-describedby=\"caption-attachment-3836\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow1.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow1.jpg\" alt=\"Basic Shadow Applied \" width=\"800\" height=\"230\" class=\"size-full wp-image-3836\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow1.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow1-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3836\" class=\"wp-caption-text\">Basic Shadow Applied<\/figcaption><\/figure><\/p>\n<p><\/p>\n<h2>2. Variations <\/h2>\n<p>From now on, the <code>body<\/code> background color will be subject to constant change.<\/p>\n<p>This is because certain shadows need specific backgrounds to be noticed.<\/p>\n<p>Also the text is going to be uppercase for better results.<\/p>\n<p>The following will show some great text-shadows you can apply.<\/p>\n<h3>2.1 Pressed Effect<\/h3>\n<p>Set your text color to a slightly darker shade than your background color. <\/p>\n<p>Next, apply a slight white text-shadow with a reduced opacity.<\/p>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #222;\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em; \t\t\t\t\t\r\n\tcolor: rgba(0,0,0,0.6);\t\t\t\t\t\t\t\t\/* added text-color *\/\r\n    text-shadow: 2px 2px 3px rgba(255,255,255,0.1);\t\t\/* added shadow *\/\r\n}\r\n<\/pre>\n<p>Using the <code>rgba<\/code> color code, you will be able to set the <code>opacity<\/code> of the color applied.<\/p>\n<p>Notice that the text-color has an opacity of 60% (0.6) and shadow 10% (0.1).<br \/>\n<figure id=\"attachment_3842\" aria-describedby=\"caption-attachment-3842\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow2.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow2.jpg\" alt=\"Letterpress Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3842\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow2.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow2-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3842\" class=\"wp-caption-text\">Letterpress Shadow Effect<\/figcaption><\/figure><\/p>\n<h3>2.2 Hard Shadow Effect<\/h3>\n<p>Because of their retro nature, hard shadows don&#8217;t always need to have blur applied.<\/p>\n<p>Take for example this hard text shadow:<\/p>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #fff3cd;\t\t\t              \/* changed body background color *\/\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em; \t\t\t\t\t\r\n\tcolor: white;\t\t\t\t\t\t\t\t\t\t\/* changed text-color to white *\/\r\n    text-shadow: 6px 6px 0px rgba(0,0,0,0.2);\t\t\t\/* added retro-feel shadow *\/\r\n}\r\n<\/pre>\n<figure id=\"attachment_3845\" aria-describedby=\"caption-attachment-3845\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow3.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow3.jpg\" alt=\"Retro Hard Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3845\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow3.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow3-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3845\" class=\"wp-caption-text\">Retro Hard Shadow Effect<\/figcaption><\/figure>\n<h3>2.3 Double Shadow Effect<\/h3>\n<p>It is interesting to know that you are not limited to one single shadow application.<\/p>\n<p>You can use more than one shadow like this: <code>text-shadow: shadow1, shadow2, shadow3;<\/code><\/p>\n<p>Let&#8217;s add two shadows, one of them with the color of the background, and the other one a slightly darker color than the background color:<\/p>\n<pre class=\"brush:css\">\r\n.text {\r\n\tfont-size: 5em; \t\t\t\t\t\t\t\t\t\t\t\t\r\n    text-shadow: 4px 3px 0px #fff, 9px 8px 0px rgba(0,0,0,0.15);    \/* given two shadows *\/\r\n}\r\n<\/pre>\n<p>In this case, the background is white, so we don&#8217;t need a custom color for it.<\/p>\n<p>The view in the browser would be:<br \/>\n<figure id=\"attachment_3847\" aria-describedby=\"caption-attachment-3847\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow4.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow4.jpg\" alt=\"Double Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3847\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow4.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow4-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3847\" class=\"wp-caption-text\">Double Shadow Effect<\/figcaption><\/figure><\/p>\n<h3>2.4 Distant Down Shadow Effect<\/h3>\n<p>This effect lies on the multi-shadow capability of css.<\/p>\n<p>Below, you can see 4 shadows pointing down with various degrees.<\/p>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #fff3cd;\t\t\t\/* changed body background color *\/\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em;\r\n\tcolor: white; \t\t\t\t\t\t\t\t\t\t\t\t\r\n    text-shadow: 0px 3px 0px #b2a98f,\r\n             \t 0px 14px 10px rgba(0,0,0,0.15),\r\n             \t 0px 24px 2px rgba(0,0,0,0.1),\r\n            \t 0px 34px 30px rgba(0,0,0,0.1);\t\t\r\n}\r\n<\/pre>\n<figure id=\"attachment_3851\" aria-describedby=\"caption-attachment-3851\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow5.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow5.jpg\" alt=\"Distant Down Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3851\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow5.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow5-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3851\" class=\"wp-caption-text\">Distant Down Shadow Effect<\/figcaption><\/figure>\n<h3>2.5 Mark Dotto\u2019s 3D Text Effect<\/h3>\n<p>The following example is just as impressive as you might be wondering.<\/p>\n<p>It comes from MarkDotto.com and utilizes an impressive 12 separate shadows to pull off a very believable 3D effect.<\/p>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #3495c0;\t\t\t\/* changed body background color *\/\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em;\r\n\tcolor: white; \t\t\t\t\t\t\t\t\t\t\t\t\r\n    text-shadow: 0 1px 0 #ccc, \r\n              0 2px 0 #c9c9c9,\r\n              0 3px 0 #bbb,\r\n              0 4px 0 #b9b9b9,\r\n              0 5px 0 #aaa,\r\n              0 6px 1px rgba(0,0,0,.1),\r\n              0 0 5px rgba(0,0,0,.1),\r\n              0 1px 3px rgba(0,0,0,.3),\r\n              0 3px 5px rgba(0,0,0,.2),\r\n              0 5px 10px rgba(0,0,0,.25),\r\n              0 10px 10px rgba(0,0,0,.2),\r\n              0 20px 20px rgba(0,0,0,.15);\r\n}\r\n<\/pre>\n<p>Now look at this:<br \/>\n<figure id=\"attachment_3854\" aria-describedby=\"caption-attachment-3854\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow6.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow6.jpg\" alt=\"3D Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3854\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow6.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow6-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3854\" class=\"wp-caption-text\">3D Shadow Effect<\/figcaption><\/figure><\/p>\n<h3>2.6 Gordon Hall\u2019s True Inset Text Effect<\/h3>\n<p>Gordon uses some serious CSS voodoo to pull off not only an outer shadow but a genuine inner shadow as well.<\/p>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #cbcbcb;\t\t\t\/* changed body background color *\/\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em;\r\n\tcolor: transparent; \t\t\t\t\t\t\t\t\t\t\r\n\tbackground-color: #666666;\r\n\t\t   -webkit-background-clip: text;\r\n\t\t   -moz-background-clip: text;\r\n\t\t   background-clip: text;\r\n\t\t   text-shadow: rgba(255,255,255,0.5) 0px 3px 3px;\r\n}\r\n<\/pre>\n<p>And that gives and incredible true inset text effect.<br \/>\n<figure id=\"attachment_3858\" aria-describedby=\"caption-attachment-3858\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow7.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow7.jpg\" alt=\"Text  Inset Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3858\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow7.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow7-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3858\" class=\"wp-caption-text\">Text  Inset Effect<\/figcaption><\/figure><\/p>\n<h3>2.7 Glowing Text Shadow Effect<\/h3>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #992d23;\t\t\t\/* changed body background color *\/\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em;\r\n\tcolor: white; \t\t\t\t\t\t\t\t\t\t\t\t\r\n\ttext-shadow: 0px 0px 6px rgba(255,255,255,0.7);\r\n}\r\n<\/pre>\n<p>This shadow will create the effect of a glowing text.<br \/>\n<figure id=\"attachment_3861\" aria-describedby=\"caption-attachment-3861\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow8.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow8.jpg\" alt=\"Glowing Text - Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3861\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow8.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow8-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3861\" class=\"wp-caption-text\">Glowing Text &#8211; Shadow Effect<\/figcaption><\/figure><\/p>\n<h3>2.8 Soft Emboss Shadow Effect<\/h3>\n<pre class=\"brush:css\">\r\nbody {\r\n\tbackground: #629552;\t\t\t\/* changed body background color *\/\r\n}\r\n\r\n.text {\r\n\tfont-size: 5em;\t\t\t\t\t\t\t\t\t\t\t\r\n\tcolor: rgba(0,0,0,0.6);\r\n\ttext-shadow: 2px 8px 6px rgba(0,0,0,0.2),\r\n                 0px -5px 35px rgba(255,255,255,0.3);\r\n}\r\n<\/pre>\n<figure id=\"attachment_3864\" aria-describedby=\"caption-attachment-3864\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow9.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow9.jpg\" alt=\"Soft Emboss - Text Shadow Effect\" width=\"800\" height=\"230\" class=\"size-full wp-image-3864\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow9.jpg 800w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/shadow9-300x86.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-3864\" class=\"wp-caption-text\">Soft Emboss &#8211; Text Shadow Effect<\/figcaption><\/figure>\n<h2>3. Conclusion<\/h2>\n<p>As you saw in this example, the text-shadow property is really easy to use. <\/p>\n<p>What&#8217;s interesting, is that you can come up with creative effects if you put yourself into it.<\/p>\n<p>These effects are used all over the web (I did not &#8216;invent&#8217; them) so be sure you are using qualitative stuff.<\/p>\n<p>You can also download the source html and just edit these examples that you saw above.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/CSS-Text-Shadow.zip\"><strong>CSS Text Shadow<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it&#8217;s probably because you&#8217;ve used colors that won&#8217;t match to give a good view of the text, (e.g make it readable). With CSS, it is very easy to solve this using the text-shadow &hellip;<\/p>\n","protected":false},"author":75,"featured_media":917,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CSS Text Shadow Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it&#039;s probably because\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Text Shadow Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it&#039;s probably because\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/fabiocimo\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-23T09:15:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-09T07:14:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Fabio Cimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fabiocimo\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabio Cimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\"},\"author\":{\"name\":\"Fabio Cimo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\"},\"headline\":\"CSS Text Shadow Example\",\"datePublished\":\"2015-04-23T09:15:18+00:00\",\"dateModified\":\"2018-01-09T07:14:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\"},\"wordCount\":732,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\",\"name\":\"CSS Text Shadow Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"datePublished\":\"2015-04-23T09:15:18+00:00\",\"dateModified\":\"2018-01-09T07:14:28+00:00\",\"description\":\"Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it's probably because\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/css\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CSS Text Shadow Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\",\"name\":\"Fabio Cimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"caption\":\"Fabio Cimo\"},\"description\":\"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.\",\"sameAs\":[\"https:\/\/www.facebook.com\/fabiocimo\",\"https:\/\/al.linkedin.com\/in\/fabiocimo\",\"https:\/\/x.com\/fabiocimo\",\"https:\/\/www.youtube.com\/fabiocimo1\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Text Shadow Example - Web Code Geeks - 2026","description":"Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it's probably because","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/","og_locale":"en_US","og_type":"article","og_title":"CSS Text Shadow Example - Web Code Geeks - 2026","og_description":"Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it's probably because","og_url":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/fabiocimo","article_published_time":"2015-04-23T09:15:18+00:00","article_modified_time":"2018-01-09T07:14:28+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","type":"image\/jpeg"}],"author":"Fabio Cimo","twitter_card":"summary_large_image","twitter_creator":"@fabiocimo","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Fabio Cimo","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/"},"author":{"name":"Fabio Cimo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22"},"headline":"CSS Text Shadow Example","datePublished":"2015-04-23T09:15:18+00:00","dateModified":"2018-01-09T07:14:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/"},"wordCount":732,"commentCount":1,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/","url":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/","name":"CSS Text Shadow Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","datePublished":"2015-04-23T09:15:18+00:00","dateModified":"2018-01-09T07:14:28+00:00","description":"Ever felt chaotic about text going into unsuitable button colors, boxes or simply sitting inside a bad contrast in the page? Well, it's probably because","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/css\/css-text-shadow-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/www.webcodegeeks.com\/category\/css\/"},{"@type":"ListItem","position":3,"name":"CSS Text Shadow Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22","name":"Fabio Cimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","caption":"Fabio Cimo"},"description":"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.","sameAs":["https:\/\/www.facebook.com\/fabiocimo","https:\/\/al.linkedin.com\/in\/fabiocimo","https:\/\/x.com\/fabiocimo","https:\/\/www.youtube.com\/fabiocimo1"],"url":"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/3792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=3792"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/3792\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/917"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=3792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=3792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=3792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}