{"id":16634,"date":"2013-03-11T18:20:16","date_gmt":"2013-03-11T10:20:16","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=16634"},"modified":"2025-04-04T01:30:14","modified_gmt":"2025-04-03T17:30:14","slug":"css-masking","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/css-masking\/","title":{"rendered":"Mastering Clipping and Masking Techniques with CSS"},"content":{"rendered":"<p>Masking in image editing is a method of \u201chiding\u201d a portion of an object based on another object. This method has long been available in image editors like Photoshop. A similar method can also be achieved in CSS using specific properties.<\/p>\n<p>Before we proceed, let\u2019s first take a look at how this effect is done in Photoshop, and then we\u2019ll explore how to replicate a similar effect with CSS.<\/p>\n<p><a href=\"https:\/\/hongkiat.github.io\/css-masking\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><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>In Photoshop<\/h2>\n<p>In Photoshop, at least two objects are required for masking. After that, simply hold the <strong>Alt (Win)<\/strong> or <strong>Option (Mac)<\/strong> key and position the mouse pointer between the layers of these two objects (see screenshot).<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.jpg\" width=\"500\" height=\"280\" alt=\"Photoshop masking technique with circle and rectangle\"><\/figure>\n<p>In this example, a circle is clipped into a rectangle.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/clip-example.jpg\" width=\"500\" height=\"280\" alt=\"Example of circle clipped into a rectangle using Photoshop\"><\/figure>\n<p>Masking can also be applied to other types of layers. In this example, an image is masked to text.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/text-mask.jpg\" width=\"500\" height=\"280\" alt=\"Text masking technique using an image in Photoshop\"><\/figure>\n<p>So, can we apply similar techniques on the web? The answer is yes. Let\u2019s see how it\u2019s done.<\/p>\n<h2>In CSS<\/h2>\n<p>There are several CSS properties we can use to recreate similar effects on the web, such as <code>overflow<\/code>, <code>clip<\/code>, and the new CSS3 property <code>background-clip<\/code>.<\/p>\n<h3>Overflow<\/h3>\n<p>The <code>overflow<\/code> property defines the area that exceeds the CSS box model. In the following example, we recreate the first Photoshop example.<\/p>\n<p>In the HTML markup, we will have two <code>div<\/code> elements to form the circle and the rectangle. The circle\u2019s <code>div<\/code> is nested inside the rectangle\u2019s <code>div<\/code> like so:<\/p>\n<pre>\r\n&lt;div class=\"rect\"&gt;\r\n    &lt;div class=\"circle\"&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>Next, we style the elements and position the circle slightly out of the rectangle to the right.<\/p>\n<pre>\r\n.rect {\r\n    width: 200px;\r\n    height: 200px;\r\n    background-color: #eaeaea;\r\n}\r\n.circle {\r\n    width: 200px;\r\n    height: 200px;\r\n    border-radius: 100px;\r\n    background-color: #601785;\r\n    position: relative;\r\n    left: 100px;\r\n}\r\n<\/pre>\n<p>At this point, we achieve the following result:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/css-masking.jpg\" width=\"500\" height=\"280\" alt=\"Initial result of circle and rectangle before overflow hidden\"><\/figure>\n<p>Now, to hide the part that exceeds the rectangle area, simply declare the <code>overflow<\/code> property as hidden on the rectangle like so:<\/p>\n<pre>\r\n.rect {\r\n    width: 200px;\r\n    height: 200px;\r\n    background-color: #eaeaea;\r\n    overflow: hidden;\r\n}\r\n<\/pre>\n<p>And there we have it; the result is the same as the Photoshop method.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/css-masking-2.jpg\" width=\"500\" height=\"280\" alt=\"Final result of clipping circle within rectangle using CSS overflow hidden\"><\/figure>\n<h3>Clip<\/h3>\n<p>Another method is using the <code>clip<\/code> property. This property has been around since CSS2, so it is supported by older browsers. By using <code>clip<\/code>, we won\u2019t need the rectangle <code>div<\/code>. Instead, our markup will just be the circle, as shown below:<\/p>\n<pre>\r\n&lt;div class=\"circle\"&gt;&lt;\/div&gt;\r\n<\/pre>\n<p>With the same style, we form this <code>div<\/code> into a circle. Then, we use the <code>clip<\/code> property to hide half of this circle. The <code>clip<\/code> property supports the <code>rect()<\/code> function, which contains four values defining the rectangle\u2019s coordinates as <code>rect(top, right, bottom, left)<\/code>.<\/p>\n<p>Lastly, for the <code>clip<\/code> property to work in hiding the element, we need to set the element\u2019s position to <code>absolute<\/code>.<\/p>\n<pre>\r\n.circle {\r\n    width: 200px;\r\n    height: 200px;\r\n    border-radius: 100px;\r\n    background-color: #601785;\r\n    position: absolute;\r\n    left: 100px;\r\n    clip: rect(0px,100px,200px,0px);\r\n}\r\n<\/pre>\n<p>This code will result in the following. Unfortunately, since we define the rectangle through the <code>rect()<\/code> function, we cannot add a background color to it, but the concept of masking elements is still there.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/clip-property.jpg\" width=\"500\" height=\"280\" alt=\"Result of clipping circle using CSS clip property\"><\/figure>\n<h3>Background Clip<\/h3>\n<p>CSS3 introduced a new property called <code>background-clip<\/code>, which determines the background painting area. This property allows us to limit where the background will be applied.<\/p>\n<p>The full syntax of this property is: <code>background-clip: border-box|padding-box|content-box;<\/code>.<\/p>\n<p>WebKit browsers have extended this property by adding the <code>text<\/code> value, making it possible to use text for masking. In the following example, we will recreate the second masking effect from our Photoshop example. First, we add the text like so:<\/p>\n<pre>\r\n&lt;h1&gt;Galaxy&lt;\/h1&gt;\r\n<\/pre>\n<p>Next, in the stylesheet, we add a <code>background-image<\/code> to the text and declare the <code>background-clip<\/code> property. To make the background visible, we also decrease the text color\u2019s opacity using RGBA color mode.<\/p>\n<pre>\r\nh1 {\r\n    font-family: Arial;\r\n    font-size: 5em;\r\n    text-align: center;\r\n    \r\n    background-image: url(Galaxy.jpg);\r\n    \r\n    -webkit-background-clip: text;\r\n    background-clip: text;\r\n    \r\n    color: rgba(0,0,0,0);\r\n}\r\n<\/pre>\n<p>This code will produce the following effect for the text.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/clip-text.jpg\" width=\"500\" height=\"280\" alt=\"Text masked with image using CSS background-clip property\"><\/figure>\n<p><a href=\"https:\/\/hongkiat.github.io\/css-masking\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><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\/css-masking\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><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>Final Thoughts<\/h2>\n<p>In this post, we have covered three different approaches to masking objects on the web. There is no one best way; it depends on the purpose. Have you tried these properties on your website? Do you have other tips for achieving similar effects? Share your thoughts in the comment box below.<\/p>","protected":false},"excerpt":{"rendered":"<p>Masking in image editing is a method of \u201chiding\u201d a portion of an object based on another object. This method has long been available in image editors like Photoshop. A similar method can also be achieved in CSS using specific properties. Before we proceed, let\u2019s first take a look at how this effect is done&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],"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.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Clipping and Masking With CSS<\/title>\n<meta name=\"description\" content=\"Masking in image editing is a method of &quot;hiding&quot; a portion of an object based on another object. This method has long been available in image editors like\" \/>\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\/css-masking\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mastering Clipping and Masking Techniques with CSS\" \/>\n<meta property=\"og:description\" content=\"Masking in image editing is a method of &quot;hiding&quot; a portion of an object based on another object. This method has long been available in image editors like\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/css-masking\/\" \/>\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-03-11T10:20:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T17:30:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"Mastering Clipping and Masking Techniques with CSS\",\"datePublished\":\"2013-03-11T10:20:16+00:00\",\"dateModified\":\"2025-04-03T17:30:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/\"},\"wordCount\":673,\"commentCount\":35,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css-masking\\\/ps-clip.jpg\",\"keywords\":[\"CSS\"],\"articleSection\":[\"Coding\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/\",\"name\":\"Clipping and Masking With CSS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css-masking\\\/ps-clip.jpg\",\"datePublished\":\"2013-03-11T10:20:16+00:00\",\"dateModified\":\"2025-04-03T17:30:14+00:00\",\"description\":\"Masking in image editing is a method of \\\"hiding\\\" a portion of an object based on another object. This method has long been available in image editors like\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css-masking\\\/ps-clip.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css-masking\\\/ps-clip.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css-masking\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mastering Clipping and Masking Techniques with CSS\"}]},{\"@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":"Clipping and Masking With CSS","description":"Masking in image editing is a method of \"hiding\" a portion of an object based on another object. This method has long been available in image editors like","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\/css-masking\/","og_locale":"en_US","og_type":"article","og_title":"Mastering Clipping and Masking Techniques with CSS","og_description":"Masking in image editing is a method of \"hiding\" a portion of an object based on another object. This method has long been available in image editors like","og_url":"https:\/\/www.hongkiat.com\/blog\/css-masking\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2013-03-11T10:20:16+00:00","article_modified_time":"2025-04-03T17:30:14+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"Mastering Clipping and Masking Techniques with CSS","datePublished":"2013-03-11T10:20:16+00:00","dateModified":"2025-04-03T17:30:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/"},"wordCount":673,"commentCount":35,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.jpg","keywords":["CSS"],"articleSection":["Coding","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/css-masking\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/","url":"https:\/\/www.hongkiat.com\/blog\/css-masking\/","name":"Clipping and Masking With CSS","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.jpg","datePublished":"2013-03-11T10:20:16+00:00","dateModified":"2025-04-03T17:30:14+00:00","description":"Masking in image editing is a method of \"hiding\" a portion of an object based on another object. This method has long been available in image editors like","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/css-masking\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/css-masking\/ps-clip.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/css-masking\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Mastering Clipping and Masking Techniques with CSS"}]},{"@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-4ki","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16634","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=16634"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16634\/revisions"}],"predecessor-version":[{"id":73579,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16634\/revisions\/73579"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=16634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=16634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=16634"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=16634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}