{"id":102,"date":"2026-04-07T01:26:03","date_gmt":"2026-04-07T01:26:03","guid":{"rendered":"https:\/\/gigz.pk\/css\/?post_type=lesson&#038;p=102"},"modified":"2026-04-07T01:26:04","modified_gmt":"2026-04-07T01:26:04","slug":"shadows-box-text","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/","title":{"rendered":"Shadows  Box &amp; Text"},"content":{"rendered":"\n<p>Introduction<br>Shadows in CSS are used to add depth and visual appeal to web elements. They help make content stand out and improve the overall design of a webpage. There are two main types of shadows in CSS which are box shadow and text shadow.<\/p>\n\n\n\n<p>Box Shadow<br>Box shadow is used to apply shadow effects to elements such as divs, cards, images, and buttons. It creates a shadow around the outer area of an element.<\/p>\n\n\n\n<p>Syntax<br>box shadow horizontal offset vertical offset blur radius spread radius color<\/p>\n\n\n\n<p>Example<br>div<br>box shadow 2px 2px 5px gray<\/p>\n\n\n\n<p>Explanation<br>Horizontal offset moves the shadow left or right<br>Vertical offset moves the shadow up or down<br>Blur radius controls how soft the shadow looks<br>Spread radius increases or decreases the size of the shadow<br>Color defines the shadow color<\/p>\n\n\n\n<p>Practical Use<br>Box shadow is commonly used in cards, buttons, and containers to create a modern and clean design. It helps separate elements from the background.<\/p>\n\n\n\n<p>Text Shadow<br>Text shadow is used to apply shadow effects to text. It enhances readability and gives a stylish look to headings and titles.<\/p>\n\n\n\n<p>Syntax<br>text shadow horizontal offset vertical offset blur radius color<\/p>\n\n\n\n<p>Example<br>h1<br>text shadow 1px 1px 3px black<\/p>\n\n\n\n<p>Explanation<br>Horizontal offset controls the left or right position of the shadow<br>Vertical offset controls the top or bottom position<br>Blur radius softens the shadow<br>Color sets the shadow color<\/p>\n\n\n\n<p>Practical Use<br>Text shadow is useful for headings, banners, and highlighted text. It can improve visibility when text is placed on images or colored backgrounds.<\/p>\n\n\n\n<p>Best Practices<br>Use light shadows for a clean and professional look<br>Avoid heavy shadows that make the design messy<br>Keep consistency in shadow style across the website<br>Use subtle shadows for better user experience<\/p>\n\n\n\n<p>Conclusion<br>CSS shadows are a simple yet powerful way to enhance your website design. By using box shadow and text shadow correctly, you can create depth, improve readability, and make your web pages more attractive.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"menu_order":0,"template":"","class_list":["post-102","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Shadows Box &amp; Text - CSS learning mastery<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shadows Box &amp; Text - CSS learning mastery\" \/>\n<meta property=\"og:description\" content=\"IntroductionShadows in CSS are used to add depth and visual appeal to web elements. They help make content stand out and improve the overall design of a webpage. There are two main types of shadows in CSS which are box shadow and text shadow. Box ShadowBox shadow is used to apply shadow effects to elements [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/\" \/>\n<meta property=\"og:site_name\" content=\"CSS learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-07T01:26:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/css\\\/lesson\\\/shadows-box-text\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/css\\\/lesson\\\/shadows-box-text\\\/\",\"name\":\"Shadows Box &amp; Text - CSS learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/css\\\/#website\"},\"datePublished\":\"2026-04-07T01:26:03+00:00\",\"dateModified\":\"2026-04-07T01:26:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/css\\\/lesson\\\/shadows-box-text\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/css\\\/lesson\\\/shadows-box-text\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/css\\\/lesson\\\/shadows-box-text\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/css\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shadows Box &amp; Text\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/css\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/css\\\/\",\"name\":\"CSS learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/css\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shadows Box &amp; Text - CSS learning mastery","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:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/","og_locale":"en_US","og_type":"article","og_title":"Shadows Box &amp; Text - CSS learning mastery","og_description":"IntroductionShadows in CSS are used to add depth and visual appeal to web elements. They help make content stand out and improve the overall design of a webpage. There are two main types of shadows in CSS which are box shadow and text shadow. Box ShadowBox shadow is used to apply shadow effects to elements [&hellip;]","og_url":"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/","og_site_name":"CSS learning mastery","article_modified_time":"2026-04-07T01:26:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/","url":"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/","name":"Shadows Box &amp; Text - CSS learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/css\/#website"},"datePublished":"2026-04-07T01:26:03+00:00","dateModified":"2026-04-07T01:26:04+00:00","breadcrumb":{"@id":"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/css\/lesson\/shadows-box-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/css\/"},{"@type":"ListItem","position":2,"name":"Shadows Box &amp; Text"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/css\/#website","url":"https:\/\/gigz.pk\/css\/","name":"CSS learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/css\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/css\/wp-json\/wp\/v2\/lesson\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/css\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/css\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/css\/wp-json\/wp\/v2\/media?parent=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}