<?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: Aravind</title>
    <description>The latest articles on DEV Community by Aravind (@aravind121).</description>
    <link>https://dev.to/aravind121</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%2F434857%2F3f10bcea-625e-4f3d-92f2-c731316146c9.png</url>
      <title>DEV Community: Aravind</title>
      <link>https://dev.to/aravind121</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aravind121"/>
    <language>en</language>
    <item>
      <title>How To Center Elements Vertically in CSS</title>
      <dc:creator>Aravind</dc:creator>
      <pubDate>Sun, 19 Jul 2020 04:24:48 +0000</pubDate>
      <link>https://dev.to/aravind121/how-to-center-elements-vertically-in-css-29e6</link>
      <guid>https://dev.to/aravind121/how-to-center-elements-vertically-in-css-29e6</guid>
      <description>&lt;p&gt;Centering an element vertically in CSS is the hardest thing that every beginners face. &lt;br&gt;
Hard coded heights with absolute positioning is the basic approach to center an element vertically.Though it might work fine,it has a bunch of drawback,when the height of the parent element is not determined.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using Flexbox&lt;/strong&gt;&lt;br&gt;
The previous way to center elements works good,but they have some major drawback.They need to have a pre-defined height.Flexbox has made centering elements unbelievably easy.The "align-items" property in Flexbox is what centers all of our elements vertically,and the "justify-content" property is what centers the items horizontally.Flexbox is and incredibly tool that need to be mastered &lt;br&gt;
&lt;a href="https://flexboxfroggy.com/"&gt;https://flexboxfroggy.com/&lt;/a&gt; &amp;lt;=Learn flexbox playing this game..&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grid&lt;/strong&gt;&lt;br&gt;
Just like Flexbox,CSS grid makes centering super easy.Most of the properties in Flexbox and grid are same,the width of children is defined in the parent using the property "grid-template-columns".&lt;br&gt;
The "align items" property is what centers of our elements vertically,and the "justify-content" property centers the items horizontally.If you not familiar with grid it is a powerfull tool to be learnt&lt;br&gt;&lt;br&gt;
&lt;a href="https://codepip.com/games/grid-garden/"&gt;https://codepip.com/games/grid-garden/&lt;/a&gt; &amp;lt;= Learn Grid playing this game..&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
