{"id":126,"date":"2022-01-18T16:33:53","date_gmt":"2022-01-18T16:33:53","guid":{"rendered":"https:\/\/melfaeforest.xhere.eu.org\/?p=126"},"modified":"2022-02-02T21:38:18","modified_gmt":"2022-02-02T21:38:18","slug":"html-css-course-day-10-placing-spanning-grid-items","status":"publish","type":"post","link":"https:\/\/melfaeforest.xhere.eu.org\/?p=126","title":{"rendered":"HTML\/CSS Course \u2013 Day 10 \u2013 Placing &#038; Spanning Grid Items"},"content":{"rendered":"\n<p>A grid container contains grid items; by default, a container has one grid item for each column in each row, but you can style the grid items so that they span multiple columns and\/or rows.<\/p>\n\n\n\n<p>The \u201cgrid-column\u201d property defines which column(s) to place a grid item, as well as define where the item will start and end.<\/p>\n\n\n\n<p>Likewise, the \u201cgrid-row\u201d property defines which row to place a grid item, as well as define where the item will start and end<\/p>\n\n\n\n<p>To place an item, you can refer to <em>line numbers<\/em>, or use the keyword &#8220;span&#8221; to define how many rows the item will span:<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">Example:\ngrid-column: 2 \/ 5;\ngrid-row: 1 \/ span 3;<\/pre>\n<\/div><\/div>\n\n\n\n<p>(These two properties with have a grid item start on column 2 row 1, and end on column-like 5 and span 3 rows)<\/p>\n\n\n\n<p>Note: The \u201cgrid-column\u201d and \u201cgrid-row\u201d property is a shorthand property for their respective properties: grid-column-start \/ grid-column-end, and grid-row-start \/ grid-row-end.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A grid container contains grid items; by default, a container has one grid item for each column in each row, but you can style the grid items so that they span multiple columns and\/or rows. The \u201cgrid-column\u201d property defines which column(s) to place a grid item, as well as define where the item will start [&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-126","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\/126","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=126"}],"version-history":[{"count":8,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":272,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions\/272"}],"wp:attachment":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}