<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by TheCodeLessTravelled on Medium]]></title>
        <description><![CDATA[Stories by TheCodeLessTravelled on Medium]]></description>
        <link>https://medium.com/@CodeTravelled?source=rss-69633c702d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pVjt5aTbHXIcNKke.jpg</url>
            <title>Stories by TheCodeLessTravelled on Medium</title>
            <link>https://medium.com/@CodeTravelled?source=rss-69633c702d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:29:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CodeTravelled/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Difference between Justify Content, Justify Items, Align Content and Align Items as they…]]></title>
            <link>https://medium.com/@CodeTravelled/the-difference-between-justify-content-justify-items-align-content-and-align-items-as-they-b0c3236735a?source=rss-69633c702d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0c3236735a</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[flexbox]]></category>
            <dc:creator><![CDATA[TheCodeLessTravelled]]></dc:creator>
            <pubDate>Sun, 26 May 2019 11:34:29 GMT</pubDate>
            <atom:updated>2019-05-26T11:34:29.521Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Difference between Justify Content, Justify Items, Align Content and Align Items as they pertain to flexboxes…</h3><p>I have most recently completed my very first webpage. (Feel free to have a <a href="http://jodunhamwebdev.netlify.com/">gander</a>) Now I know I’m not alone in my many a tantrum and frustration in learning the finer points of CSS. One large point of contention for myself were these 4 so similarly named commands above. Justify and align in the English dictionary are synonyms. Content and Items are also synonyms. These phrases literally mean the same thing when spoken in a normal conversation!! But in CSS they all have very different meanings and how many times I experimentally interchanged them until I got my desired result, I could not count.</p><p>But after much ado I can now share my knowledge on their actual differences!</p><p><strong>Justify Content: </strong>Firstly this is only used on items in a flexbox, and only makes a difference if these items do not take up all the space in the flexbox! It moves the items in the box horizontally (if the flexbox is set to a row)</p><p>The main values for this can be set to: <br><em>flex-start </em>— moves all items to the start of the box (left)<br><em>flex-end</em> — moves all items to the end of the box (right)<br><em>center </em>— centers the items in the middle of the box<br><em>space-between</em> — put the first item at the start of the box with the last item at the end and everything else spaced equally inbetween <br><em>space-around </em>— every item will be equally spaced with a space at the beginning and end as well.</p><p><strong>Justify-Items: </strong>This sets the default value for justify-self for all items in the box, and <em>when used in a flexbox it is ignored</em>.</p><p><strong>Align-Items: </strong>This is more of a vertical alignment (when the flexbox is set to row). It defines how individual items should arrange themselves inside a flexbox.</p><p>The main values for this can be set to:<br><em>stretch</em> — stretches all the items in the box to fill the space top to bottom<br><em>center</em> — positions all items in the middle of the container<br><em>flex-start</em> — arranges all items at the top of the container<br><em>flex-end</em> — arranges all items at the bottom of the container</p><p><strong>Align-Content: </strong>This is similar to align-items only it <em>only works once the items wrap!</em> It tells flex-lines how to organise themselves, but utterly useless if they are just the one line!</p><p><strong>So to summarise: </strong><br><em>Justify-content</em> — only works if the box isn’t full and puts items at the start and end of box.</p><p><em>Justify-items</em> — useless on flexboxes</p><p><em>Align-items </em>— puts items up and down in the box</p><p><em>Align-content</em> — same as align-items but only works once the items wrap!</p><p>Hope this blog helps in calming down a few tantrums in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c3236735a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>