<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Steven Garrity</title>
    <description>The latest articles on DEV Community by Steven Garrity (@sgarrity).</description>
    <link>https://dev.to/sgarrity</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F417669%2Ff3989dcd-68fc-464e-89f2-2444c984c126.png</url>
      <title>DEV Community: Steven Garrity</title>
      <link>https://dev.to/sgarrity</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sgarrity"/>
    <language>en</language>
    <item>
      <title>Looking for help with CSS Grid auto-fit with the last item on its own row</title>
      <dc:creator>Steven Garrity</dc:creator>
      <pubDate>Sat, 27 Jun 2020 22:20:05 +0000</pubDate>
      <link>https://dev.to/sgarrity/looking-for-help-with-css-grid-auto-fit-with-the-last-item-on-its-own-row-5652</link>
      <guid>https://dev.to/sgarrity/looking-for-help-with-css-grid-auto-fit-with-the-last-item-on-its-own-row-5652</guid>
      <description>&lt;p&gt;Here's the deal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You've got markup you don't control&lt;/li&gt;
&lt;li&gt;It includes images wrapped in a &lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt; tag&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt; tag may or may not have a &lt;code&gt;&amp;lt;figcaption&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt; could include one &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; or many&lt;/li&gt;
&lt;li&gt;You want the images to fill the available width, but if there are multiple, shrink down to 25% for 4-columns&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I have here almost works ✅, but in cases with a figcaption and fewer than 4 images, the images don't fill the available width as I'd like ❌.&lt;/p&gt;

&lt;p&gt;Help! See the &lt;a href="https://codepen.io/sgarrity/pen/QWyMZzQ"&gt;example on CodePen&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/sgarrity/embed/QWyMZzQ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>cssgrid</category>
      <category>css</category>
      <category>codepen</category>
      <category>help</category>
    </item>
  </channel>
</rss>
