{"id":19590,"date":"2020-07-16T06:41:03","date_gmt":"2020-07-16T13:41:03","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=19590"},"modified":"2020-11-10T02:00:38","modified_gmt":"2020-11-10T10:00:38","slug":"css-input-checkbox-radio","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/","title":{"rendered":"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS"},"content":{"rendered":"\n<p><em>Sometimes when we create forms, we need to use checkbox and radio button inputs to collect user preferences, agreeing to terms, or demographic data. HTML input elements like checkboxes or radio buttons have a default appearance. If you would like to alter the appearance at all, you can use CSS to customize a look to your liking. This article will show you a sample of how to customize a checkbox and a radio input for your form or web page.&nbsp;<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML Setup<\/h2>\n\n\n\n<p>The HTML skeleton code that we will style is basically the same for both checkboxes and radio buttons.<br><\/p>\n\n\n\n<p>Our main container for <em>one<\/em> checkbox\/radio button will be the HTML label element. Inside that label, we\u2019ll have an input element with its appropriate type and a span element that will show whether or not the element has been selected.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;html&gt;\n&lt;head&gt;\n \n  &lt;style&gt;\n\t\/* No CSS Here Yet. *\/\n  &lt;\/style&gt;&gt;\n \n&lt;\/head&gt;\n &lt;body&gt;\n   &lt;h2&gt;Radio Button and Checkbox CSS Example&lt;\/h2&gt;\n   &lt;label class=&quot;input&quot;&gt;One\n     &lt;input type=&quot;radio&quot; name=&quot;radio-example&quot; checked=&quot;checked&quot;&gt;\n     &lt;span class=&quot;checkmark fill&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n \n   &lt;label class=&quot;input&quot;&gt;Two\n     &lt;input type=&quot;radio&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark fill&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n \n   &lt;label class=&quot;input&quot;&gt;Three\n     &lt;input type=&quot;radio&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark fill&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n   &lt;h2&gt;Checkbox Example&lt;\/h2&gt;\n   &lt;label class=&quot;input&quot;&gt;Four\n     &lt;input type=&quot;checkbox&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark fill&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n \n   &lt;label class=&quot;input&quot;&gt;Five\n     &lt;input type=&quot;checkbox&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark fill&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n   &lt;script href=&quot;script.js&quot;&gt;&lt;\/script&gt;\n &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<p>The first set of inputs in the markup above are radio buttons. You\u2019ll use radio buttons for forms when a user needs to choose <strong><em>only one<\/em><\/strong> selection from multiple choices.&nbsp;<br><\/p>\n\n\n\n<p>The second set is checkboxes. Checkboxes are used when users can select multiple choices if they\u2019d like from a selection of choices. They are also used at points where a user just needs to either agree\/disagree or yes\/no to something.<br><\/p>\n\n\n\n<p>These HTML elements have default appearances. If you\u2019d like to customize them, you can certainly do that though! You can use CSS to adjust the style:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Setup<\/h2>\n\n\n\n<p>In order to change up the styling of your radio buttons or your checkboxes, you have to break down the problem in the following steps:<br><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Customize the label<ol><li>Display property<\/li><li>Position relative<\/li><li>Cursor pointer<\/li><li>Margin and padding to make it aesthetically pleasing<\/li><\/ol><\/li><li>Hide the default checkbox<ol><li>Display property<\/li><\/ol><\/li><li>Create a container that will be the custom checkbox<ol><li>Height<\/li><li>Width<\/li><li>Background<\/li><li>Position &#8211; absolute<\/li><li>Top, left values set<\/li><\/ol><\/li><li>Add something special that will happen on hover (i.e. change background color of the checkbox)<\/li><li>Change background color when box or button is checked<\/li><li>Hide checkmark or circle when not checked<\/li><li>Show checkmark or circle when checked<\/li><li>Style the checkmark<\/li><li>Style the circle<\/li><\/ol>\n\n\n\n<p>Before looking at the code below, I would recommend trying to figure it out on your own given the skeleton HTML and the breakdown of steps to solve the problem above.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Solution Code:<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;html&gt;\n&lt;head&gt;\n \n &lt;style&gt;\n  \/* Customize the label (the input) *\/\nlabel {\n display: block;\n position: relative;\n padding-left: 35px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 22px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n \n\/* Hide the browser's default checkbox *\/\nlabel input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n \n\/* Create a custom checkbox container *\/\n.checkmark, .link {\n position: absolute;\n top: 0;\n left: 0;\n height: 25px;\n width: 25px;\n background-color: #eee;\n}\n \n\/* Add border radius for the radio button *\/\n.circle {\n border-radius: 50%;\n}\n \n\/* On mouse-over, add a background color *\/\nlabel:hover input ~ .checkmark {\n background-color: #ccc;\n}\n \n\/* When the checkbox is checked, add a blue background *\/\nlabel input:checked ~ .checkmark {\n background-color: #2196F3;\n}\n \n\/* Create the checkmark\/circle (hidden when not checked) *\/\n.checkmark:after {\n content: &quot;&quot;;\n position: absolute;\n display: none;\n}\n \n\/* Show the checkmark when checked *\/\nlabel input:checked ~ .checkmark:after {\n display: block;\n}\n \n\/* Style the checkmark *\/\nlabel .checkmark:after {\n left: 10px;\n top: 3px;\n width: 5px;\n height: 15px;\n border: solid white;\n border-width: 0 3px 3px 0;\n \/* always check to see if you need to use the css browser prefixes *\/\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n \n\/* Style the radio button circle *\/\nlabel .circle:after {\n width: 15px;\n height: 15px;\n \/* since .circle and .checkmark are technically the same element, we have to set border none otherwise an unwanted checkmark will show up on screen *\/\n border: none;\n background: white;\n border-radius: 50%;\n left: 20%;\n top: 20%;\n}\n \n &lt;\/style&gt;\n \n&lt;\/head&gt;\n &lt;body&gt;\n   &lt;h2&gt;CSS Radio Button and Checkbox Example&lt;\/h2&gt;\n   &lt;label class=&quot;input&quot;&gt;One\n     &lt;input type=&quot;radio&quot; name=&quot;radio-example&quot; checked&gt;\n     &lt;span class=&quot;checkmark circle&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n \n   &lt;label class=&quot;input&quot;&gt;Two\n     &lt;input type=&quot;radio&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark circle&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n \n   &lt;label class=&quot;input&quot;&gt;Three\n     &lt;input type=&quot;radio&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark circle&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n   &lt;h2&gt;Checkbox Example&lt;\/h2&gt;\n   &lt;label class=&quot;input&quot;&gt;Four\n     &lt;input type=&quot;checkbox&quot; name=&quot;radio-example&quot; checked&gt;\n     &lt;span class=&quot;checkmark&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n \n   &lt;label class=&quot;input&quot;&gt;Five\n     &lt;input type=&quot;checkbox&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n   &lt;label class=&quot;input&quot;&gt;Six\n     &lt;input type=&quot;checkbox&quot; name=&quot;radio-example&quot;&gt;\n     &lt;span class=&quot;checkmark&quot;&gt;&lt;\/span&gt;\n   &lt;\/label&gt;\n &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<p>There you have it; examples of radio buttons and checkboxes in CSS. This may be a bit to wrap your mind around at first, but you\u2019ll get it! If you\u2019re able to get through this CSS exercise, you\u2019re ready to forge ahead to more difficult topics.<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/HTML-Checkbox-and-Radio?lite=true\"><\/iframe>\n<br>\n<br>\n","protected":false},"excerpt":{"rendered":"Sometimes when we create forms, we need to use checkbox and radio button inputs to collect user preferences, agreeing to terms, or demographic data. HTML input elements like checkboxes or radio buttons have a default appearance. If you would like to alter the appearance at all, you can use CSS to customize a look to&hellip;","protected":false},"author":77,"featured_media":19591,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17287],"tags":[],"class_list":{"0":"post-19590","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-css"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"CSS","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":[]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Customize Checkboxes and Radio Buttons with Pure CSS | Career Karma<\/title>\n<meta name=\"description\" content=\"There are times when you use a radio or checkbox HTML element and the default appearance isn\u2019t what is needed for your project. With CSS, you can customize the appearance of your inputs so that it flows the way you\u2019d 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:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS\" \/>\n<meta property=\"og:description\" content=\"There are times when you use a radio or checkbox HTML element and the default appearance isn\u2019t what is needed for your project. With CSS, you can customize the appearance of your inputs so that it flows the way you\u2019d like.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-16T13:41:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-10T10:00:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/photo-1470948062737-aeb014e274c2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"693\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Christina Kopecky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christina Kopecky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/\"},\"author\":{\"name\":\"Christina Kopecky\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"headline\":\"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS\",\"datePublished\":\"2020-07-16T13:41:03+00:00\",\"dateModified\":\"2020-11-10T10:00:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/\"},\"wordCount\":451,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/photo-1470948062737-aeb014e274c2.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/\",\"name\":\"Customize Checkboxes and Radio Buttons with Pure CSS | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/photo-1470948062737-aeb014e274c2.jpg\",\"datePublished\":\"2020-07-16T13:41:03+00:00\",\"dateModified\":\"2020-11-10T10:00:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"description\":\"There are times when you use a radio or checkbox HTML element and the default appearance isn\u2019t what is needed for your project. With CSS, you can customize the appearance of your inputs so that it flows the way you\u2019d like.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/photo-1470948062737-aeb014e274c2.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/photo-1470948062737-aeb014e274c2.jpg\",\"width\":1000,\"height\":693},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-input-checkbox-radio\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\",\"name\":\"Christina Kopecky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"caption\":\"Christina Kopecky\"},\"description\":\"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.\",\"sameAs\":[\"http:\\\/\\\/www.linkedin.com\\\/in\\\/cmvnk\"],\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/christina-kopecky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Customize Checkboxes and Radio Buttons with Pure CSS | Career Karma","description":"There are times when you use a radio or checkbox HTML element and the default appearance isn\u2019t what is needed for your project. With CSS, you can customize the appearance of your inputs so that it flows the way you\u2019d 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:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/","og_locale":"en_US","og_type":"article","og_title":"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS","og_description":"There are times when you use a radio or checkbox HTML element and the default appearance isn\u2019t what is needed for your project. With CSS, you can customize the appearance of your inputs so that it flows the way you\u2019d like.","og_url":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-16T13:41:03+00:00","article_modified_time":"2020-11-10T10:00:38+00:00","og_image":[{"width":1000,"height":693,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/photo-1470948062737-aeb014e274c2.jpg","type":"image\/jpeg"}],"author":"Christina Kopecky","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Christina Kopecky","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/"},"author":{"name":"Christina Kopecky","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"headline":"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS","datePublished":"2020-07-16T13:41:03+00:00","dateModified":"2020-11-10T10:00:38+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/"},"wordCount":451,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/photo-1470948062737-aeb014e274c2.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/","url":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/","name":"Customize Checkboxes and Radio Buttons with Pure CSS | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/photo-1470948062737-aeb014e274c2.jpg","datePublished":"2020-07-16T13:41:03+00:00","dateModified":"2020-11-10T10:00:38+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"description":"There are times when you use a radio or checkbox HTML element and the default appearance isn\u2019t what is needed for your project. With CSS, you can customize the appearance of your inputs so that it flows the way you\u2019d like.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/photo-1470948062737-aeb014e274c2.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/photo-1470948062737-aeb014e274c2.jpg","width":1000,"height":693},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/css-input-checkbox-radio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/careerkarma.com\/blog\/css\/"},{"@type":"ListItem","position":3,"name":"Learn How to Customize Checkboxes and Radio Buttons with Pure CSS"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e","name":"Christina Kopecky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","caption":"Christina Kopecky"},"description":"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.","sameAs":["http:\/\/www.linkedin.com\/in\/cmvnk"],"url":"https:\/\/careerkarma.com\/blog\/author\/christina-kopecky\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/19590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=19590"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/19590\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/19591"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=19590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=19590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=19590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}