<?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: Duke Ovie</title>
    <description>The latest articles on DEV Community by Duke Ovie (@ovieduke).</description>
    <link>https://dev.to/ovieduke</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%2F316393%2Fcdc062f6-aa41-4a42-958e-46fbd8c2360e.jpg</url>
      <title>DEV Community: Duke Ovie</title>
      <link>https://dev.to/ovieduke</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ovieduke"/>
    <language>en</language>
    <item>
      <title>Reverse Ordering</title>
      <dc:creator>Duke Ovie</dc:creator>
      <pubDate>Tue, 18 Feb 2020 12:04:07 +0000</pubDate>
      <link>https://dev.to/ovieduke/reverse-ordering-4g84</link>
      <guid>https://dev.to/ovieduke/reverse-ordering-4g84</guid>
      <description>&lt;p&gt;While working on a project, I needed to change the position of two divs based on screen size. This meant that when the website is viewed on desktop, the divs are stacked same way as designed but when viewed on mobile, the divs should be reversed. I already knew there was a css property using display: none but that would mean duplicating code. Several solutions found only discussed row/column reverse. After some experimentation, I realized I could just reverse the flex direction. The goal of this tutorial is to show both div reverse ordering and column reverse ordering based on screen width &amp;lt;500px. Let us begin.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Goals
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Div Reverse&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jrHeTCZN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mdvylqjvu73fxh24ye4k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jrHeTCZN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mdvylqjvu73fxh24ye4k.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Div Reverse Mobile&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VcOPO7f---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/l3828oboh0d9pswtt5ox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VcOPO7f---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/l3828oboh0d9pswtt5ox.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Column Reverse&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JP2tKIgI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wccilbmp583tek8jv4s3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JP2tKIgI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wccilbmp583tek8jv4s3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Column Reverse Mobile&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ACIhJQZa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/lkqa9fns8lxxj55ne8yu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ACIhJQZa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/lkqa9fns8lxxj55ne8yu.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The Markup
&lt;/h2&gt;

&lt;p&gt;Since I am using bootstrap, I added a few inline styles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="divReverse p-5 mt-5 mb-4"&amp;gt;
  &amp;lt;div class="mb-5 mt-5 p-5 bg-primary"&amp;gt;
    &amp;lt;h1 class="first"&amp;gt;Desktop 1st DIV &amp;lt;/h1&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class="mb-5 mt-5 p-5 bg-info"&amp;gt;
    &amp;lt;h1&amp;gt;Desktop 2nd DIV &amp;lt;/h1&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Basic Styles
&lt;/h2&gt;

&lt;p&gt;Used some CSS methods to reverse the div order&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@media only screen and (max-width: 600px) {
  .divReverse {
    background: #A9A9A9;
    display: flex;
    flex-wrap: wrap-reverse;
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial, we saw how we can easily reverse a div. For the complete code and that of column-reverse ordering, I have added a link to codepen &lt;a href="https://codepen.io/dukeofwest/pen/JjdKbEV"&gt;https://codepen.io/dukeofwest/pen/JjdKbEV&lt;/a&gt; &lt;/p&gt;

</description>
      <category>bootstrap</category>
      <category>css</category>
      <category>flexbox</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Goals for 2020</title>
      <dc:creator>Duke Ovie</dc:creator>
      <pubDate>Mon, 13 Jan 2020 15:36:44 +0000</pubDate>
      <link>https://dev.to/ovieduke/goals-for-2020-4imj</link>
      <guid>https://dev.to/ovieduke/goals-for-2020-4imj</guid>
      <description>&lt;p&gt;I am not a big fan of New Year Resolutions. However, at the beginning of the year, I set some goals that I would like to accomplish before the end of the year. Call it a &lt;del&gt;resolution/target/&lt;/del&gt;goal or whatever but I decided these towards the end of 2019. In no particular order, my goals for 2020 are;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attend at least 20 meetups&lt;/li&gt;
&lt;li&gt;Publish 15 articles&lt;/li&gt;
&lt;li&gt;Tweet more&lt;/li&gt;
&lt;li&gt;Give a talk&lt;/li&gt;
&lt;li&gt;Mentor Newbies&lt;/li&gt;
&lt;li&gt;Attend a conference&lt;/li&gt;
&lt;li&gt;Run a half marathon&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, there you have it. I hope that by the end of the year, I'd happily look back at this post and say I did it. Also, all milestones achieved will be shared in hopes that someone out there becomes inspired.&lt;/p&gt;

&lt;p&gt;What are your goals for 2020?&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
