{"id":154,"date":"2024-11-15T20:30:22","date_gmt":"2024-11-15T20:30:22","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/h_francois\/?p=154"},"modified":"2024-11-15T20:30:22","modified_gmt":"2024-11-15T20:30:22","slug":"friday-11-15-2024","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/h_francois\/2024\/11\/15\/friday-11-15-2024\/","title":{"rendered":"friday 11\/15\/2024"},"content":{"rendered":"\n<p>continued working on the nutrition label finishing up the rest of it adding in html and spacing and positioning it out in styles.css ill drop the code below<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;\/header>\n    &lt;div class=\"divider large\">&lt;\/div>\n    &lt;div class=\"calories-info\">\n      &lt;div class=\"left-container\">\n        &lt;h2 class=\"bold small-text\">Amount per serving&lt;\/h2>\n        &lt;p>Calories&lt;\/p>\n      &lt;\/div>\n      &lt;span>230&lt;\/span>\n    &lt;\/div>\n    &lt;div class=\"divider medium\">&lt;\/div>\n    &lt;div class=\"daily-value small-text\">\n      &lt;p class=\"bold right no-divider\">% Daily Value *&lt;\/p>\n      &lt;div class=\"divider\">&lt;\/div>\n      &lt;p>&lt;span>&lt;span class=\"bold\">Total Fat&lt;\/span> 8g&lt;\/span> &lt;span class=\"bold\">10%&lt;\/span>&lt;\/p>\n      &lt;p class=\"indent no-divider\">Saturated Fat 1g &lt;span class=\"bold\">5%&lt;\/span>&lt;\/p>\n      &lt;div class=\"divider\">&lt;\/div>\n      &lt;p class=\"indent no-divider\">&lt;span>&lt;i>Trans&lt;\/i> Fat 0g&lt;\/span>&lt;\/p>\n      &lt;div class=\"divider\">&lt;\/div>\n      &lt;p>&lt;span>&lt;span class=\"bold\">Cholesterol&lt;\/span> 0mg&lt;\/span> &lt;span class=\"bold\">0%&lt;\/span>&lt;\/p>\n      &lt;p>&lt;span>&lt;span class=\"bold\">Sodium&lt;\/span> 160mg&lt;\/span> &lt;span class=\"bold\">7%&lt;\/span>&lt;\/p>\n      &lt;p>&lt;span>&lt;span class=\"bold\">Total Carbohydrate&lt;\/span> 37g&lt;\/span> &lt;span class=\"bold\">13%&lt;\/span>&lt;\/p>\n      &lt;p class=\"indent no-divider\">Dietary Fiber 4g&lt;\/p>\n      &lt;div class=\"divider\">&lt;\/div>\n      &lt;p class=\"indent no-divider\">Total Sugars 12g&lt;\/p>\n      &lt;div class=\"divider double-indent\">&lt;\/div>\n    &lt;\/div>    \n  &lt;\/div>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>* {\n  box-sizing: border-box;\n}\n\nhtml {\n  font-size: 16px;\n}\n\nbody {\n  font-family: 'Open Sans', sans-serif;\n}\n\n.label {\n  border: 2px solid black;\n  width: 270px;\n  margin: 20px auto;\n  padding: 0 7px;\n}\n\nheader h1 {\n  text-align: center;\n  margin: -4px 0;\n  letter-spacing: 0.15px\n}\n\np {\n  margin: 0;\n  display: flex;\n  justify-content: space-between;\n}\n\n.divider {\n  border-bottom: 1px solid #888989;\n  margin: 2px 0;\n}\n\n.bold {\n  font-weight: 800;\n}\n\n.large {\n  height: 10px;\n}\n\n.large, .medium {\n  background-color: black;\n  border: 0;\n}\n\n.medium {\n  height: 5px;\n}\n\n.small-text {\n  font-size: 0.85rem;\n}\n\n\n.calories-info {\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-end;\n}\n\n.calories-info h2 {\n  margin: 0;\n}\n\n.left-container p {\n  margin: -5px -2px;\n  font-size: 2em;\n  font-weight: 700;\n}\n\n.calories-info span {\n  margin: -7px -2px;\n  font-size: 2.4em;\n  font-weight: 700;\n}\n\n.right {\n  justify-content: flex-end;\n}\n\n.indent {\n  margin-left: 1em;\n}\n\n\n\n.daily-value p:not(.no-divider) {\n  border-bottom: 1px solid #888989;\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/theroyalscode.com\/students\/h_francois\/wp-content\/uploads\/2024\/11\/nutr2-1024x526.png\" alt=\"\" class=\"wp-image-155\" srcset=\"https:\/\/theroyalscode.com\/students\/h_francois\/wp-content\/uploads\/2024\/11\/nutr2-1024x526.png 1024w, https:\/\/theroyalscode.com\/students\/h_francois\/wp-content\/uploads\/2024\/11\/nutr2-300x154.png 300w, https:\/\/theroyalscode.com\/students\/h_francois\/wp-content\/uploads\/2024\/11\/nutr2-768x394.png 768w, https:\/\/theroyalscode.com\/students\/h_francois\/wp-content\/uploads\/2024\/11\/nutr2-1536x789.png 1536w, https:\/\/theroyalscode.com\/students\/h_francois\/wp-content\/uploads\/2024\/11\/nutr2.png 1909w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>continued working on the nutrition label finishing up the rest of it adding in html and spacing and positioning it out in styles.css ill drop the code below<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":156,"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/posts\/154\/revisions\/156"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/h_francois\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}