{"id":4036,"date":"2022-01-13T00:00:46","date_gmt":"2022-01-13T00:00:46","guid":{"rendered":"https:\/\/code-boxx.com\/?p=4036"},"modified":"2023-02-14T03:46:56","modified_gmt":"2023-02-14T03:46:56","slug":"overlap-layer-html-elements","status":"publish","type":"post","link":"https:\/\/code-boxx.com\/overlap-layer-html-elements\/","title":{"rendered":"How To Overlap (Or Layer) Elements In HTML &#038; CSS"},"content":{"rendered":"<p>Welcome to a tutorial on how to overlap or layer HTML elements. So you want to create your own overlapping elements? Maybe a customized popup dialog box, a &#8220;now loading&#8221; screen, or an overlay menu.<\/p>\n<div class=\"sec-head answer\">\n<p>To overlap or layer HTML elements:<\/p>\n<ol>\n<li>Set the position of the elements to <code>relative<\/code>, <code>absolute<\/code>, or <code>fixed<\/code>.<\/li>\n<li>Then, use <code>z-index<\/code> to specify which element is on top or below.<\/li>\n<\/ol>\n<p>For example:<\/p>\n<ul>\n<li><code>&lt;div id=\"top\"&gt;TOP&lt;\/div&gt; &lt;div id=\"bottom\"&gt;BOTTOM&lt;\/div&gt;<\/code><\/li>\n<li><code>#top, #bottom { position:fixed; top:0; left:0 }<\/code><\/li>\n<li><code>#top { z-index:9; } #bottom { z-index:8; }<\/code><\/li>\n<\/ul>\n<\/div>\n<p>But just how exactly does this work? Let us walk through a couple of examples in this guide &#8211; Read on!<\/p>\n<p>\u24d8 I have included a zip file with all the example source code at the start of this tutorial, so you don&#8217;t have to copy-paste everything&#8230; Or if you just want to dive straight in.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ezoic-pub-ad-placeholder-101\"><\/div>\n<p>&nbsp;<\/p>\n<h2 class=\"in-head-d\">TLDR &#8211; QUICK SLIDES<\/h2>\n<p>[web_stories_embed url=&#8221;https:\/\/code-boxx.com\/web-stories\/how-to-overlap-html-elements\/&#8221; title=&#8221;How To Overlap HTML Elements&#8221; poster=&#8221;https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/03\/STORY-HTML-20230505.webp&#8221; width=&#8221;360&#8243; height=&#8221;600&#8243; align=&#8221;center&#8221;]<\/p>\n<p style=\"text-align: center;\">Fullscreen Mode &#8211; <a href=\"https:\/\/code-boxx.com\/web-stories\/how-to-overlap-html-elements\/\" target=\"_blank\" rel=\"noopener\">Click Here<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2 class=\"in-head-d\">TABLE OF CONTENTS<\/h2>\n<div class=\"toc\">\n<div><a href=\"#sec-download\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-download.svg\" width=\"36\" height=\"36\" \/>Download &amp; Notes<\/a><\/div>\n<div><a href=\"#sec-overlap\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-grid.svg\" width=\"36\" height=\"36\" \/>Overlap HTML Elements<\/a><\/div>\n<div><a href=\"#sec-more\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-gear.svg\" width=\"36\" height=\"36\" \/>More Examples<\/a><\/div>\n<div><a href=\"#sec-extra\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-plus-square.svg\" width=\"36\" height=\"36\" \/>Extra Bits &amp; Links<\/a><\/div>\n<div><a href=\"#sec-end\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-thumbs-up.svg\" width=\"36\" height=\"36\" \/>The End<\/a><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"ezoic-pub-ad-placeholder-102\"><\/div>\n<p>&nbsp;<\/p>\n<div id=\"sec-download\" class=\"sec-head\" style=\"background: #ffe8de;\">\n<h2 class=\"in-head-d\">DOWNLOAD &amp; NOTES<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-download.svg\" width=\"80\" height=\"80\" \/><\/p>\n<p>Firstly, here is the download link to the example code as promised.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">QUICK NOTES<\/span><\/h3>\nIf you spot a bug, feel free to comment below. I try to answer short questions too, but it is one person versus the entire world\u2026 If you need answers urgently, please check out <a href=\"https:\/\/code-boxx.com\/websites-get-help-programming\/\" target=\"_blank\">my list of websites to get help with programming<\/a>.\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">EXAMPLE CODE DOWNLOAD<\/span><\/h3>\n<p><a href=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/01\/overlap-html.zip\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to download<\/a> the source code, I have released it under the MIT license, so feel free to build on top of it or use it in your own project.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"sec-overlap\" class=\"sec-head\" style=\"background: #e0f3ff;\">\n<h2 class=\"in-head-d\">OVERLAPPING HTML ELEMENTS<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-grid.svg\" width=\"80\" height=\"80\" \/><\/p>\n<p>All right, let us now get into more details on how overlapping elements work in HTML and CSS.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">PART 1) POSITION &amp; Z-INDEX<\/span><\/h3>\n<h4><span style=\"color: #ff6600;\">1A) CSS POSITION<\/span><\/h4>\n<div class=\"ref-head\">1a-position.html<\/div>\n<pre><code>&lt;style&gt;\r\n#demoA { \r\n  position: static; \r\n  background: lightsalmon;\r\n}\r\n#demoB { \r\n  position: relative; \r\n  top: 60px; left: 5px; \r\n  background: lightgreen;\r\n}\r\n#demoC { \r\n  position: absolute; \r\n  bottom: 5px; right: 5px; \r\n  background: lightblue;\r\n}\r\n#demoD { \r\n  position: fixed; \r\n  top: 50%; left: 50%; \r\n  background: lightgoldenrodyellow;\r\n}\r\n#demoE {\r\n  position: sticky;\r\n  top: 0; left: 0;\r\n  background: lavender;\r\n}\r\n&lt;\/style&gt;\r\n \r\n&lt;div id=\"demoA\"&gt;STATIC&lt;\/div&gt;\r\n&lt;div id=\"demoB\"&gt;RELATIVE&lt;\/div&gt;\r\n&lt;div id=\"demoC\"&gt;ABSOLUTE&lt;\/div&gt;\r\n&lt;div id=\"demoD\"&gt;FIXED&lt;\/div&gt;\r\n&lt;div id=\"demoE\"&gt;STICKY&lt;\/div&gt;<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/01\/html-overlap-1b.png\" width=\"496\" height=\"246\" \/><\/p>\n<p>All right, let us now start with &#8220;step one&#8221; of creating overlapping elements &#8211; By positioning elements. In CSS, there are a couple of ways to position an element:<\/p>\n<ul>\n<li><strong>Static<\/strong> &#8211; This is the default &#8220;as-it-is&#8221; positioning for every element; The element will simply go along with the &#8220;normal page flow&#8221;.<\/li>\n<li><strong>Relative<\/strong> &#8211; The element will be &#8220;displaced&#8221; from its static position, we use <code>top bottom left right<\/code>\u00a0to define how much to offset the element.<\/li>\n<li><strong>Absolute<\/strong> &#8211; The element will be positioned with reference to an ancestor that is not <code>position: static<\/code>; Will be positioned with reference to <code>&lt;body&gt;<\/code> if all ancestors are <code>position: static<\/code>.<\/li>\n<li><strong>Fixed<\/strong> &#8211; The element will be fixed on the screen and cannot be &#8220;scrolled away&#8221;.<\/li>\n<li><strong>Sticky<\/strong> &#8211; An interesting one, the element acts like <code>position: static<\/code> by default. But as it scrolls out of the screen, it turns into <code>position: fixed<\/code> instead.<\/li>\n<\/ul>\n<p>In summary &#8211; <code>relative absolute fixed sticky<\/code> will &#8220;disrupt&#8221; HTML elements from their &#8220;usual layout&#8221;, and we can control it using <code>top bottom left right<\/code>. Overlapping happens when we position one element over another.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ezoic-pub-ad-placeholder-103\"><\/div>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #ff6600;\">1B) <\/span><span style=\"color: #ff6600;\">Z-INDEX <\/span><span style=\"color: #ff6600;\">LAYERING ORDER\u00a0<\/span><\/h4>\n<div class=\"ref-head\">1b-zindex.html<\/div>\n<pre><code>&lt;style&gt;\r\n#demoA, #demoB, #demoC { \r\n  position: fixed; \r\n  top: 10px;\r\n  padding: 10px;\r\n}\r\n#demoA {\r\n  left: 5px; \r\n  background: lightpink;\r\n  z-index: 1;\r\n}\r\n#demoB {\r\n  left: 70px; \r\n  background: lightgreen;\r\n  z-index: 9;\r\n}\r\n#demoC {\r\n  left: 40px; \r\n  background: lightblue;\r\n  z-index: 5;\r\n}\r\n&lt;\/style&gt;\r\n \r\n&lt;div id=\"demoA\"&gt;BOTTOM&lt;\/div&gt;\r\n&lt;div id=\"demoB\"&gt;TOP&lt;\/div&gt;\r\n&lt;div id=\"demoC\"&gt;MIDDLE&lt;\/div&gt;<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/01\/html-overlap-2b.png\" width=\"128\" height=\"51\" \/><\/p>\n<p>Now, <code>position<\/code> should be straightforward enough, and here comes the &#8220;next easy&#8221; &#8211; How do we determine which element is on top, which is below when they are layered? Introducing <code>z-index<\/code>, which is simply an arbitrary number that you assign. The higher the <code>z-index<\/code>, the more priority it has to be on top. That simple.<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">PART 2) SET THE WIDTH &amp; HEIGHT<\/span><\/h3>\n<div class=\"ref-head\">2a-dimensions.html<\/div>\n<pre><code>&lt;style&gt;\r\n\/* (A) FIXED POSITION *\/\r\n#demoA, #demoB, #demoC {\r\n  position: fixed;\r\n  display: block;\r\n}\r\n\/* (B) EXACT PIXELS *\/\r\n#demoA {\r\n  top: 0; left: 0;\r\n  width: 100px;\r\n  height: 50px;\r\n  background: #ffcdc9;\r\n}\r\n\/* (C) PERCENTAGE DIMENSIONS *\/\r\n#demoB {\r\n  bottom: 0; left: 0;\r\n  width: 100%;\r\n  height: 15%;\r\n  background: #d5ffc9;\r\n  text-align: center;\r\n}\r\n\/* (D) RELATIVE TO VIEWPORT *\/\r\n#demoC {\r\n  top: 0; right: 0;\r\n  width: 50vw;\r\n  height: 15vh;\r\n  background: #c9cdff;\r\n  text-align: center;\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;div id=\"demoA\"&gt;Fixed Size Overlay.&lt;\/div&gt;\r\n&lt;div id=\"demoB\"&gt;Percentage Size Overlay.&lt;\/div&gt;\r\n&lt;div id=\"demoC\"&gt;Viewport Size Overlay.&lt;\/div&gt;<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/01\/html-overlap-3b.png\" width=\"500\" height=\"246\" \/><\/p>\n<p>Need to set the dimensions of an overlay? Well, there are a lot of confusing measurement units in CSS, but here are a few common ones to know:<\/p>\n<ul>\n<li><code>px<\/code> Pixels, good for specifying an exact size for an overlay with an image or video.<\/li>\n<li><code>%<\/code> Percentage, one that I will recommend using with today&#8217;s responsive design and to better support mobile screens. But take note, the percentage is calculated based on the parent container. E.G. If we have a parent <code>&lt;div&gt;<\/code> that has <code>300px<\/code> width, and a child <code>&lt;button&gt;<\/code> inside with <code>50%<\/code> width &#8211; That will translate to a button with <code>150px<\/code> wide.<\/li>\n<li><code>vw<\/code> for the percentage of the viewport width, and <code>vh<\/code> for the viewport height. This one takes the width and height of the screen instead of the parent container &#8211; A very useful unit to use for <code>fixed<\/code> elements.<\/li>\n<\/ul>\n<p>That should be good enough in most cases. But if you want to know more sizing units, I will leave a link in the extras section below to another tutorial.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ezoic-pub-ad-placeholder-106\"><\/div>\n<p>&nbsp;<\/p>\n<div id=\"sec-more\" class=\"sec-head\" style=\"background: #ffffe0;\">\n<h2 class=\"in-head-d\">MORE EXAMPLES<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-gear.svg\" width=\"80\" height=\"80\" \/><\/p>\n<p>With all of the above, you should be able to create overlapping elements well enough. But here are a few more common examples of using layered elements.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">CATFISH WITH STICKY POSITION<\/span><\/h3>\n<div class=\"ref-head\">3a-catfish.html<\/div>\n<pre><code>&lt;style&gt;\r\n#catfish {\r\n  position: sticky;\r\n  bottom: 0; left: 0;\r\n  width: 100%; padding: 30px 10px;\r\n  color: white; background: rgba(0, 0, 0, 0.5);\r\n  text-align: center;\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;header&gt;MY SITE&lt;\/header&gt;\r\n&lt;main&gt;Main Contents&lt;\/main&gt;\r\n&lt;footer&gt;Copyright My Site&lt;\/footer&gt;\r\n&lt;div id=\"catfish\"&gt;This can be a bottom navigation bar or important message.&lt;\/div&gt;<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2020\/12\/html-overlay-4.png\" width=\"480\" height=\"247\" \/><\/p>\n<p>A catfish stays at the bottom, the HTML counterpart does the same too. Very easy to create &#8211; Just give it <code>position: sticky; bottom 0; width: 100%;<\/code> and done. Take note, we define a transparent background color using <code>rgba(RED, GREEN, BLUE, OPACITY)<\/code>.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ezoic-pub-ad-placeholder-107\"><\/div>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">CENTERED OVERLAY<\/span><\/h3>\n<div class=\"ref-head\">3b-center.html<\/div>\n<pre><code>&lt;style&gt;\r\n\/* (A) FULL SCREEN BACKGROUND *\/\r\n#overA {\r\n  position: fixed; top: 0; left: 0; z-index: 999;\r\n  width: 100vw; height: 100vh;\r\n  background: rgba(0, 0, 0, 0.5);\r\n}\r\n\/* (B) CENTERED ON SCREEN *\/\r\n#overB {\r\n  position: absolute; top: 50%; left: 50%;\r\n  \/* \"COUNTER\" WIDTH &amp; HEIGHT OF BOX TO \"TRULY CENTER\" ON SCREEN *\/\r\n  transform: translate(-50%, -50%);\r\n  color: #fff; background: #000;\r\n  padding: 10px;\r\n  text-align: center;\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;main&gt;Just some random contents&lt;\/main&gt;\r\n&lt;div id=\"overA\"&gt;\r\n  &lt;div id=\"overB\"&gt;This can be a loading screen or dialog box.&lt;\/div&gt;\r\n&lt;\/div&gt;<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2020\/12\/html-overlay-5.png\" width=\"480\" height=\"266\" \/><\/p>\n<p>Centering an element can be a little trickier, but still can be done&#8230; This one will probably need the help of some Javascript to toggle show\/hide the <code>#overA<\/code>\u00a0though &#8211; <code>document.getElementById(\"overA\").style.display = \"none\"<\/code> or <code>document.getElementById(\"overA\").style.display = \"block\"<\/code>.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ezoic-pub-ad-placeholder-108\"><\/div>\n<p>&nbsp;<\/p>\n<div id=\"sec-extra\" class=\"sec-head\" style=\"background: #f8d5ff;\">\n<h2 class=\"in-head-d\">EXTRA BITS &amp; LINKS<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-plus-square.svg\" width=\"80\" height=\"80\" \/><\/p>\n<p>That&#8217;s all for this guide, and here is a small section on some extras and links that may be useful to you.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">LINKS &amp; REFERENCES<\/span><\/h3>\n<ul>\n<li><a href=\"https:\/\/css-tricks.com\/almanac\/properties\/p\/position\/\" target=\"_blank\" rel=\"noopener noreferrer\">Position<\/a> &#8211; CSS Tricks<\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/CSS\/Building_blocks\/Values_and_units\" target=\"_blank\" rel=\"noopener noreferrer\">CSS values and units &#8211; Learn web development<\/a> &#8211; MDN<\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/z-index\" target=\"_blank\" rel=\"noopener noreferrer\">Z-Index<\/a> &#8211; MDN<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #008000;\">INFOGRAPHIC CHEAT SHEET<\/span><\/h3>\n<figure id=\"attachment_4323\" aria-describedby=\"caption-attachment-4323\" style=\"width: 391px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/01\/HTML-overlap-20230214-R0.webp\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4323 size-full\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2022\/01\/HTML-overlap-20230214-sm-R0.webp\" alt=\"\" width=\"391\" height=\"600\" \/><\/a><figcaption id=\"caption-attachment-4323\" class=\"wp-caption-text\"><span style=\"font-size: 16px;\">How to Create Overlapping HTML Elements (Click to enlarge)<\/span><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<div id=\"sec-end\" class=\"sec-head\" style=\"background: #f1f1f1;\">\n<h2 class=\"in-head-d\">THE END<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/code-boxx.com\/wp-content\/uploads\/2019\/08\/ico-thumbs-up.svg\" width=\"80\" height=\"80\" \/><\/p>\n<p>Thank you for reading, and we have come to the end of this guide. I hope that it has helped you with your project, and if you want to share anything with this guide, please feel free to comment below. Good luck and happy coding!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to a tutorial on how to overlap or layer HTML elements. So you want to create your own overlapping elements? Maybe a customized popup dialog box, a &#8220;now loading&#8221; screen, or an overlay menu. To overlap or layer HTML elements: Set the position of the elements to relative, absolute, or fixed. Then, use z-index [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17487,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","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":"","theme-transparent-header-meta":"default","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":""}},"footnotes":""},"categories":[18],"tags":[],"class_list":["post-4036","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html-css"],"_links":{"self":[{"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/posts\/4036"}],"collection":[{"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/comments?post=4036"}],"version-history":[{"count":0,"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/posts\/4036\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/media\/17487"}],"wp:attachment":[{"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/media?parent=4036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/categories?post=4036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-boxx.com\/wp-json\/wp\/v2\/tags?post=4036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}