{"id":8949,"date":"2024-01-10T17:56:00","date_gmt":"2024-01-10T17:56:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8949"},"modified":"2024-01-22T15:58:21","modified_gmt":"2024-01-22T10:58:21","slug":"pure-css-custom-checkbox-style","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/","title":{"rendered":"Pure CSS Custom Checkbox Style"},"content":{"rendered":"<p>This pure CSS code snippet helps you to style custom checkbox. It comes with modern styles on modern browsers and classical checkboxes for IE8 and lower. The code hides the original checkbox and creates custom checkbox styles for improved accessibility and design. It&#8217;s a helpful solution for elevating your <a href=\"https:\/\/codehim.com\/html5-css3\/checkbox-css-style-examples\/\" target=\"_blank\" rel=\"noopener\">checkbox design<\/a>.<\/p>\n<p>Plus, it maintains compatibility with older browsers like IE8 for a seamless design across all platforms. You can use this code on your website to style checkboxes for more modern look.<\/p>\n<h2>How to Create Pure CSS Custom Checkbox Style<\/h2>\n<p>1. Begin by creating your HTML structure. Add checkboxes within <code>&lt;input&gt;<\/code> elements and their corresponding labels with <code>&lt;label&gt;<\/code> elements. Each checkbox should have a unique <code>id<\/code> attribute, and the <code>for<\/code> attribute of the label should match the checkbox&#8217;s <code>id<\/code>.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;h1&gt;Accessible Custom checkboxes with CSS only&lt;\/h1&gt;\r\n&lt;h2&gt;\"automatic\" fallback for IE&lt;\/h2&gt;\r\n\r\n\r\n&lt;form action=\"#\"&gt;\r\n  &lt;p&gt;\r\n    &lt;input type=\"checkbox\" id=\"test1\" \/&gt;\r\n    &lt;label for=\"test1\"&gt;Red&lt;\/label&gt;\r\n  &lt;\/p&gt;\r\n  &lt;p&gt;\r\n    &lt;input type=\"checkbox\" id=\"test2\" checked=\"checked\" \/&gt;\r\n    &lt;label for=\"test2\"&gt;Yellow&lt;\/label&gt;\r\n  &lt;\/p&gt;\r\n  &lt;p&gt;\r\n    &lt;input type=\"checkbox\" id=\"test3\" checked=\"checked\" disabled=\"disabled\" \/&gt;\r\n    &lt;label for=\"test3\"&gt;Green&lt;\/label&gt;\r\n  &lt;\/p&gt;\r\n    &lt;p&gt;\r\n      &lt;input type=\"checkbox\" id=\"test4\" disabled=\"disabled\" \/&gt;\r\n      &lt;label for=\"test4\"&gt;Brown&lt;\/label&gt;\r\n  &lt;\/p&gt;\r\n&lt;\/form&gt;\r\n\r\n&lt;p class=\"txtcenter\"&gt;\r\n  &lt;a class=\"btn\" href=\"https:\/\/www.creativejuiz.fr\/blog\/en\/tutorials\/customize-checkbox-and-radio-button-with-css\"&gt;Read the article&lt;\/a&gt;\r\n&lt;\/p&gt;\r\n\r\n&lt;p class=\"txtcenter\"&gt;Custom styles on modern browsers.&lt;br\/&gt;Classical checkboxes on IE8 and lower.&lt;\/p&gt;\r\n\r\n&lt;p class=\"txtcenter copy\"&gt;by &lt;a href=\"https:\/\/twitter.com\/geoffreycrofte\"&gt;@geoffreycrofte&lt;\/a&gt;&lt;br \/&gt;see also &lt;a href=\"https:\/\/codepen.io\/CreativeJuiz\/pen\/zqKtp\"&gt;Flat UI Styles for Checkboxes&lt;\/a&gt;&lt;\/p&gt;\r\n<\/pre>\n<p>2. Copy and paste the following CSS code into your project. This CSS code defines the styles for both checked and unchecked checkboxes and handles various states like disabled and focused checkboxes.<\/p>\n<pre class=\"prettyprint linenums lang-css\">\/* Base for label styling *\/\r\n\t[type=\"checkbox\"]:not(:checked),\r\n\t[type=\"checkbox\"]:checked {\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\topacity: 0.01;\r\n\t}\r\n\t[type=\"checkbox\"]:not(:checked) + label,\r\n\t[type=\"checkbox\"]:checked + label {\r\n\t\tposition: relative;\r\n\t\tpadding-left: 2.3em;\r\n\t\tfont-size: 1.05em;\r\n\t\tline-height: 1.7;\r\n\t\tcursor: pointer;\r\n\t}\r\n\r\n\t\/* checkbox aspect *\/\r\n\t[type=\"checkbox\"]:not(:checked) + label:before,\r\n\t[type=\"checkbox\"]:checked + label:before {\r\n\t\tcontent: '';\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\ttop: 0;\r\n\t\twidth: 1.4em;\r\n\t\theight: 1.4em;\r\n\t\tborder: 1px solid #aaa;\r\n\t\tbackground: #FFF;\r\n\t\tborder-radius: .2em;\r\n\t\tbox-shadow: inset 0 1px 3px rgba(0,0,0, .1), 0 0 0 rgba(203, 34, 237, .2);\r\n\t\t-webkit-transition: all .275s;\r\n\t\t\t\ttransition: all .275s;\r\n\t}\r\n\r\n\t\/* checked mark aspect *\/\r\n\t[type=\"checkbox\"]:not(:checked) + label:after,\r\n\t[type=\"checkbox\"]:checked + label:after {\r\n\t\tcontent: '\u2715';\r\n\t\tposition: absolute;\r\n\t\ttop: .525em;\r\n\t\tleft: .18em;\r\n\t\tfont-size: 1.375em;\r\n\t\tcolor: #CB22ED;\r\n\t\tline-height: 0;\r\n\t\t-webkit-transition: all .2s;\r\n\t\t\t\ttransition: all .2s;\r\n\t}\r\n\r\n\t\/* checked mark aspect changes *\/\r\n\t[type=\"checkbox\"]:not(:checked) + label:after {\r\n\t\topacity: 0;\r\n\t\t-webkit-transform: scale(0) rotate(45deg);\r\n\t\t\t\ttransform: scale(0) rotate(45deg);\r\n\t}\r\n\r\n\t[type=\"checkbox\"]:checked + label:after {\r\n\t\topacity: 1;\r\n\t\t-webkit-transform: scale(1) rotate(0);\r\n\t\t\t\ttransform: scale(1) rotate(0);\r\n\t}\r\n\r\n\t\/* Disabled checkbox *\/\r\n\t[type=\"checkbox\"]:disabled:not(:checked) + label:before,\r\n\t[type=\"checkbox\"]:disabled:checked + label:before {\r\n\t\tbox-shadow: none;\r\n\t\tborder-color: #bbb;\r\n\t\tbackground-color: #e9e9e9;\r\n\t}\r\n\r\n\t[type=\"checkbox\"]:disabled:checked + label:after {\r\n\t\tcolor: #777;\r\n\t}\r\n\r\n\t[type=\"checkbox\"]:disabled + label {\r\n\t\tcolor: #aaa;\r\n\t}\r\n\r\n\t\/* Accessibility *\/\r\n\t[type=\"checkbox\"]:checked:focus + label:before,\r\n\t[type=\"checkbox\"]:not(:checked):focus + label:before {\r\n\t\tbox-shadow: inset 0 1px 3px rgba(0,0,0, .1), 0 0 0 6px rgba(203, 34, 237, .2);\r\n\t}\r\n\r\n\r\n\r\n\r\n\/*\r\n * Useless styles, just for demo design\r\n *\/\r\nbody {\r\n  font-family: \"Open Sans\", \"Segoe WP\", \"Segoe UI\", Helvetica, Arial, sans-serif;\r\n  text-align: center;\r\n  color: #34495E;\r\n    background: #FCFDFD;\r\n}\r\n\r\na[href^=\"https:\/\/www.creativejuiz\"] {\r\n  color: #34495E;\r\n  text-decoration: underline;\r\n}\r\n\r\nh1 {\r\n  margin-top: 1em;\r\n}\r\n\r\nh2 {\r\n  margin-top: 0;\r\n  margin-bottom: 2em;\r\n  color: #CB22ED;\r\n  font-weight: normal;\r\n}\r\n\r\nform {\r\n  width: 120px;\r\n  margin: 0 auto 55px;\r\n  text-align: left;\r\n}\r\n\r\ndiv p:first-child {\r\n  font-weight: bold;\r\n  font-size: 1.2em;\r\n}\r\n\r\np { \r\n  color: #aaa;\r\n}\r\n\r\np a {\r\n  color: inherit;\r\n}\r\n\r\np + p {\r\n  margin-top: 3em;\r\n}\r\n\r\nform p {\r\n  margin: 15px 0;\r\n  color: #34495E;\r\n}\r\n\r\na[href^=\"https:\/\/twitter.com\"] {\r\n  color: #1da1f2;\r\n}\r\n\r\n.btn.btn {\r\n  display: inline-block;\r\n  padding: 8px 24px;\r\n  text-decoration: none;\r\n  border-radius: 40px;\r\n  background: #34495E;\r\n  color: #F2F2F2;\r\n  transition: all .4s;\r\n}\r\n\r\n.btn.btn:hover,\r\n.btn.btn:focus {\r\n  background: #000;\r\n}<\/pre>\n<p>The CSS code includes styles for the checkboxes&#8217; appearance, label positioning, and checked mark. Customize these styles to match your website&#8217;s design by modifying properties like color, size, and border-radius.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created Custom Checkboxes in your project. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This pure CSS code snippet helps you to style custom checkbox. It comes with modern styles on modern browsers and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8957,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[],"class_list":["post-8949","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pure CSS Custom Checkbox Style &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Pure CSS Custom Checkbox Style. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pure CSS Custom Checkbox Style &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Pure CSS Custom Checkbox Style. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-10T17:56:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:58:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Pure CSS Custom Checkbox Style\",\"datePublished\":\"2024-01-10T17:56:00+00:00\",\"dateModified\":\"2024-01-22T10:58:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\"},\"wordCount\":217,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png\",\"articleSection\":[\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\",\"url\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\",\"name\":\"Pure CSS Custom Checkbox Style &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png\",\"datePublished\":\"2024-01-10T17:56:00+00:00\",\"dateModified\":\"2024-01-22T10:58:21+00:00\",\"description\":\"Here is a free code snippet to create a Pure CSS Custom Checkbox Style. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png\",\"width\":1280,\"height\":960,\"caption\":\"Pure CSS Custom Checkbox Style\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Pure CSS Custom Checkbox Style\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pure CSS Custom Checkbox Style &#8212; CodeHim","description":"Here is a free code snippet to create a Pure CSS Custom Checkbox Style. You can view demo and download the source code.","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:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/","og_locale":"en_US","og_type":"article","og_title":"Pure CSS Custom Checkbox Style &#8212; CodeHim","og_description":"Here is a free code snippet to create a Pure CSS Custom Checkbox Style. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-10T17:56:00+00:00","article_modified_time":"2024-01-22T10:58:21+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Pure CSS Custom Checkbox Style","datePublished":"2024-01-10T17:56:00+00:00","dateModified":"2024-01-22T10:58:21+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/"},"wordCount":217,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png","articleSection":["Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/","url":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/","name":"Pure CSS Custom Checkbox Style &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png","datePublished":"2024-01-10T17:56:00+00:00","dateModified":"2024-01-22T10:58:21+00:00","description":"Here is a free code snippet to create a Pure CSS Custom Checkbox Style. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Pure-CSS-Custom-Checkbox-Style.png","width":1280,"height":960,"caption":"Pure CSS Custom Checkbox Style"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/pure-css-custom-checkbox-style\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"Pure CSS Custom Checkbox Style"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":982,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=8949"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8949\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8957"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}