{"id":16543,"date":"2013-02-27T21:01:11","date_gmt":"2013-02-27T13:01:11","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=16543"},"modified":"2024-09-03T23:12:20","modified_gmt":"2024-09-03T15:12:20","slug":"css3-checkbox-radio","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/","title":{"rendered":"Enhance Checkbox and Radio Button Design Using CSS3"},"content":{"rendered":"<p>With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we\u2019ll explore how to personalize the appearance of <code>checkbox<\/code> and <code>radio<\/code> inputs using CSS.<\/p>\n<p>These form elements can be tricky to style consistently across different platforms \u2013 <a href=\"https:\/\/www.hongkiat.com\/blog\/tag\/windows\/\">Windows<\/a>, <a href=\"https:\/\/www.hongkiat.com\/blog\/tag\/macos\/\">macOS<\/a>, and <a href=\"https:\/\/www.hongkiat.com\/blog\/tag\/linux\/\">Linux<\/a> each have their own default designs. This tutorial will guide you through customizing these elements for a unified appearance.<\/p>\n<p>If you\u2019re looking to personalize these form elements, this tutorial is for you. Let\u2019s dive in.<\/p>\n<hr>\n<h2>HTML Markup<\/h2>\n<p>We\u2019ll start by creating a basic HTML structure.<\/p>\n<p><strong>Radio Input<\/strong><\/p>\n<pre>\r\n&lt;div class=\"radio\"&gt;\r\n    &lt;input id=\"male\" type=\"radio\" name=\"gender\" value=\"male\"&gt;\r\n    &lt;label for=\"male\"&gt;Male&lt;\/label&gt;\r\n    &lt;input id=\"female\" type=\"radio\" name=\"gender\" value=\"female\"&gt;\r\n    &lt;label for=\"female\"&gt;Female&lt;\/label&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><strong>Checkbox Input<\/strong><\/p>\n<pre>\r\n&lt;div class=\"checkbox\"&gt;\r\n    &lt;input id=\"check1\" type=\"checkbox\" name=\"check\" value=\"check1\"&gt;\r\n    &lt;label for=\"check1\"&gt;Checkbox No. 1&lt;\/label&gt;\r\n    &lt;br&gt;\r\n    &lt;input id=\"check2\" type=\"checkbox\" name=\"check\" value=\"check2\"&gt;\r\n    &lt;label for=\"check2\"&gt;Checkbox No. 2&lt;\/label&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<hr>\n<h2>CSS<\/h2>\n<p>With the HTML structure in place, let\u2019s add some styles to the <code>&lt;input&gt;<\/code> elements. We\u2019ll start with the radio input type. The goal is to transform the default OS design into something similar to the screenshot below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-preview.jpg\" width=\"500\" height=\"130\" alt=\"Customized radio button design preview\"><\/figure>\n<h3>Styling Radio Input<\/h3>\n<p>First, we\u2019ll set the cursor on the labels to a pointer to indicate they are clickable, and then apply some additional styles.<\/p>\n<pre>\r\nlabel {\r\n    display: inline-block;\r\n    cursor: pointer;\r\n    position: relative;\r\n    padding-left: 25px;\r\n    margin-right: 15px;\r\n    font-size: 13px;\r\n}\r\n<\/pre>\n<p>Next, we\u2019ll hide the default <code>radio<\/code> input.<\/p>\n<pre>\r\ninput[type=radio] {\r\n    display: none;\r\n}\r\n<\/pre>\n<p>We\u2019ll then replace the hidden <code>radio<\/code> input with a pseudo-element using <code>:before<\/code>.<\/p>\n<pre>\r\nlabel:before {\r\n    content: \"\";\r\n    display: inline-block;\r\n    width: 16px;\r\n    height: 16px;\r\n    margin-right: 10px;\r\n    position: absolute;\r\n    left: 0;\r\n    bottom: 1px;\r\n    background-color: #aaa;\r\n    box-shadow: inset 0px 2px 3px rgba(0, 0, 0, .3), 0px 1px rgba(255, 255, 255, .8);\r\n}\r\n<\/pre>\n<p>The above styles can also be applied to the checkbox input type. The only difference is that the radio input type is circular. To achieve this, we add <code>border-radius<\/code> with a value that\u2019s half the height and width.<\/p>\n<pre>\r\n.radio label:before {\r\n    border-radius: 8px;\r\n}\r\n<\/pre>\n<p class=\"note\"><strong>Recommended Reading<\/strong>: <a href=\"https:\/\/www.hongkiat.com\/blog\/pseudo-element-before-after\/\">Understanding Pseudo-elements: before and after<\/a><\/p>\n<p>At this stage, here\u2019s how our <code>radio<\/code> input type looks:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-1.jpg\" width=\"500\" height=\"116\" alt=\"Styled radio button example\"><\/figure>\n<p>Now, we\u2019ll add a small circle inside when the input is checked. We will utilize the CSS3 <code>:checked<\/code> pseudo-class along with the Bullet HTML character (<code>&#8226;<\/code>). To use this character in CSS, you\u2019ll need to convert it using an <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.evotech.net\/articles\/testjsentities.html\">Entity Conversion Tool<\/a>.<\/p>\n<pre>\r\ninput[type=radio]:checked + label:before {\r\n    content: \"\\2022\";\r\n    color: #f3f3f3;\r\n    font-size: 30px;\r\n    text-align: center;\r\n    line-height: 18px;\r\n}\r\n<\/pre>\n<p>When the hidden radio input is checked, a smaller circle appears, as shown below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-preview.jpg\" width=\"500\" height=\"130\" alt=\"Checked radio button with inner circle\"><\/figure>\n<p>Alternatively, you can use an image as a background in the <code>:before<\/code> pseudo-element instead of relying on CSS, but it\u2019s often better to avoid images when possible.<\/p>\n<h3>Styling Checkbox Input<\/h3>\n<p>Next, we\u2019ll style the <code>checkbox<\/code> input type. As before, we\u2019ll start by hiding the input element.<\/p>\n<pre>\r\ninput[type=checkbox] {\r\n    display: none;\r\n}\r\n<\/pre>\n<p>Since we\u2019ve already replaced the input with a <code>:before<\/code> pseudo-element, we\u2019ll now add the border radius to create a square shape.<\/p>\n<pre>\r\n.checkbox label:before {\r\n    border-radius: 3px;\r\n}\r\n<\/pre>\n<p>We\u2019ll then add a checkmark using the Check Mark HTML Character (<code>&#10003;<\/code>) when the input is checked.<\/p>\n<pre>\r\ninput[type=checkbox]:checked + label:before {\r\n    content: \"\\2713\";\r\n    text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);\r\n    font-size: 15px;\r\n    color: #f3f3f3;\r\n    text-align: center;\r\n    line-height: 15px;\r\n}\r\n<\/pre>\n<p>Here\u2019s the final appearance of our checkbox:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/checkbox.jpg\" width=\"500\" height=\"123\" alt=\"Styled checkbox with checkmark\"><\/figure>\n<hr>\n<h2>Final Thoughts<\/h2>\n<p>This is just one method to customize <code>checkbox<\/code> and <code>radio<\/code> inputs, and you can certainly enhance the look further. Keep in mind that this technique relies on CSS3 <code>:checked<\/code>, so it will only work in browsers that support this feature. If you prefer, you can use a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.maratz.com\/blog\/archives\/2006\/06\/11\/fancy-checkboxes-and-radio-buttons\/\">jQuery Plugin<\/a> instead.<\/p>\n<p>Finally, you can view the demo and download the source code using the links below:<\/p>\n<p><a href=\"https:\/\/hongkiat.github.io\/css3-checkbox-radio\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener\"><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-checkbox-radio\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener\"><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>","protected":false},"excerpt":{"rendered":"<p>With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we\u2019ll explore how to personalize the appearance of checkbox and radio inputs using CSS. These form elements can be tricky to style consistently across different platforms \u2013 Windows, macOS, and Linux each have their own default&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":[3395],"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.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Customize Checkboxes and Radio Buttons with CSS3<\/title>\n<meta name=\"description\" content=\"With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we&#039;ll explore how to personalize the appearance of\" \/>\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-checkbox-radio\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enhance Checkbox and Radio Button Design Using CSS3\" \/>\n<meta property=\"og:description\" content=\"With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we&#039;ll explore how to personalize the appearance of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/\" \/>\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-02-27T13:01:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-03T15:12:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-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=\"3 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-checkbox-radio\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"Enhance Checkbox and Radio Button Design Using CSS3\",\"datePublished\":\"2013-02-27T13:01:11+00:00\",\"dateModified\":\"2024-09-03T15:12:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/\"},\"wordCount\":495,\"commentCount\":26,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-checkbox-radio\\\/input-radio-preview.jpg\",\"keywords\":[\"CSS\",\"HTML\",\"HTML5 \\\/ CSS3 Tutorials\"],\"articleSection\":[\"UI\\\/UX\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/\",\"name\":\"Customize Checkboxes and Radio Buttons with CSS3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-checkbox-radio\\\/input-radio-preview.jpg\",\"datePublished\":\"2013-02-27T13:01:11+00:00\",\"dateModified\":\"2024-09-03T15:12:20+00:00\",\"description\":\"With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we'll explore how to personalize the appearance of\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-checkbox-radio\\\/input-radio-preview.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-checkbox-radio\\\/input-radio-preview.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-checkbox-radio\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enhance Checkbox and Radio Button Design Using CSS3\"}]},{\"@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":"Customize Checkboxes and Radio Buttons with CSS3","description":"With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we'll explore how to personalize the appearance of","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-checkbox-radio\/","og_locale":"en_US","og_type":"article","og_title":"Enhance Checkbox and Radio Button Design Using CSS3","og_description":"With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we'll explore how to personalize the appearance of","og_url":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2013-02-27T13:01:11+00:00","article_modified_time":"2024-09-03T15:12:20+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"Enhance Checkbox and Radio Button Design Using CSS3","datePublished":"2013-02-27T13:01:11+00:00","dateModified":"2024-09-03T15:12:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/"},"wordCount":495,"commentCount":26,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-preview.jpg","keywords":["CSS","HTML","HTML5 \/ CSS3 Tutorials"],"articleSection":["UI\/UX"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/","url":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/","name":"Customize Checkboxes and Radio Buttons with CSS3","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-preview.jpg","datePublished":"2013-02-27T13:01:11+00:00","dateModified":"2024-09-03T15:12:20+00:00","description":"With CSS3, we can customize web presentations to be almost anything we want them to be. In this post, we'll explore how to personalize the appearance of","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-preview.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-checkbox-radio\/input-radio-preview.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/css3-checkbox-radio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Enhance Checkbox and Radio Button Design Using CSS3"}]},{"@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-4iP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16543","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=16543"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16543\/revisions"}],"predecessor-version":[{"id":72813,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16543\/revisions\/72813"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=16543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=16543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=16543"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=16543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}