{"id":2200,"date":"2026-09-27T15:58:16","date_gmt":"2026-09-27T15:58:16","guid":{"rendered":"https:\/\/appliedartand.design\/lj\/?p=2200"},"modified":"2026-09-27T15:58:16","modified_gmt":"2026-09-27T15:58:16","slug":"flexbox-and-grid","status":"publish","type":"post","link":"https:\/\/appliedartand.design\/lj\/2026\/09\/27\/flexbox-and-grid\/","title":{"rendered":"Flexbox and Grid"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This week, I learned more about using Flexbox and Grid to create layouts with CSS. At first, there were many different properties to remember, and some of them were confusing. After practicing them in different layouts, I started to understand how they work together and how each property can change the position and spacing of elements.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<p class=\"wp-block-paragraph\">With Flexbox, I learned how to use <code>display: flex<\/code>, <code>flex-wrap<\/code>, <code>flex-direction<\/code>, <code>justify-content<\/code>, <code>align-items<\/code>, and <code>gap<\/code>. I also practiced properties such as <code>flex: 1<\/code>, <code>flex-grow<\/code>, and <code>margin: auto<\/code>. These properties helped me understand how to arrange items in rows and columns, make items share available space, and control the spacing between different elements. I especially liked being able to change the direction and alignment of the items and immediately see the difference on the page.<\/p>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2026\/09\/flex-and-grid-properties-683x1024.png\" alt=\"\" class=\"wp-image-2197\" style=\"aspect-ratio:0.6669975186104219;object-fit:cover;object-position:2% 92%;width:221px;height:auto\" srcset=\"https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2026\/09\/flex-and-grid-properties-683x1024.png 683w, https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2026\/09\/flex-and-grid-properties-200x300.png 200w, https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2026\/09\/flex-and-grid-properties-768x1152.png 768w, https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2026\/09\/flex-and-grid-properties.png 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">I also learned about CSS Grid. Grid was helpful for creating layouts with both rows and columns. I practiced <code>display: grid<\/code>, <code>grid-template-columns<\/code>, <code>grid-template-rows<\/code>, <code>grid-column<\/code>, <code>grid-row<\/code>, <code>gap<\/code>, <code>grid-template-areas<\/code>, <code>grid-area<\/code>, <code>repeat()<\/code>, and <code>1fr<\/code>. Using <code>grid-template-areas<\/code> helped me understand how I can plan a page layout by giving different sections names and placing them where I want them. The <code>repeat()<\/code> function also made it easier to create multiple columns without writing the same code many times.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One thing I noticed is that Flexbox feels more natural when I need to arrange items in one direction, such as a navigation menu or a row of cards. Grid is useful when I need more control over both rows and columns, especially for larger page layouts. I am starting to understand that Flexbox and Grid are not really competing with each other. They can be used together depending on what I am trying to create.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also noticed that small changes in the CSS can make a big difference in the layout. For example, changing <code>justify-content<\/code> or <code>align-items<\/code> can quickly move elements to different positions. With Grid, changing the number of columns or using different <code>grid-column<\/code> and <code>grid-row<\/code> values can completely change the structure of the page. Seeing these changes directly in the browser has been very helpful for me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I still need more practice remembering all the properties and knowing which one to use without looking at my notes. Sometimes I understand what I want the layout to look like, but I am not sure which CSS property will create that result. However, I feel more comfortable with Flexbox and Grid than I did before. I think practicing by changing the CSS, experimenting with different values, and immediately seeing the result is helping me learn the most. I also think that with more practice, I will be able to choose between Flexbox and Grid more easily when creating my own web pages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, I learned more about using Flexbox and Grid to create layouts with CSS. At first, there were many different properties to remember, and some of them were confusing. After practicing them in different layouts, I started to understand how they work together and how each property can change the position and spacing of &hellip; <a href=\"https:\/\/appliedartand.design\/lj\/2026\/09\/27\/flexbox-and-grid\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Flexbox and Grid&#8221;<\/span><\/a><\/p>\n","protected":false},"author":111,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[283],"tags":[],"class_list":["post-2200","post","type-post","status-publish","format-standard","hentry","category-aad-086-fa26"],"_links":{"self":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/2200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":1,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2202,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/2200\/revisions\/2202"}],"wp:attachment":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}