{"id":16072,"date":"2013-01-11T18:01:28","date_gmt":"2013-01-11T10:01:28","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=16072"},"modified":"2024-07-19T02:05:37","modified_gmt":"2024-07-18T18:05:37","slug":"css3-multiple-backgrounds","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/","title":{"rendered":"A Simple Guide to Using CSS3 Multiple Backgrounds"},"content":{"rendered":"<p>Adding a background image with <a href=\"https:\/\/www.hongkiat.com\/blog\/tag\/css\/\">CSS<\/a> is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image in a single declaration block. Now, <a href=\"https:\/\/www.hongkiat.com\/blog\/beginners-guide-to-css3\/\">CSS3<\/a> raises the stakes by providing the option of adding multiple backgrounds.<\/p>\n<h2>How to Use Multiple Backgrounds in CSS3<\/h2>\n<p>In the past, to add more than one background image, we had to modify the HTML structure and add more classes to achieve the desired result through CSS, something like this:<\/p>\n<pre>\r\n.overcast1 {\r\n  background-image: url(\"images\/overcast.png\");\r\n  background-position: 150px 25px;\r\n}\r\n.rainbow {\r\n  background-image: url(\"images\/rainbow.png\");\r\n  background-position: 200px 10px;\r\n}\r\n.overcast2 {\r\n  background-image: url(\"images\/overcast.png\");\r\n  background-position: 250px 25px;\r\n}\r\n.sunny {\r\n  background-image: url(\"images\/sunny.png\");\r\n  background-position: 100px 10px; \r\n}\r\n<\/pre>\n<p>The code above is clearly redundant. <strong>In CSS3<\/strong>, this can be simplified into a single <code>background-image<\/code> property, as shown below:<\/p>\n<pre>\r\n.weather {\r\n  width: 500px;\r\n  height: 280px;\r\n  margin: 50px auto;\r\n  background-image: url(\"images\/overcast.png\"),\r\n                    url(\"images\/rainbow.png\"), \r\n                    url(\"images\/overcast.png\"), \r\n                    url(\"images\/sunny.png\");\r\n  background-position: 150px 25px, \r\n                       200px 10px, \r\n                       250px 25px, \r\n                       100px 10px;\r\n  background-repeat: no-repeat;\r\n}\r\n<\/pre>\n<p>In this example, we added the same four images with different positions, resulting in a stunning effect.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg\" width=\"500\" height=\"280\" alt=\"CSS3 multiple background example\"><\/figure>\n<p><a href=\"http:\/\/css3-multiple-backgrounds\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"_self\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  View demo <\/span><\/a><\/p>\n<h2>Adding Animation Effects<\/h2>\n<p>We can make the result even more impressive by adding <a href=\"https:\/\/www.hongkiat.com\/blog\/creative-css-animations\/\"><strong>CSS3 Animations<\/strong><\/a>. To keep the coding simple, we will use only the standard syntax from W3C. However, keep in mind that browsers like IE9, Firefox, Opera, Chrome, and Safari still need their respective prefixes for this to work correctly.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/css3-animation-advanced-marquee\/\" class=\"ref-block__link\" title=\"Read More: How to Advanced Marquee Effect with CSS3 Animation\" rel=\"bookmark\"><span class=\"screen-reader-text\">How to Advanced Marquee Effect with CSS3 Animation<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/css3-animation-advanced-marquee.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-14113 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/css3-animation-advanced-marquee.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">How to Advanced Marquee Effect with CSS3 Animation<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tToday we are going to take a look at \"marquee\" once again. We actually have covered about it...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<pre>\r\n@keyframes weather { \r\n  0% {\r\n    background-position: 120px 25px, 200px 10px, 280px 25px, 80px 10px;\r\n  }\r\n  100% {\r\n    background-position: 150px 25px, 200px 10px, 250px 25px, 100px 10px;\r\n  }\r\n}\r\n<\/pre>\n<p>After specifying the <code>@keyframes<\/code>, we just need to add the animation with the keyframe name to the intended selector, in this case, <code>.weather<\/code>:<\/p>\n<pre>\r\n.weather {\r\n  animation: weather 5s;\r\n}\r\n<\/pre>\n<p>That\u2019s it! You can now see the animation effect in action from the links below and download the source code for further examination.<\/p>\n<p><a href=\"https:\/\/hongkiat.github.io\/css3-multiple-backgrounds\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"_self\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  View demo <\/span><\/a>\n<a href=\"https:\/\/github.com\/hongkiat\/css3-multiple-backgrounds\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"_self\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  Download source <\/span><\/a><\/p>\n<h2>Browser Support<\/h2>\n<p>According to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/caniuse.com\/multibackgrounds\">CanIUse.com<\/a>, CSS3 Multiple Backgrounds is supported in the following browsers: IE9+, Firefox 3.6+, and others. Unfortunately, <strong>Internet Explorer 8<\/strong> does not support this feature. If you are comfortable leaving IE8 behind, you can start using <strong>CSS3 Multiple Backgrounds<\/strong> right now.<\/p>\n<h2>Further References<\/h2>\n<ul>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/CSS\/Using_CSS_multiple_backgrounds\">Using CSS Multiple Backgrounds<\/a> \u2013 MDN<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.w3.org\/TR\/css3-background\/\">CSS3 Backgrounds and Borders Module Level 3<\/a> \u2013 W3.org<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image in a single declaration block. Now, CSS3 raises the stakes by providing the option of adding multiple backgrounds. How to Use Multiple Backgrounds in CSS3 In the past, to&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392,352],"tags":[507,506,2016],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Multiple Backgrounds with CSS3<\/title>\n<meta name=\"description\" content=\"Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image\" \/>\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.hongkiat.com\/blog\/css3-multiple-backgrounds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Simple Guide to Using CSS3 Multiple Backgrounds\" \/>\n<meta property=\"og:description\" content=\"Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-11T10:01:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-18T18:05:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"A Simple Guide to Using CSS3 Multiple Backgrounds\",\"datePublished\":\"2013-01-11T10:01:28+00:00\",\"dateModified\":\"2024-07-18T18:05:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/\"},\"wordCount\":354,\"commentCount\":25,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-multiple-backgrounds\\\/multiple-background-preview.jpg\",\"keywords\":[\"CSS\",\"HTML\",\"HTML5 \\\/ CSS3 Tutorials\"],\"articleSection\":[\"Coding\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/\",\"name\":\"Multiple Backgrounds with CSS3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-multiple-backgrounds\\\/multiple-background-preview.jpg\",\"datePublished\":\"2013-01-11T10:01:28+00:00\",\"dateModified\":\"2024-07-18T18:05:37+00:00\",\"description\":\"Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-multiple-backgrounds\\\/multiple-background-preview.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-multiple-backgrounds\\\/multiple-background-preview.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-multiple-backgrounds\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A Simple Guide to Using CSS3 Multiple Backgrounds\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Multiple Backgrounds with CSS3","description":"Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image","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.hongkiat.com\/blog\/css3-multiple-backgrounds\/","og_locale":"en_US","og_type":"article","og_title":"A Simple Guide to Using CSS3 Multiple Backgrounds","og_description":"Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image","og_url":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2013-01-11T10:01:28+00:00","article_modified_time":"2024-07-18T18:05:37+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"A Simple Guide to Using CSS3 Multiple Backgrounds","datePublished":"2013-01-11T10:01:28+00:00","dateModified":"2024-07-18T18:05:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/"},"wordCount":354,"commentCount":25,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg","keywords":["CSS","HTML","HTML5 \/ CSS3 Tutorials"],"articleSection":["Coding","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/","url":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/","name":"Multiple Backgrounds with CSS3","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg","datePublished":"2013-01-11T10:01:28+00:00","dateModified":"2024-07-18T18:05:37+00:00","description":"Adding a background image with CSS is nothing new; this feature has been available since the beginning. However, we were limited to adding only one image","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-multiple-backgrounds\/multiple-background-preview.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/css3-multiple-backgrounds\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"A Simple Guide to Using CSS3 Multiple Backgrounds"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-4be","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=16072"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16072\/revisions"}],"predecessor-version":[{"id":72319,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16072\/revisions\/72319"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=16072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=16072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=16072"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=16072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}