{"id":18624,"date":"2020-06-29T15:40:06","date_gmt":"2020-06-29T22:40:06","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18624"},"modified":"2020-12-29T11:32:19","modified_gmt":"2020-12-29T19:32:19","slug":"css-flexbox","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/css-flexbox\/","title":{"rendered":"CSS Flexbox"},"content":{"rendered":"\n<p>The CSS Flexbox Model was created to improve the established <a href=\"https:\/\/careerkarma.com\/blog\/css-box-model\/\">CSS Box Model<\/a>. The Flexbox Model still contains the major elements of the Box Model (<a href=\"https:\/\/careerkarma.com\/blog\/css-margin\/\">margin<\/a>, <a href=\"https:\/\/careerkarma.com\/blog\/css-padding\/\">padding<\/a>, <a href=\"https:\/\/careerkarma.com\/blog\/css-borders\/\">border<\/a> and content), but offers flexibility to best fill the space with the container\u2019s\/parent\u2019s children.&nbsp;<br><\/p>\n\n\n\n<p>This tutorial will help you to understand the flexbox module a bit better so you can start to make your sites more responsive. <br><br>The following is starter code for a basic flexbox model demonstration \u2013 please follow along as we talk about flexbox!&nbsp;<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;!DOCTYPE html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Flexbox&lt;\/title&gt;\n    &lt;style&gt;\n       * {\n        \tbox-sizing: border-box;\n        \tfont-family: 'Roboto'\n       }\n      .parent-container {\n        \theight: 700px;\n        \tbackground: green;\n        \twidth: 700px;\n        \tpadding: 20px;\n      }\n      .child-item {\n        \theight: 200px;\n        \twidth: 200px;\n        \tmargin: 0px;\n        \tpadding: 20px;\n      }\n      .child-item:first-child {\n        background: orange;\n      }\n      \n      .child-item.one {\n        background: purple;\n      }\n      .child-item.two {\n        background: aliceblue;\n      }\n      .child-item.three {\n        background: grey;\n      }\n      .child-item.four {\n        background: pink;\n      }\n      .child-item.five {\n        background: yellowgreen;\n      }\n      .child-item.six {\n        background: red;\n      }\n      .child-item.seven {\n        background: blanchedalmond;\n      }\n      .child-item.eight {\n        background: white;\n      }\n      .child-item.nine {\n        background: lightblue;\n      }\n      .child-item.nine {\n        background: darkred;\n      }\n      .child-item:last-child {\n        background: yellow;\n      }\n\n\t&lt;\/style&gt;\n &lt;\/head&gt;\n &lt;body&gt;\n  \t&lt;div class=&quot;parent-container&quot;&gt;\n\t\t&lt;div class=&quot;child-item&quot;&gt;Lisa Simpson&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item one&quot;&gt;Bart Simpson&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item two&quot;&gt;Maggie Simpson&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item three&quot;&gt;Homer Simpson&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item four&quot;&gt;Marge Simpson&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item five&quot;&gt;Grampa Simpson&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item six&quot;&gt;Santa's Little Helper&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item seven&quot;&gt;Apu Nahasapeemapetilon&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item eight&quot;&gt;Moe Szyslak&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item nine&quot;&gt;Ned Flanders&lt;\/div&gt;\n        \t&lt;div class=&quot;child-item ten&quot;&gt;Snowball II&lt;\/div&gt;\n    &lt;\/div&gt;\n\n\t&lt;script src=&quot;&quot; async defer&gt;&lt;\/script&gt;\n &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Parent Container (Flexbox) Properties<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">display: flex<\/h3>\n\n\n\n<p>The display property has several values we can use to position our containers on the screen. You may have seen block, inline-block, none, hidden, inline already, but the one we are going to focus on right now is called <strong>flex<\/strong>.&nbsp;<br><\/p>\n\n\n\n<p>First, what I would like you to do is envision a large container \u2013 a treasure chest, a toy box or a cardboard box \u2013 and then imagine putting items inside the container. The large container is what we call the <strong>parent<\/strong> or <strong>flexbox<\/strong> and the smaller items that go inside the container are the <strong>children <\/strong>or <strong>flex items.<\/strong><br><\/p>\n\n\n\n<p>When we add <code>display:flex<\/code> to a parent container, the property is assigned to that container and that container alone \u2013 the children do not inherit the property (however, they can use the property for their own containers that will affect <em>their<\/em> children).&nbsp;<br><\/p>\n\n\n\n<p>This property opens all kinds of other properties we can use that we were not able to before:&nbsp; <code>flex-direction<\/code>, <code>justify-content<\/code>, <code>align-items<\/code>, <code>align-self<\/code>, <code>flex-wrap<\/code> and <code>flex-flow<\/code>.<br><\/p>\n\n\n\n<p>Run the code editor above. Right now, you should see a large green container, the parent container, and 11 smaller containers, the child containers, inside the parent.&nbsp;<br><\/p>\n\n\n\n<p>The orientation of the child containers are on top of each other because the default is <code>display: block<\/code>. If you recall, when we use <code>display: block<\/code>, the container takes up the entire row it\u2019s in. The margin\u2019s default expands to the width of the parent container, resulting in both child containers being on top of each other.&nbsp;<br><\/p>\n\n\n\n<p>In contrast, using <code>display: flex<\/code> allows us to easily position the child containers any way we like in the parent container without having to use older box model properties like float and vertical-align.<br><\/p>\n\n\n\n<p>Try adding <code>display: flex<\/code> to the CSS in the style tag in the code editor so that the parent container\u2019s CSS looks like this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>.parent-container {\nheight: 700px;\nbackground: green;\nwidth: 700px;\npadding: 20px;\ndisplay: flex;<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Adding <code>display: flex<\/code> to the <code>.parent-container<\/code> will result in a change to the orientation of the child containers. Once you hit ,&nbsp; you should now see the child containers side-by-side.&nbsp;<br><\/p>\n\n\n\n<p>By using <code>display: flex<\/code> instead of <code>display: block<\/code>, the default margin is set to 0. We can then manipulate it however we see fit!<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">flex-direction<\/h3>\n\n\n\n<p>The flex-direction property sets up the main axis of our container. The default setting in the flex container is <strong>row. <\/strong>When setting up the parent container with <code>display:flex<\/code>, there is no need to establish a flex-direction unless you need your content to be in a column.&nbsp;<br><\/p>\n\n\n\n<p>The main axis in the default direction is left to right and the cross axis is top to bottom, as seen here:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"526\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/row.png\" alt=\"\" class=\"wp-image-18626\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/row.png 824w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/row-768x490.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/row-770x492.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/row-20x13.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/row-385x246.png 385w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><figcaption><strong>flex-direction: row establishes the main axis from left to right and the cross axis from top to bottom.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Let\u2019s try adding <code>flex-direction: column<\/code> to our <code>.parent-container<\/code> in the code editor above. What happens when you press?&nbsp;<br><\/p>\n\n\n\n<p>It seems to be that the axes flip when we switch <code>flex-direction<\/code> to column: what was our main axis becomes the cross axis and then what was our cross axis becomes the main axis, as illustrated below:&nbsp;<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"526\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/column.png\" alt=\"\" class=\"wp-image-18627\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/column.png 824w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/column-768x490.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/column-770x492.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/column-20x13.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/column-385x246.png 385w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><figcaption><strong>flex-direction: column establishes the main axis from top to bottom and the cross axis from left to right.<\/strong><\/figcaption><\/figure>\n\n\n\n<p>As a result, our children containers in our example flipped their axes! So now the child containers are once again on top of each other.&nbsp;<br><\/p>\n\n\n\n<p>The biggest thing to remember about <code>flex-direction<\/code> is that the direction of the main axis corresponds to the value of your <code>flex-direction <\/code>property (column is top to bottom, row is left to right).&nbsp;<br><\/p>\n\n\n\n<p>Justify-content concerns itself with the spacing on the main axis and align-items concerns itself with spacing around the cross axis. We\u2019ll get into those properties a little later.<br><\/p>\n\n\n\n<p>There are two other possibilities for flex-direction: <code>row-reverse<\/code> and <code>column-reverse<\/code>. These properties are very similar to row and column, but the <code>flex-items<\/code> are laid in a reverse order, right to left, in the case of row-reverse, and bottom to top for column-reverse.<br><\/p>\n\n\n\n<p>The use case for these particular values comes when you need to have a different layout or order on your page from web to mobile or tablet.&nbsp;<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">flex-wrap<\/h3>\n\n\n\n<p>So far we have learned how <code>display: flex<\/code> affects a parent\u2019s child containers and then how to manipulate the flow of those child containers in a row or in a column. What if the size of the parent runs out of room? What happens? And how can we fix it?<br><\/p>\n\n\n\n<p>The answer comes in the form of the property called <code>flex-wrap<\/code>. By default, <code>flex-wrap<\/code> is set to <code>nowrap<\/code>. This means that the child containers can overflow the parent container, causing unwanted layout problems. Let\u2019s try adding <code>flex-wrap: wrap<\/code>; to the <code>.parent-container<\/code> and see what happens:&nbsp;<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"1024\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM-956x1024.png\" alt=\"\" class=\"wp-image-18628\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM-956x1024.png 956w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM-768x823.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM-770x825.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM-20x21.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM-385x412.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-11.12.49-PM.png 1292w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><figcaption><strong>flex-wrap: wrap makes sure that the contents of the main container don\u2019t go outside that container\u2019s border.<\/strong><\/figcaption><\/figure>\n\n\n\n<p>The layout of the container here looks much nicer. Flex-wrap will take all the children components, lay them side by side until it hits the width of the parent container and then move to the next row to add more child containers to repeat the process until all of the containers have been displayed.&nbsp;<br><\/p>\n\n\n\n<p>Flex-wrap has three available properties:&nbsp; nowrap, wrap and wrap-reverse. wrap-reverse is the same as wrap except that it flows bottom to top instead of top to bottom.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">flex-flow<\/h3>\n\n\n\n<p>Flex-flow is shorthand for <code>flex-direction<\/code> and <code>flex-wrap<\/code>. The syntax is <code>flex-flow: column wrap<\/code> if you would like your flex-direction to be column and your flex-wrap to be wrap. <code>flex-flow: row nowrap<\/code> is the default value.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">justify-content<\/h3>\n\n\n\n<p>The justify content property is concerned with alignment along the main axis of the parent container. It helps to distribute your <code>flex-items<\/code> across the main axis without you having to calculate the space needed. The six most commonly used property values for <code>justify-content<\/code> are <code>flex-start<\/code> (the default), <code>flex-end<\/code>, <code>center<\/code>, <code>space-around<\/code>, <code>space-between<\/code> and <code>space-evenly<\/code>.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">flex-start:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"1024\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1-953x1024.png\" alt=\"justify content flex start\" class=\"wp-image-18630\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1-953x1024.png 953w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1-768x825.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1-770x827.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1-20x21.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1-385x414.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-9.33.18-PM-1.png 1348w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><figcaption><br><strong><code>justify-content: flex-start<\/code> is the default setting for this property. All the child containers\/flex-items observe margin and padding, but congregate towards the start of the main axis.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">flex-end:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM-1024x453.png\" alt=\"justify content flex end\" class=\"wp-image-18631\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM-1024x453.png 1024w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM-768x339.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM-770x340.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM-20x9.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM-385x170.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.27.59-AM.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong><code>justify-content: flex-end<\/code> \u2013 All the child containers\/flex-items observe margin and padding, but congregate towards the end of the main axis. <\/strong><\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">center:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1024x457.png\" alt=\"justify content center\" class=\"wp-image-18632\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1024x457.png 1024w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-768x343.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-770x343.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-20x9.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-385x172.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong><code> justify-content: center<\/code> \u2013 All the child containers\/flex-items observe margin and padding, but congregate towards the center of the main axis.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">space-around:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1-1024x457.png\" alt=\"justify content space around\" class=\"wp-image-18633\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1-1024x457.png 1024w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1-768x343.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1-770x343.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1-20x9.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1-385x172.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.07-AM-1.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption> <strong><code>justify-content: space-around<\/code> \u2013 All the child containers\/flex-items observe margin and padding, but they also have equal space on either side of each individual container.<\/strong> <br><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">space-between:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"436\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM-1024x436.png\" alt=\"justify content space between\" class=\"wp-image-18634\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM-1024x436.png 1024w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM-768x327.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM-770x328.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM-20x9.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM-385x164.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.29.52-AM.png 1188w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong> <code>justify-content: space-between<\/code> \u2013 All the child containers\/flex-items observe margin and padding. The first container and the last container are at either end of the container with the rest of the containers distributed in between.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">space-evenly:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"437\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM-1024x437.png\" alt=\"justify content space evenly\" class=\"wp-image-18635\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM-1024x437.png 1024w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM-768x328.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM-770x329.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM-20x9.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM-385x164.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-30-at-6.31.31-AM.png 1180w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong><code>justify-content: space-evenly<\/code> \u2013 All the child containers\/flex-items have equal space between all child containers as well as between containers and edges.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">align-items<\/h3>\n\n\n\n<p>The biggest difference between <code>align-items<\/code> and <code>justify-content<\/code>, besides the axis it distributes the child containers on, is its default value. As a reminder, when we use <code>flex-direction<\/code> the default value for <code>justify-content<\/code> is <code>flex-start<\/code>. That is not the case for <code>align-items<\/code>. Instead, the default value is stretch.&nbsp;<br><\/p>\n\n\n\n<p>To illustrate, let\u2019s go back to the code editor at the top of the page and take out the width and height on the <code>.child-container<\/code>. We already have <code>display: flex <\/code>and <code>flex-direction<\/code> set. Let\u2019s toggle between <code>flex-direction: row<\/code> and <code>flex-direction: column<\/code> to see how the container behaves without having any constraints on it. How does it compare to what you would expect?&nbsp;<br><\/p>\n\n\n\n<p>With no <code>align-items<\/code> rule set, the child container stretches to the size of the parent container on the cross axis. However, if we set an <code>align-items<\/code> property on the parent container, the size of the child container will automatically adjust to the size of the content plus whatever padding and border you have on it.&nbsp;<br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">align-items: stretch<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"1024\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM-972x1024.png\" alt=\"align items stretch\" class=\"wp-image-18636\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM-972x1024.png 972w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM-768x809.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM-770x811.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM-20x21.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM-385x405.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.37-PM.jpg 1000w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><figcaption><strong><code>align-items: stretch<\/code> \u2013 align-items: stretch is the default value for this property. All the child containers\/flex-items will adjust main axis size based on the contents of the child container but the cross axis will stretch to the size of the parent container.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">align-items: center<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"954\" height=\"1024\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM-954x1024.png\" alt=\"align items center\n\" class=\"wp-image-18637\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM-954x1024.png 954w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM-768x824.png 768w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM-770x826.png 770w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM-20x21.png 20w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM-385x413.png 385w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-08-at-10.26.59-PM.png 1000w\" sizes=\"auto, (max-width: 954px) 100vw, 954px\" \/><figcaption><strong><code>align-items: center<\/code> \u2013 All the child containers\/flex-items will adjust main-axis size and cross-axis size based on the contents of the child container and then position itself to the center of the cross-axis.&nbsp;<\/strong><\/figcaption><\/figure>\n\n\n\n<p>All of the other properties that we went through for <code>justify-content<\/code> also apply here to <code>align-items<\/code> and mean the same thing, except that we have just switched which axis we are on.&nbsp;<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Child Container (Flex-item) Properties<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">order<\/h3>\n\n\n\n<p>Typically, the order of the containers in a parent component will follow how they are laid out in the HTML file. However, if you would like to control the order of the containers <strong>\u2013<\/strong> for instance, if you want to highlight another child container first when you are on a mobile device <strong>\u2013<\/strong> you can do that by using the order property. The property is a numerical value that indicates which order the child containers should go in when being displayed on the screen.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">align-self&nbsp;<\/h3>\n\n\n\n<p><code>align-self<\/code> allows for the default alignment or the one set by <code>align-items<\/code> to be overridden. Remember, align-self only works if the parent itself is <code>display: flex<\/code>. The values for <code>align-self<\/code> can be <code>flex-start<\/code>, <code>flex-end<\/code>, baseline or stretch.&nbsp;<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/Flexbox?lite=true\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this tutorial, we covered the basics of the flexible box model. We discovered that flexbox involves a relationship between the parent container and its child containers. The parent\u2019s flexbox properties directly impact the child containers\u2019 movement in the parent\u2019s free space.&nbsp;<br><\/p>\n\n\n\n<p>We use <code>flex-direction<\/code>, <code>justify-content<\/code>, <code>align-items<\/code> and <code>flex-wrap<\/code> to manipulate the child\u2019s position in the parent and we use order and <code>align-self<\/code> on the child to override some of those defaults or rules put in place on the parent.&nbsp;<br><\/p>\n\n\n\n<p>Please use the code editors here to play with these properties so you can practice. You are well on your way to becoming a flexbox expert!<\/p>\n","protected":false},"excerpt":{"rendered":"The CSS Flexbox Model was created to improve the established CSS Box Model. The Flexbox Model still contains the major elements of the Box Model (margin, padding, border and content), but offers flexibility to best fill the space with the container\u2019s\/parent\u2019s children.&nbsp; This tutorial will help you to understand the flexbox module a bit better&hellip;","protected":false},"author":77,"featured_media":18625,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17287],"tags":[],"class_list":{"0":"post-18624","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-css"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"CSS","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>The CSS Flexbox Model: The Complete Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Coders use CSS to decorate the HTML website they create. Learn how to use the flexbox model to craft attractive front-end applications. Slug: \/css-flexbox\/\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/css-flexbox\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Flexbox\" \/>\n<meta property=\"og:description\" content=\"Coders use CSS to decorate the HTML website they create. Learn how to use the flexbox model to craft attractive front-end applications. Slug: \/css-flexbox\/\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/css-flexbox\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-29T22:40:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-29T19:32:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/pexels-photo-310435.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"679\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Christina Kopecky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christina Kopecky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/\"},\"author\":{\"name\":\"Christina Kopecky\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"headline\":\"CSS Flexbox\",\"datePublished\":\"2020-06-29T22:40:06+00:00\",\"dateModified\":\"2020-12-29T19:32:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/\"},\"wordCount\":1657,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/pexels-photo-310435.jpeg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/\",\"name\":\"The CSS Flexbox Model: The Complete Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/pexels-photo-310435.jpeg\",\"datePublished\":\"2020-06-29T22:40:06+00:00\",\"dateModified\":\"2020-12-29T19:32:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"description\":\"Coders use CSS to decorate the HTML website they create. Learn how to use the flexbox model to craft attractive front-end applications. Slug: \\\/css-flexbox\\\/\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/pexels-photo-310435.jpeg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/pexels-photo-310435.jpeg\",\"width\":1000,\"height\":679},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-flexbox\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CSS Flexbox\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\",\"name\":\"Christina Kopecky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"caption\":\"Christina Kopecky\"},\"description\":\"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.\",\"sameAs\":[\"http:\\\/\\\/www.linkedin.com\\\/in\\\/cmvnk\"],\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/christina-kopecky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"The CSS Flexbox Model: The Complete Guide | Career Karma","description":"Coders use CSS to decorate the HTML website they create. Learn how to use the flexbox model to craft attractive front-end applications. Slug: \/css-flexbox\/","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/css-flexbox\/","og_locale":"en_US","og_type":"article","og_title":"CSS Flexbox","og_description":"Coders use CSS to decorate the HTML website they create. Learn how to use the flexbox model to craft attractive front-end applications. Slug: \/css-flexbox\/","og_url":"https:\/\/careerkarma.com\/blog\/css-flexbox\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-06-29T22:40:06+00:00","article_modified_time":"2020-12-29T19:32:19+00:00","og_image":[{"width":1000,"height":679,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/pexels-photo-310435.jpeg","type":"image\/jpeg"}],"author":"Christina Kopecky","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Christina Kopecky","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/"},"author":{"name":"Christina Kopecky","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"headline":"CSS Flexbox","datePublished":"2020-06-29T22:40:06+00:00","dateModified":"2020-12-29T19:32:19+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/"},"wordCount":1657,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/pexels-photo-310435.jpeg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/css-flexbox\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/","url":"https:\/\/careerkarma.com\/blog\/css-flexbox\/","name":"The CSS Flexbox Model: The Complete Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/pexels-photo-310435.jpeg","datePublished":"2020-06-29T22:40:06+00:00","dateModified":"2020-12-29T19:32:19+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"description":"Coders use CSS to decorate the HTML website they create. Learn how to use the flexbox model to craft attractive front-end applications. Slug: \/css-flexbox\/","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/css-flexbox\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/pexels-photo-310435.jpeg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/pexels-photo-310435.jpeg","width":1000,"height":679},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/css-flexbox\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/careerkarma.com\/blog\/css\/"},{"@type":"ListItem","position":3,"name":"CSS Flexbox"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e","name":"Christina Kopecky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","caption":"Christina Kopecky"},"description":"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.","sameAs":["http:\/\/www.linkedin.com\/in\/cmvnk"],"url":"https:\/\/careerkarma.com\/blog\/author\/christina-kopecky\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=18624"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18624\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18625"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}