{"id":134,"date":"2022-01-18T17:57:46","date_gmt":"2022-01-18T17:57:46","guid":{"rendered":"https:\/\/melfaeforest.xhere.eu.org\/?p=134"},"modified":"2022-02-02T21:38:09","modified_gmt":"2022-02-02T21:38:09","slug":"html-css-course-day-10-aligning-grid-items-tracks","status":"publish","type":"post","link":"https:\/\/melfaeforest.xhere.eu.org\/?p=134","title":{"rendered":"HTML\/CSS Course \u2013 Day 10 \u2013 Aligning Grid Items &#038; Tracks"},"content":{"rendered":"\n<p><strong>\u2013 Aligning tracks inside containers: Distributing empty space \u2013<\/strong><\/p>\n\n\n\n<p>The two properties \u201cjustify-content\u201d and \u201calign-content\u201d are all about aligning tracks inside the container. Justify-content aligns horizontally (AKA on the row axis), and align-content aligns vertically (AKA on the vertical axis.)<\/p>\n\n\n\n<p><strong>\u2013 Aligning items inside cells: Moving items around inside cell \u2013<\/strong><\/p>\n\n\n\n<p>The two properties \u201cjustify-items\u201d and \u201calign-items\u201d are all about aligning items INSIDE cells.<\/p>\n\n\n\n<p>Likewise with justify-content \/ align-content above, justify-items aligns horizontally, and align-items aligns vertically; only difference is that justify-items and align-items moves the content INSIDE the cells, rather than the entire track itself.<\/p>\n\n\n\n<p><strong>\u2013 Aligning items inside cells: Moving individual cell items \u2013<\/strong><\/p>\n\n\n\n<p>There is a way to override the above justify\/align properties, which uses \u201cjustify-self\u201d and \u201calign-self\u201d. These two properties move the given cell item around like justify-content \/ align-content, except it only moves that one specific cell and not the entire track.<\/p>\n\n\n\n<p><strong>Recap:<\/strong><\/p>\n\n\n\n<p>justify-content \/ align-content -&gt; Aligns the <strong>entire track<\/strong> horizontally \/ vertically respectively<\/p>\n\n\n\n<p>justify-items \/ align-items -&gt; Aligns items <strong>inside grid cells<\/strong> horizontally \/ vertically respectively.<\/p>\n\n\n\n<p>justify-self \/ align-self -&gt; Aligns <strong>individual grid cells<\/strong> horizontally \/ vertically respectively.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2013 Aligning tracks inside containers: Distributing empty space \u2013 The two properties \u201cjustify-content\u201d and \u201calign-content\u201d are all about aligning tracks inside the container. Justify-content aligns horizontally (AKA on the row axis), and align-content aligns vertically (AKA on the vertical axis.) \u2013 Aligning items inside cells: Moving items around inside cell \u2013 The two properties \u201cjustify-items\u201d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-html-css-course","tag-html-css-course"],"_links":{"self":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134"}],"version-history":[{"count":4,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions\/271"}],"wp:attachment":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}