{"id":4903,"date":"2022-04-30T02:00:00","date_gmt":"2022-04-30T00:00:00","guid":{"rendered":"https:\/\/alvarotrigo.com\/epa\/css-checkbox-styles\/"},"modified":"2025-07-02T12:30:03","modified_gmt":"2025-07-02T10:30:03","slug":"css-checkbox-styles","status":"publish","type":"post","link":"https:\/\/alvarotrigo.com\/blog\/css-checkbox-styles\/","title":{"rendered":"How to Style a Checkbox With CSS [ +17 Examples ]"},"content":{"rendered":"\n<p>On most websites, checkboxes are left untouched \u2014 plain, standard, and frankly, a little boring. But it doesn\u2019t have to be that way. With just a bit of CSS, you can turn those dull form elements into something that actually matches your site\u2019s design. <\/p>\n\n\n\n<p><strong>This guide will walk you through the process of styling a checkbox using CSS<\/strong>. And once you&#8217;re done, you\u2019ll also get access to over 17 ready-made examples you can copy, tweak, and use in your projects instantly\u2014no need to be an expert developer<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" data-src=\"https:\/\/alvarotrigo.com\/blog\/assets\/imgs\/2022-04-30\/collection-beautiful-css-checkbox-styles.jpeg\" alt=\"Collection Of Beautiful CSS Checkbox Styles\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Looking for Toggle elements? Then check out our list of <a href=\"https:\/\/alvarotrigo.com\/blog\/toggle-switch-css\/\">20+ CSS Toggle Switches<\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-do-i-style-a-checkbox-in-css%3F\">How to Create a Custom CSS Checkbox Style<\/h2>\n\n\n\n<p><strong>Here is how to style a checkbox using CSS:<\/strong><\/p>\n\n\n\n<h3 id=\"step-1-set-up-the-html\" class=\"wp-block-heading\">Step 1: Set Up the HTML<\/h3>\n\n\n\n<p>Start with a basic HTML structure. We\u2019ll wrap the checkmark box in a <code>&lt;label><\/code> so it\u2019s easier to click.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">label<\/span> <span class=\"hljs-attr\">class<\/span>=<span class=\"hljs-string\">\"custom-checkbox\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">input<\/span> <span class=\"hljs-attr\">type<\/span>=<span class=\"hljs-string\">\"checkbox\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">span<\/span> <span class=\"hljs-attr\">class<\/span>=<span class=\"hljs-string\">\"checkmark\"<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">span<\/span>&gt;<\/span>\n  Subscribe to newsletter\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">label<\/span>&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li>The <code>&lt;input type=\"checkbox\"&gt;<\/code> is the actual checkbox.<\/li>\n\n\n\n<li>The <code>&lt;span class=\"checkmark\"&gt;<\/code> will be the custom visual checkbox.<\/li>\n\n\n\n<li>The label text (\u201cSubscribe to newsletter\u201d) can be anything you like.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"step-2-style-with-css\" class=\"wp-block-heading\">Step 2: Style with CSS<\/h3>\n\n\n\n<p>Now let\u2019s hide the default checkbox and style the&nbsp;<code>.checkmark<\/code>.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-comment\">\/* Hide default checkbox *\/<\/span>\n<span class=\"hljs-selector-class\">.custom-checkbox<\/span> <span class=\"hljs-selector-tag\">input<\/span><span class=\"hljs-selector-attr\">&#91;type=<span class=\"hljs-string\">\"checkbox\"<\/span>]<\/span> {\n  <span class=\"hljs-attribute\">display<\/span>: none;\n}\n\n<span class=\"hljs-comment\">\/* Create custom box *\/<\/span>\n<span class=\"hljs-selector-class\">.custom-checkbox<\/span> <span class=\"hljs-selector-class\">.checkmark<\/span> {\n  <span class=\"hljs-attribute\">display<\/span>: inline-block;\n  <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">20px<\/span>;\n  <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">20px<\/span>;\n  <span class=\"hljs-attribute\">background-color<\/span>: <span class=\"hljs-number\">#eee<\/span>;\n  <span class=\"hljs-attribute\">border<\/span>: <span class=\"hljs-number\">2px<\/span> solid <span class=\"hljs-number\">#ccc<\/span>;\n  <span class=\"hljs-attribute\">border-radius<\/span>: <span class=\"hljs-number\">4px<\/span>;\n  <span class=\"hljs-attribute\">margin-right<\/span>: <span class=\"hljs-number\">8px<\/span>;\n  <span class=\"hljs-attribute\">vertical-align<\/span>: middle;\n  <span class=\"hljs-attribute\">position<\/span>: relative;\n  <span class=\"hljs-attribute\">cursor<\/span>: pointer;\n}\n\n<span class=\"hljs-comment\">\/* Show checkmark when checked *\/<\/span>\n<span class=\"hljs-selector-class\">.custom-checkbox<\/span> <span class=\"hljs-selector-tag\">input<\/span><span class=\"hljs-selector-pseudo\">:checked<\/span> + <span class=\"hljs-selector-class\">.checkmark<\/span><span class=\"hljs-selector-pseudo\">::after<\/span> {\n  <span class=\"hljs-attribute\">content<\/span>: <span class=\"hljs-string\">\"\"<\/span>;\n  <span class=\"hljs-attribute\">position<\/span>: absolute;\n  <span class=\"hljs-attribute\">left<\/span>: <span class=\"hljs-number\">5px<\/span>;\n  <span class=\"hljs-attribute\">top<\/span>: <span class=\"hljs-number\">1px<\/span>;\n  <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">6px<\/span>;\n  <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">12px<\/span>;\n  <span class=\"hljs-attribute\">border<\/span>: solid <span class=\"hljs-number\">#333<\/span>;\n  <span class=\"hljs-attribute\">border-width<\/span>: <span class=\"hljs-number\">0<\/span> <span class=\"hljs-number\">2px<\/span> <span class=\"hljs-number\">2px<\/span> <span class=\"hljs-number\">0<\/span>;\n  <span class=\"hljs-attribute\">transform<\/span>: <span class=\"hljs-built_in\">rotate<\/span>(<span class=\"hljs-number\">45deg<\/span>);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This code does the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hides the native checkbox input (<code>display: none<\/code>).<\/li>\n\n\n\n<li>Style a square box (<code>.checkmark<\/code>) to look like a checkbox.<\/li>\n\n\n\n<li>Adds a checkmark using the <code>::after<\/code> pseudo-element when the\u00a0selection box is checked.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"step-3-add-hover-or-focus-styles-optional\" class=\"wp-block-heading\">Step 3: Add Hover or Focus Styles (Optional)<\/h3>\n\n\n\n<p>Make it interactive, adding a property to include a mouseover effect:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-class\">.custom-checkbox<\/span><span class=\"hljs-selector-pseudo\">:hover<\/span> <span class=\"hljs-selector-class\">.checkmark<\/span> {\n  <span class=\"hljs-attribute\">background-color<\/span>: <span class=\"hljs-number\">#ddd<\/span>;\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 id=\"step-4-paste-the-solution-example-on-your-site\" class=\"wp-block-heading\">Step 4: Paste the Solution Example on Your Site<\/h3>\n\n\n\n<p>Here\u2019s everything together in one block so you can test it:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">style<\/span>&gt;<\/span><span class=\"css\">\n  <span class=\"hljs-selector-class\">.custom-checkbox<\/span> <span class=\"hljs-selector-tag\">input<\/span><span class=\"hljs-selector-attr\">&#91;type=<span class=\"hljs-string\">\"checkbox\"<\/span>]<\/span> {\n    <span class=\"hljs-attribute\">display<\/span>: none;\n  }\n\n  <span class=\"hljs-selector-class\">.custom-checkbox<\/span> <span class=\"hljs-selector-class\">.checkmark<\/span> {\n    <span class=\"hljs-attribute\">display<\/span>: inline-block;\n    <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">20px<\/span>;\n    <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">20px<\/span>;\n    <span class=\"hljs-attribute\">background-color<\/span>: <span class=\"hljs-number\">#eee<\/span>;\n    <span class=\"hljs-attribute\">border<\/span>: <span class=\"hljs-number\">2px<\/span> solid <span class=\"hljs-number\">#ccc<\/span>;\n    <span class=\"hljs-attribute\">border-radius<\/span>: <span class=\"hljs-number\">4px<\/span>;\n    <span class=\"hljs-attribute\">margin-right<\/span>: <span class=\"hljs-number\">8px<\/span>;\n    <span class=\"hljs-attribute\">vertical-align<\/span>: middle;\n    <span class=\"hljs-attribute\">position<\/span>: relative;\n    <span class=\"hljs-attribute\">cursor<\/span>: pointer;\n  }\n\n  <span class=\"hljs-selector-class\">.custom-checkbox<\/span> <span class=\"hljs-selector-tag\">input<\/span><span class=\"hljs-selector-pseudo\">:checked<\/span> + <span class=\"hljs-selector-class\">.checkmark<\/span><span class=\"hljs-selector-pseudo\">::after<\/span> {\n    <span class=\"hljs-attribute\">content<\/span>: <span class=\"hljs-string\">\"\"<\/span>;\n    <span class=\"hljs-attribute\">position<\/span>: absolute;\n    <span class=\"hljs-attribute\">left<\/span>: <span class=\"hljs-number\">5px<\/span>;\n    <span class=\"hljs-attribute\">top<\/span>: <span class=\"hljs-number\">1px<\/span>;\n    <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">6px<\/span>;\n    <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">12px<\/span>;\n    <span class=\"hljs-attribute\">border<\/span>: solid <span class=\"hljs-number\">#333<\/span>;\n    <span class=\"hljs-attribute\">border-width<\/span>: <span class=\"hljs-number\">0<\/span> <span class=\"hljs-number\">2px<\/span> <span class=\"hljs-number\">2px<\/span> <span class=\"hljs-number\">0<\/span>;\n    <span class=\"hljs-attribute\">transform<\/span>: <span class=\"hljs-built_in\">rotate<\/span>(<span class=\"hljs-number\">45deg<\/span>);\n  }\n\n  <span class=\"hljs-selector-class\">.custom-checkbox<\/span><span class=\"hljs-selector-pseudo\">:hover<\/span> <span class=\"hljs-selector-class\">.checkmark<\/span> {\n    <span class=\"hljs-attribute\">background-color<\/span>: <span class=\"hljs-number\">#ddd<\/span>;\n  }\n<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">style<\/span>&gt;<\/span>\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">label<\/span> <span class=\"hljs-attr\">class<\/span>=<span class=\"hljs-string\">\"custom-checkbox\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">input<\/span> <span class=\"hljs-attr\">type<\/span>=<span class=\"hljs-string\">\"checkbox\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">span<\/span> <span class=\"hljs-attr\">class<\/span>=<span class=\"hljs-string\">\"checkmark\"<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">span<\/span>&gt;<\/span>\n  Subscribe to newsletter\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">label<\/span>&gt;<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>With just a few lines of CSS and HTML, you&#8217;ve created your stylish checkmark\u00a0that looks great on any modern site!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"15%2B-amazing-css-checkbox-styles-you-can-use\">17 Amazing CSS Checkbox Styles to Copy<\/h2>\n\n\n\n<p>Now that you know how to build a tailor-made checkbox with CSS, it\u2019s time to explore some creative possibilities. Below, you\u2019ll find over 15 unique checkmark box pens, ranging from minimal and contemporary to fun and bouncy.<\/p>\n\n\n\n<p>These checkbox CSS styles are ready to copy and paste into your project, making it easy to upgrade your forms with a fresh look in seconds.<\/p>\n\n\n\n<h3 id=\"1%25c2%25a0gradient-styles\" class=\"wp-block-heading\">1.\u00a0<a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/ZErExdK\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Gradient Styles<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_ZErExdK\" data-src=\"\/\/codepen.io\/anon\/embed\/ZErExdK?height=450&amp;theme-id=1&amp;slug-hash=ZErExdK&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed ZErExdK\" title=\"CodePen Embed ZErExdK\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/ZErExdK\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Gradients can be a great solution to make certain elements or backgrounds stand out, and here we have a personalized gradient as the background of the selection square area&nbsp;\u2013 very catchy and appealing.<\/p>\n\n\n\n<p>The checkmark&nbsp;styles here are interactive, and there are two types. Click them and check them out! Very unique, and the animation is smooth, without taking too long to complete.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2.-neumorphism-checkbox\">2. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/zYRYWgP\" target=\"_blank\" rel=\"noopener nofollow\">Neumorphism Style<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_zYRYWgP\" data-src=\"\/\/codepen.io\/anon\/embed\/zYRYWgP?height=450&amp;theme-id=1&amp;slug-hash=zYRYWgP&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed zYRYWgP\" title=\"CodePen Embed zYRYWgP\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/zYRYWgP\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>A flat-themed checkmark style with interactive states in the appearance of a toggle. The animation is very snappy and feels clean, you can easily change the colour of the different on and off states yourself.<\/p>\n\n\n\n<p>Great for a Neumorphism-themed web, if that&#8217;s what you&#8217;re going for.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3.-fancy-animated-css-checkbox\">3. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/gOvOeNN\" target=\"_blank\" rel=\"noopener nofollow\">Fancy Background Image Checkbox<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_gOvOeNN\" data-src=\"\/\/codepen.io\/anon\/embed\/gOvOeNN?height=450&amp;theme-id=1&amp;slug-hash=gOvOeNN&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed gOvOeNN\" title=\"CodePen Embed gOvOeNN\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/gOvOeNN\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>The default&nbsp;design for checkboxes in popular browsers, such as Chrome or Safari, is functional, but it lacks visual appeal. This checkbox style takes it to a whole new level, as they are interactive through its various states.<\/p>\n\n\n\n<p>The animation is smooth, catchy, and looks incredible. In this example, there is even a fancy moving&nbsp;background to complement it, which might inspire you to use that as well.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4.-collection-of-animated-css-checkbox-styles\">4. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/Yzezamd\" target=\"_blank\" rel=\"noopener nofollow\">Custom Checkbox Switch Styles<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_Yzezamd\" data-src=\"\/\/codepen.io\/anon\/embed\/Yzezamd?height=450&amp;theme-id=1&amp;slug-hash=Yzezamd&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed Yzezamd\" title=\"CodePen Embed Yzezamd\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/Yzezamd\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Here is another collection of CSS checkbox styles, featuring three sets of unique checkmark buttons&nbsp;that you can use and edit to suit your brand colors.<\/p>\n\n\n\n<p>The first set features mouseover effects to make them more engaging. The second set consists of more traditional slider toggles, and the third set&nbsp;uses a different pattern.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5.-collection-of-css-checkboxes\">5. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/YzezaMR\" target=\"_blank\" rel=\"noopener nofollow\">CSS3 Checkbox Inputs<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_YzezaMR\" data-src=\"\/\/codepen.io\/anon\/embed\/YzezaMR?height=450&amp;theme-id=1&amp;slug-hash=YzezaMR&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed YzezaMR\" title=\"CodePen Embed YzezaMR\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/YzezaMR\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Try these styles out for yourself; just CSS is used to create these unique designs, so it will be easy to copy over the style for yourself.<\/p>\n\n\n\n<p>There are nine different styles altogether in this one CodePen, and they all follow a similar colour and look, so you could easily use them for your webpage if you like the look.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6.-selection-of-simple-css-checkboxes\">6. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/wvyvjva\" target=\"_blank\" rel=\"noopener nofollow\">Multiple Simple Button CSS Checkboxes<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_wvyvjva\" data-src=\"\/\/codepen.io\/anon\/embed\/wvyvjva?height=450&amp;theme-id=1&amp;slug-hash=wvyvjva&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed wvyvjva\" title=\"CodePen Embed wvyvjva\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/wvyvjva\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>A fantastic total of 30 simple CSS checkbox styles with all different animations and types. They are generally minimal and straightforward, making them suitable for a flat-themed website. Of course, you can tweak and style the checkboxes as you want.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7.-animated-checkboxes\">7. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/yLvLjBg\" target=\"_blank\" rel=\"noopener nofollow\">Interactive Form Boxes<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_yLvLjBg\" data-src=\"\/\/codepen.io\/anon\/embed\/yLvLjBg?height=450&amp;theme-id=1&amp;slug-hash=yLvLjBg&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed yLvLjBg\" title=\"CodePen Embed yLvLjBg\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/yLvLjBg\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>A set of interactive CSS checkmark styles, where the name of each checkmark\u00a0reveals the different types of animation it has.<\/p>\n\n\n\n<p>Very fashionable and minimalist; you can change the color yourself in the CSS to match your&nbsp;site\u2019s color and branding.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8.-radio-and-checkbox-styles\">8. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/jOZOzoq\" target=\"_blank\" rel=\"noopener nofollow\">Radio Button Styles<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_jOZOzoq\" data-src=\"\/\/codepen.io\/anon\/embed\/jOZOzoq?height=450&amp;theme-id=1&amp;slug-hash=jOZOzoq&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed jOZOzoq\" title=\"CodePen Embed jOZOzoq\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/jOZOzoq\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Radio buttons are closely related to checkmarks; however, we have styles for both radio buttons and square boxes.<\/p>\n\n\n\n<p>It uses a custom CSS checkbox style and a smooth animation that fades and slides in the checkbox mark.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9.-svg-animated-css-checkboxes\">9. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/yLvLKWV\" target=\"_blank\" rel=\"noopener nofollow\">Hidden SVG Custom Checkboxes<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_yLvLKWV\" data-src=\"\/\/codepen.io\/anon\/embed\/yLvLKWV?height=450&amp;theme-id=1&amp;slug-hash=yLvLKWV&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed yLvLKWV\" title=\"CodePen Embed yLvLKWV\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/yLvLKWV\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>If you are looking for a more cartoony look and style for a checkmark, these SVG-based dynamic checkboxes will do the trick.<\/p>\n\n\n\n<p>They use SVGs to display the square area, which is aimed to look and feel a certain way, and there are over five types to choose from. Additionally, no JavaScript is required, making them very lightweight.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"10.-quick-css-checkbox-styles\">10. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/XWZWEwe\" target=\"_blank\" rel=\"noopener nofollow\">Quick CSS Checkmarks Without Label<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_XWZWEwe\" data-src=\"\/\/codepen.io\/anon\/embed\/XWZWEwe?height=450&amp;theme-id=1&amp;slug-hash=XWZWEwe&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed XWZWEwe\" title=\"CodePen Embed XWZWEwe\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/XWZWEwe\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>There are three different types, each with three examples, so you can try out what it looks like with multiple items displayed on the screen.<\/p>\n\n\n\n<p>It&#8217;s good to have the same style but different animations; you could even change the color from white to your own brand&#8217;s design to make these even more unique. But overall, the animations are smooth, and everything is lightweight.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"11.-animated-slider-toggle-checkbox\">11. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/BaYarga\" target=\"_blank\" rel=\"noopener nofollow\">Animated Slider Toggle Check<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_BaYarga\" data-src=\"\/\/codepen.io\/anon\/embed\/BaYarga?height=450&amp;theme-id=1&amp;slug-hash=BaYarga&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed BaYarga\" title=\"CodePen Embed BaYarga\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/BaYarga\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Custom checkboxes are commonly represented as a toggle, with options for either <em>&#8220;on&#8221;<\/em> or <em>&#8220;off,&#8221;<\/em> and these dynamic\u00a0toggle buttons are just that.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Learn <a href=\"https:\/\/alvarotrigo.com\/blog\/jquery-checkbox-checked\/\">How to Detect When the Checkbox Is Checked With jQuery<\/a>.<\/p>\n<\/blockquote>\n\n\n\n<p>They look great, the colours can be changed, and the sizes can be altered very easily, as you can see from the example. Try one out and click one!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"12.-windows-10-inspired-checkbox-menu\">12. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/oNENqRP\" target=\"_blank\" rel=\"noopener nofollow\">Windows 10-Inspired Checkmark Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_oNENqRP\" data-src=\"\/\/codepen.io\/anon\/embed\/oNENqRP?height=450&amp;theme-id=1&amp;slug-hash=oNENqRP&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed oNENqRP\" title=\"CodePen Embed oNENqRP\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/oNENqRP\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>A basic layout for a Windows 10-inspired menu with these styles that you can use \u2013 great if you are a user who enjoys the Windows 10 look.&nbsp;<\/p>\n\n\n\n<p>This example is handy because, despite featuring up-to-date and sleek-looking CSS checkbox styles, it also illustrates what they might look like in a minimal menu.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"13.-smooth-custom-toggle-switches\">13. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/NWyWYZG\" target=\"_blank\" rel=\"noopener nofollow\">Smooth Toggle Switches<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_NWyWYZG\" data-src=\"\/\/codepen.io\/anon\/embed\/NWyWYZG?height=450&amp;theme-id=1&amp;slug-hash=NWyWYZG&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed NWyWYZG\" title=\"CodePen Embed NWyWYZG\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/NWyWYZG\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>You typically see checkmarks used to confirm that you have read and understood the terms and conditions of a website during account creation. This example shows you what they look like in that form.<\/p>\n\n\n\n<p>Once clicked, the slide moves smoothly, and the color changes from red to green, indicating that this option is selected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"14.-basic-checkbox-styles-with-custom-colours\">14. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/vYdYRwb\" target=\"_blank\" rel=\"noopener nofollow\">Basic Styles With Custom Colours<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_vYdYRwb\" data-src=\"\/\/codepen.io\/anon\/embed\/vYdYRwb?height=450&amp;theme-id=1&amp;slug-hash=vYdYRwb&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed vYdYRwb\" title=\"CodePen Embed vYdYRwb\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/vYdYRwb\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>A more basic example, but these CSS checkbox styles look super fashionable and minimal, kind of like the Bootstrap checkmarks you see, but everything is ready for you to copy over.<\/p>\n\n\n\n<p>The text is also part of the checkbox item, making it much easier to click. Here, there are three different colours: green, blue, and red (the last one prevalent for &#8220;error&#8221; styles). However, you can easily edit the CSS to use any color that matches your brand&#8217;s pattern.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"15.-vuejs-based-ui-css-checkboxes\">15. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/KKQKoOg\" target=\"_blank\" rel=\"noopener nofollow\">VueJS Based<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_KKQKoOg\" data-src=\"\/\/codepen.io\/anon\/embed\/KKQKoOg?height=450&amp;theme-id=1&amp;slug-hash=KKQKoOg&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed KKQKoOg\" title=\"CodePen Embed KKQKoOg\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/KKQKoOg\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>VueJS is a progressive JavaScript framework that web developers can use to build event-driven UI elements. However, here we have an exquisite example of how you can combine VueJS and CSS to create unique User Interface objects \u2013 specifically, checkmarks, but there are other items&nbsp;as well.<\/p>\n\n\n\n<p>This is a very comprehensive example, and the JavaScript is also straightforward to understand. However, as you can see, many selection box styles are included in this..<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"16.-switch-and-box-style\">16. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/jOZOxNr\" target=\"_blank\" rel=\"noopener nofollow\">Toogle and Square Style<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_jOZOxNr\" data-src=\"\/\/codepen.io\/anon\/embed\/jOZOxNr?height=450&amp;theme-id=1&amp;slug-hash=jOZOxNr&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed jOZOxNr\" title=\"CodePen Embed jOZOxNr\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/jOZOxNr\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Two CSS checkbox styles are presented here. The first one is a traditional&nbsp;toggle that utilizes a smooth animation to transition between stages, and it also features an on\/off symbol in the element&#8217;s background.<\/p>\n\n\n\n<p>Then we have a standard square-shaped checkbox, but instead of a tick, it fills up the square area using a smooth animation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"17.-background-checkbox-with-icon\">17. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/KKQKRKN\" target=\"_blank\" rel=\"noopener nofollow\">Grid Checkboxes With Icon Elements<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_KKQKRKN\" data-src=\"\/\/codepen.io\/anon\/embed\/KKQKRKN?height=450&amp;theme-id=1&amp;slug-hash=KKQKRKN&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed KKQKRKN\" title=\"CodePen Embed KKQKRKN\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/KKQKRKN\" title=\"See Codepen Example\" target=\"_blank\" rel=\"noopener nofollow\">See Codepen<\/a><\/div>\n<\/div>\n\n\n\n<p>Something a little different compared to the traditional checkmarks&nbsp;or toggles, here we can see how useful a checkbox can be when paired with a background and a large icon for selection purposes.<\/p>\n\n\n\n<p>In this example, we&nbsp;also have radio buttons, with the same style, which is an excellent example of how a&nbsp;selection area can be extended and used in different ways.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"related-articles\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/hamburger-menu-css\/\">10+ CSS Hamburger Menu [CodePens]<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/html-css-tabs\/\">20 HTML &amp; CSS Tabs [CodePens]<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/contact-page-examples\/\">Best Contact Pages For Inspiration<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/css-accordion\/\">20+ Pure CSS Accordions [CodePens]<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/website-footers\/\">Beautiful Website Footer Examples<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/css-calendar\/\">Beautiful CSS Calendar examples<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn to create custom HTML checkbox inputs with CSS! This guide provides 17 examples to style your website&#8217;s form layout, making your project unique.<\/p>\n","protected":false},"author":11,"featured_media":4902,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[106],"tags":[9,16,17],"class_list":["post-4903","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-css","tag-design","tag-web"],"acf":[],"_links":{"self":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/4903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/comments?post=4903"}],"version-history":[{"count":4,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/4903\/revisions"}],"predecessor-version":[{"id":19464,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/4903\/revisions\/19464"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/media\/4902"}],"wp:attachment":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/media?parent=4903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/categories?post=4903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/tags?post=4903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}