{"id":14639,"date":"2019-01-09T14:02:39","date_gmt":"2019-01-09T14:02:39","guid":{"rendered":"http:\/\/webartdevelopers.com\/?p=14639"},"modified":"2023-01-02T12:04:37","modified_gmt":"2023-01-02T12:04:37","slug":"pure-css-barcode-upc-a","status":"publish","type":"post","link":"https:\/\/webartdevelopers.com\/blog\/pure-css-barcode-upc-a\/","title":{"rendered":"PURE CSS BARCODE (UPC-A)"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong><u><em>Author:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul>\n<li>Nick Matantsev<\/li>\n\n\n\n<li>January 23, 2017<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><u><em>Made with:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul>\n<li>HTML (Slim) \/ CSS (Less)<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><u><em>About the code:<\/em><\/u><\/strong><\/h4>\n\n\n\n<p>This is just a nice and simple and a plain UPC-A\u00a0<strong>barcode<\/strong> created using HTML and CSS.<br><strong><em>How it works:<\/em><\/strong> UPC codes use 1-to-4 &#8220;pixel&#8221; wide bars to encode digits; each digit is a fixed 7 &#8220;pixels&#8221; wide overall (technically, they are called &#8220;modules&#8221; and not pixels).<br>The multiple-box-shadow trick has been used to display the bars: the\u00a0<code>::before<\/code>\u00a0element of each digit&#8217;s\u00a0<code>li<\/code>\u00a0is the anchor\/placeholder, and its shadows are the visible bars. The\u00a0<code>::before<\/code>\u00a0element itself is moved outside of clipping area so as not to obscure any of the box-shadows.<\/p>\n\n\n\n<p><strong><em>Compatible browsers:<\/em><\/strong> Chrome, Edge, Firefox, Opera, Safari<\/p>\n\n\n\n<p><strong><em>Dependencies:<\/em><\/strong> &#8211;<\/p>\n\n\n<a href=\"https:\/\/codepen.io\/unframework\/share\/zip\/BpRbNW\" class=\"su-button su-button-style-default\" style=\"color:#ffffff;background-color:#000000;border-color:#000000;border-radius:40px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#ffffff;padding:0px 20px;font-size:16px;line-height:32px;border-color:#4d4d4d;border-radius:40px;text-shadow:none\"> Download<\/span><\/a>\n\n\n<a href=\"https:\/\/codepen.io\/unframework\/pen\/BpRbNW\" class=\"su-button su-button-style-default\" style=\"color:#ffffff;background-color:#000000;border-color:#000000;border-radius:40px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#ffffff;padding:0px 20px;font-size:16px;line-height:32px;border-color:#4d4d4d;border-radius:40px;text-shadow:none\"> Demo and Code<\/span><\/a>\n<!-- AddThis Advanced Settings generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"Author: Made with: About the code: This is just a nice and simple and a plain UPC-A\u00a0barcode created using HTML and CSS.How it works: UPC codes use 1-to-4 &#8220;pixel&#8221; wide bars to encode digits; each digit is a fixed 7 &#8220;pixels&#8221; wide overall (technically, they are called &#8220;modules&#8221; and not pixels).The multiple-box-shadow trick has been used to display the bars: the\u00a0::before\u00a0element of each digit&#8217;s\u00a0li\u00a0is the anchor\/placeholder, and its shadows are the visible bars. The\u00a0::before\u00a0element itself is moved outside of clipping area so as not to obscure any of the box-shadows. Compatible browsers: Chrome, Edge, Firefox, Opera, Safari Dependencies: &#8211;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt -->","protected":false},"author":1,"featured_media":14644,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4137],"tags":[4144,4145,4143,20,4141],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/14639"}],"collection":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/comments?post=14639"}],"version-history":[{"count":5,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/14639\/revisions"}],"predecessor-version":[{"id":35830,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/14639\/revisions\/35830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media\/14644"}],"wp:attachment":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media?parent=14639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/categories?post=14639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/tags?post=14639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}