{"id":3109,"date":"2018-02-26T18:58:08","date_gmt":"2018-02-26T18:58:08","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=3109"},"modified":"2018-02-26T18:58:08","modified_gmt":"2018-02-26T18:58:08","slug":"customize-checkbox-radio-button-inputs-css","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/","title":{"rendered":"Customize Checkbox and Radio Inputs with CSS"},"content":{"rendered":"<p>Checkboxes and radio buttons are the common elements to use in any web form. Generally, browser&#8217;s default style is used for checkbox and radio button. But if you want to make a nice UI web form and match with the web page layout, form element customization is required.<\/p>\n<p><b>Customize checkbox<\/b> and radio button overrides browser&#8217;s default style and changes the look of checkbox and radio fields. You can easily customize checkbox and radio inputs with CSS without using JavaScript code. In this tutorial, we will show you how to customize checkbox and radio inputs with CSS.<\/p>\n<h2>Customize Checkbox with CSS<\/h2>\n<p>The following example code creates custom checkboxes using CSS.<\/p>\n<p><b>HTML Code:<\/b><br \/>\nThe following HTML defines checkbox form inputs.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>One\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span> <span style=\"color:#bf4f24\">checked<\/span>=<span style=\"color:#0b6125\">\"checked\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>Two\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>Three\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>Four\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n<\/pre>\n<p><b>CSS Code:<\/b><br \/>\nUse the following CSS to override browser&#8217;s default style with the custom checkbox.<\/p>\n<pre><span style=\"color:#5a525f;font-style:italic\">\/* custom checkbox *\/<\/span>\r\n<span style=\"color:#bf4f24\">.checkbox<\/span> {\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">block<\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">relative<\/span>;\r\n    <span style=\"color:#691c97\">padding-left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">35<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">margin-bottom<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">12<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">cursor<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">pointer<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">22<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -webkit-user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    -moz-user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    -ms-user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* hide the browser's default checkbox *\/<\/span>\r\n<span style=\"color:#bf4f24\">.checkbox<\/span> <span style=\"color:#bf4f24\">input<\/span> {\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">opacity<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">cursor<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">pointer<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* create custom checkbox *\/<\/span>\r\n<span style=\"color:#bf4f24\">.check<\/span> {\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">25<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">25<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">background-color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#eee<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#ccc<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* on mouse-over, add border color *\/<\/span>\r\n<span style=\"color:#bf4f24\">.checkbox<\/span><span style=\"color:#bf4f24\">:hover<\/span> <span style=\"color:#bf4f24\">input<\/span> ~ <span style=\"color:#bf4f24\">.check<\/span> {\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#2489C5<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* add background color when the checkbox is checked *\/<\/span>\r\n<span style=\"color:#bf4f24\">.checkbox<\/span> <span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">:checked<\/span> ~ <span style=\"color:#bf4f24\">.check<\/span> {\r\n    <span style=\"color:#691c97\">background-color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#2489C5<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* create the checkmark and hide when not checked *\/<\/span>\r\n<span style=\"color:#bf4f24\">.check<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">content<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#0b6125\">\"\"<\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* show the checkmark when checked *\/<\/span>\r\n<span style=\"color:#bf4f24\">.checkbox<\/span> <span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">:checked<\/span> ~ <span style=\"color:#bf4f24\">.check<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">block<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* checkmark style *\/<\/span>\r\n<span style=\"color:#bf4f24\">.checkbox<\/span> <span style=\"color:#bf4f24\">.check<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">9<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">10<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#b4371f\">white<\/span>;\r\n    <span style=\"color:#691c97\">border-width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#811f24;font-weight:700\">3<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">3<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    -webkit-transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">45<span style=\"color:#794938\">deg<\/span><\/span>);\r\n    -ms-transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">45<span style=\"color:#794938\">deg<\/span><\/span>);\r\n    transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">45<span style=\"color:#794938\">deg<\/span><\/span>);\r\n}\r\n<\/pre>\n<h2>Customize Radio Button with CSS<\/h2>\n<p>The following example code creates custom radio buttons using CSS.<\/p>\n<p><b>HTML Code:<\/b><br \/>\nThe following HTML defines radio form inputs.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>One\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span> <span style=\"color:#bf4f24\">checked<\/span>=<span style=\"color:#0b6125\">\"checked\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>Two\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>Three\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>Four\r\n    &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"radio\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">span<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"check\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">span<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n<\/pre>\n<p><b>CSS Code:<\/b><br \/>\nUse the following CSS to override browser&#8217;s default style with custom radio button.<\/p>\n<pre><span style=\"color:#5a525f;font-style:italic\">\/* custom radio *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> {\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">block<\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">relative<\/span>;\r\n    <span style=\"color:#691c97\">padding-left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">35<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">margin-bottom<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">12<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">cursor<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">pointer<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">22<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -webkit-user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    -moz-user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    -ms-user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    user-select<span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* hide the browser's default radio button *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> <span style=\"color:#bf4f24\">input<\/span> {\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">opacity<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">cursor<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">pointer<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* create custom radio *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> <span style=\"color:#bf4f24\">.check<\/span> {\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">25<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">25<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">background-color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#eee<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#ccc<\/span>;\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">50<span style=\"color:#794938\">%<\/span><\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* on mouse-over, add border color *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span><span style=\"color:#bf4f24\">:hover<\/span> <span style=\"color:#bf4f24\">input<\/span> ~ <span style=\"color:#bf4f24\">.check<\/span> {\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#2489C5<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* add background color when the radio is checked *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> <span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">:checked<\/span> ~ <span style=\"color:#bf4f24\">.check<\/span> {\r\n    <span style=\"color:#691c97\">background-color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#2489C5<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* create the radio and hide when not checked *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> <span style=\"color:#bf4f24\">.check<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">content<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#0b6125\">\"\"<\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* show the radio when checked *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> <span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">:checked<\/span> ~ <span style=\"color:#bf4f24\">.check<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">block<\/span>;\r\n}\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/* radio style *\/<\/span>\r\n<span style=\"color:#bf4f24\">.radio<\/span> <span style=\"color:#bf4f24\">.check<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">9<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">9<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">8<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">8<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">50<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">background<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">white<\/span>;\r\n}\r\n<\/pre>\n<h2>Conclusion<\/h2>\n<p>There are many jQuery plugins are available to customize checkboxes and radio buttons. But it&#8217;s always a smart decision to use CSS to customize from input elements. Our example code provides the easiest way to change default style of checkbox and radio inputs. Also, you can easily change the color of custom checkbox and radio button as per your website layout.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Checkboxes and radio buttons are the common elements to use in any web form. Generally, browser&#8217;s default style is used for checkbox and radio button. But if you want to make a nice UI web <\/p>\n","protected":false},"author":1,"featured_media":3110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[310,124,311],"class_list":["post-3109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-checkbox","tag-css","tag-radio","cat-9-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Customize Checkbox and Radio Inputs with CSS - CodexWorld<\/title>\n<meta name=\"description\" content=\"Customize checkbox and radio button - Learn how to customize checkbox and radio inputs with CSS. Change default checkbox and radio button using CSS. Example code to customize checkboxes and radio buttons with CSS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Customize Checkbox and Radio Inputs with CSS - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"Customize checkbox and radio button - Learn how to customize checkbox and radio inputs with CSS. Change default checkbox and radio button using CSS. Example code to customize checkboxes and radio buttons with CSS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-26T18:58:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Customize Checkbox and Radio Inputs with CSS\",\"datePublished\":\"2018-02-26T18:58:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/\"},\"wordCount\":246,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/customize-checkbox-radio-button-inputs-css-codexworld.png\",\"keywords\":[\"checkbox\",\"CSS\",\"radio\"],\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/\",\"name\":\"Customize Checkbox and Radio Inputs with CSS - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/customize-checkbox-radio-button-inputs-css-codexworld.png\",\"datePublished\":\"2018-02-26T18:58:08+00:00\",\"description\":\"Customize checkbox and radio button - Learn how to customize checkbox and radio inputs with CSS. Change default checkbox and radio button using CSS. Example code to customize checkboxes and radio buttons with CSS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/customize-checkbox-radio-button-inputs-css-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/customize-checkbox-radio-button-inputs-css-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"customize-checkbox-radio-button-inputs-css-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/customize-checkbox-radio-button-inputs-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customize Checkbox and Radio Inputs with CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Customize Checkbox and Radio Inputs with CSS - CodexWorld","description":"Customize checkbox and radio button - Learn how to customize checkbox and radio inputs with CSS. Change default checkbox and radio button using CSS. Example code to customize checkboxes and radio buttons with CSS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/","og_locale":"en_US","og_type":"article","og_title":"Customize Checkbox and Radio Inputs with CSS - CodexWorld","og_description":"Customize checkbox and radio button - Learn how to customize checkbox and radio inputs with CSS. Change default checkbox and radio button using CSS. Example code to customize checkboxes and radio buttons with CSS.","og_url":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2018-02-26T18:58:08+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Customize Checkbox and Radio Inputs with CSS","datePublished":"2018-02-26T18:58:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/"},"wordCount":246,"commentCount":0,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png","keywords":["checkbox","CSS","radio"],"articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/","url":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/","name":"Customize Checkbox and Radio Inputs with CSS - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png","datePublished":"2018-02-26T18:58:08+00:00","description":"Customize checkbox and radio button - Learn how to customize checkbox and radio inputs with CSS. Change default checkbox and radio button using CSS. Example code to customize checkboxes and radio buttons with CSS.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png","width":1366,"height":768,"caption":"customize-checkbox-radio-button-inputs-css-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/customize-checkbox-radio-button-inputs-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Customize Checkbox and Radio Inputs with CSS"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2018\/02\/customize-checkbox-radio-button-inputs-css-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-O9","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/3109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=3109"}],"version-history":[{"count":1,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/3109\/revisions"}],"predecessor-version":[{"id":3111,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/3109\/revisions\/3111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/3110"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=3109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=3109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=3109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}