<?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: Joëlle</title>
    <description>The latest articles on DEV Community by Joëlle (@jojonwanderlust).</description>
    <link>https://dev.to/jojonwanderlust</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%2F234996%2Fa44316bb-0a19-4d3d-97a1-9a4dd8403a54.jpg</url>
      <title>DEV Community: Joëlle</title>
      <link>https://dev.to/jojonwanderlust</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jojonwanderlust"/>
    <language>en</language>
    <item>
      <title>Day 18 - Digging Deeper into CSS - Responsive Design</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Tue, 17 Dec 2019 03:07:35 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-18-digging-deeper-into-css-responsive-design-3leb</link>
      <guid>https://dev.to/jojonwanderlust/day-18-digging-deeper-into-css-responsive-design-3leb</guid>
      <description>&lt;p&gt;Today has not been a good day. I still went through with my studying but did not complete everything that I wanted to. &lt;/p&gt;

&lt;p&gt;Anyways, I went over Responsive Design. &lt;/p&gt;

&lt;p&gt;As screen sizes vary and consumption of the web is through mobile phones increasingly, developers have to ensure that users are able to use their site seamlessly. This is where Responsive Design comes in. It allows us to meet the needs of the many screen sizes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media Queries&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Media Queries are CSS rules designed specifically for a variety of screen sizes. They are conditional rules and only apply if the screen size meet the parameters set by the rule. There are 2 main ways to include them in your side.&lt;/p&gt;

&lt;p&gt;1) &lt;u&gt;Link them via a separate stylesheet&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;One of the benefits of this method is that the link will be ignored if the device width does not meet the parameters of the media query.&lt;/p&gt;

&lt;p&gt;If it does meet the parameters, you would have to think about load time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt; &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/css"&lt;/span&gt; &lt;span class="na"&gt;media=&lt;/span&gt;&lt;span class="s"&gt;"screen and 
(max-device-width: 480px)"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"mobile.css"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;2) &lt;u&gt;Include then in the main stylesheet&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;This is my preferred method as all the rules are in one file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="n"&gt;screen&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;480px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="py"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;after&lt;/span&gt; &lt;span class="err"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;"480px to 768px"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hsla&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;180&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="m"&gt;60%&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="m"&gt;40%&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="m"&gt;0.7&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;In most of the projects I have worked on and made responsive, I was making a clone and knew what changes to make for different screen sizes.&lt;/p&gt;

&lt;p&gt;When I was working on the YouTube clone project, I used the Grid to create the main layout. Then I set it up so that when the screen reaches a certain width, the Grid will be displayed another way. &lt;/p&gt;

&lt;p&gt;A few things I had to think about when I was making it responsive.&lt;/p&gt;

&lt;p&gt;1) &lt;u&gt;Fixed Units&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;There were section in my grid where I used pixels and when I made it responsive, that section stayed the same width. You may want to stick with % or fractional units with the Grid.&lt;/p&gt;

&lt;p&gt;2) &lt;u&gt;Images&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;Images were the worst to deal with. At first, I gave the image an inline width and as you can imagine, no matter the width the screen, the images were still 180px. The way I fixed it was by putting the image in a &lt;code&gt;div&lt;/code&gt; and setting the width to 100%. &lt;/p&gt;

&lt;p&gt;That's it for today.&lt;/p&gt;

&lt;p&gt;The streak continues ...&lt;/p&gt;

</description>
      <category>selftaught</category>
      <category>html</category>
      <category>css</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Day 17 - Project -NYT Article - Completed</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Wed, 11 Dec 2019 05:48:16 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-17-project-nyt-article-completed-n9o</link>
      <guid>https://dev.to/jojonwanderlust/day-17-project-nyt-article-completed-n9o</guid>
      <description>&lt;p&gt;I finished the NYT Article page clone.&lt;/p&gt;

&lt;p&gt;There was a lot of content and it was the first time I handled this much content.&lt;/p&gt;

&lt;p&gt;It was a fun exercise.&lt;/p&gt;

&lt;p&gt;You can see a video &lt;a href="https://twitter.com/jojonwanderlust/status/1204633491947827200"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am exhausted but I am really with how this came up and the practice of finding solution for different issues.&lt;/p&gt;

&lt;p&gt;The streak continues ...&lt;/p&gt;

</description>
      <category>selftaught</category>
      <category>beginners</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Day 16 - Project -NYT Article Part 2</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Wed, 04 Dec 2019 03:06:16 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-16-project-nyt-article-part-2-38gf</link>
      <guid>https://dev.to/jojonwanderlust/day-16-project-nyt-article-part-2-38gf</guid>
      <description>&lt;p&gt;More of a busy day today.&lt;/p&gt;

&lt;p&gt;Did about 2 hours of my Udacity program and then it was on to my NYT article project.&lt;/p&gt;

&lt;p&gt;It is not complete yet but I think I might finish it within a day or two.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0f53lcNp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/w23ofi5e09fe7yacp06z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0f53lcNp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/w23ofi5e09fe7yacp06z.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I had already completed the nav bar and the main picture was there. One of the first issue I encountered was centering it. It was so simple but yet I forgot. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;margin:auto&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That was it !&lt;/p&gt;

&lt;p&gt;Once that was done, I moved to the image description. I usually work in a waterfall fashion and I have started thinking about my project before I start coding.&lt;/p&gt;

&lt;p&gt;I find that in the beginning, it takes a while to accomplish anything and as I get to the middle, it's a matter of pasting and breezing through the code.&lt;/p&gt;

&lt;p&gt;The next part was where the article actually starts. The section with the author's name and the social media icons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--60KLHbhy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ab6xjmhjz7ngl5j1049f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--60KLHbhy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ab6xjmhjz7ngl5j1049f.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The main content of this page is centered and the article content is centered within that. &lt;/p&gt;

&lt;p&gt;One of the best tricks I have learned from Brad Traversy is the use of "utility classes". These are the lines of code that you are writing over and over. Therefore, instead of rewriting, you simply create a class and you add it to the HTML.&lt;/p&gt;

&lt;p&gt;In order to get the narrow view of the article, I created a wrapper class that aligns the content to the left, sets the width to 50% of the main container for everything. I also set the margin to &lt;code&gt;auto&lt;/code&gt; to center it.&lt;/p&gt;

&lt;p&gt;As I am adding more paragraph, I simply add the class that I need.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mmPGLkTr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/jf1bwfmjqa163enc5a5m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mmPGLkTr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/jf1bwfmjqa163enc5a5m.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This way, there is less CSS.&lt;/p&gt;

&lt;p&gt;The streak continues...&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Day 15 - Update</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Tue, 03 Dec 2019 02:54:07 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-15-update-23dd</link>
      <guid>https://dev.to/jojonwanderlust/day-15-update-23dd</guid>
      <description>&lt;p&gt;Long time , no see.&lt;/p&gt;

&lt;p&gt;I got laid off and it kinda threw my plans off and I took some time to think about next steps. I still don't it well planned out. I am going to use most of the time to study more and go through courses and look for work.&lt;/p&gt;

&lt;p&gt;I also have been accepted in the Bertelsmann Tech Udacity Scholarship Challenge Course for the Cloud Track and I am learning so much already.&lt;/p&gt;

&lt;p&gt;Today was my first day unemployed and I spent a lot time learning the shell and a few lessons on Version Control. &lt;/p&gt;

&lt;p&gt;Some of the commands were not too new to me. But, here are some interesting ones that I learned:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Echo&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This command is just like the &lt;code&gt;console.log&lt;/code&gt; in JavaScript and will return whatever you wrote after the command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The double “!!” will return the last command you wrote and the result of that command. If you want to avoid this, just wrap the text in single quotes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Viewing Files&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can use &lt;code&gt;cat&lt;/code&gt; or &lt;code&gt;less&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cat&lt;/code&gt;: reads the file and outputs the content. It will display everything.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;less&lt;/code&gt;: it shows less of the file or gives you a 1 page view.&lt;br&gt;
    You can use “space” or the arrow key to move through the file&lt;br&gt;
    You can use “b” to go back&lt;br&gt;
    You can also use the “/” to search the file for a specific item&lt;br&gt;
    You can use “q” to quit&lt;/p&gt;

&lt;p&gt;As usual, these are some of the things that were new or interesting to me.&lt;/p&gt;

&lt;p&gt;The streak continues...&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day 14 - Project - NYT Article - Part 1</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Wed, 13 Nov 2019 02:19:29 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-14-project-nyt-article-part-1-3li5</link>
      <guid>https://dev.to/jojonwanderlust/day-14-project-nyt-article-part-1-3li5</guid>
      <description>&lt;p&gt;It's now time to practice again all that I have learned.&lt;/p&gt;

&lt;p&gt;The goal is to recreate this &lt;a href="https://www.nytimes.com/2014/03/18/science/space/detection-of-waves-in-space-buttresses-landmark-theory-of-big-bang.html?_r=0"&gt;NYT article page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;With my last project, I realized that it was better to think about what I wanted to accomplish before I started coding. I created from mockup on paper and it forced me to taking into account how I was going to position some elements and see if I was missing containers. By the time I was done with the mockup, coding was easier and faster.&lt;/p&gt;

&lt;p&gt;This time I used Figma on the recommendation of a Twitter friend and this is what I have so far. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--X9VBrfGz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/2j0emzh6giz2ooavdqgh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--X9VBrfGz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/2j0emzh6giz2ooavdqgh.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am deciding whether to use the Grid as it would be easy to make the page responsive using &lt;code&gt;grid-template-areas&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I will be using .svg for the icons and see what's different.&lt;/p&gt;

&lt;p&gt;Anyhow, have to be up early. I will start coding tomorrow and I can't wait to see what I learn.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>selftaught</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Day 13 - Digging Deeper into CSS - Grid Layout</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Tue, 12 Nov 2019 04:05:12 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-13-digging-deeper-into-css-grid-layout-3im7</link>
      <guid>https://dev.to/jojonwanderlust/day-13-digging-deeper-into-css-grid-layout-3im7</guid>
      <description>&lt;p&gt;Well, I got busy the past 3 days and got sick but I am back.&lt;/p&gt;

&lt;p&gt;For some reason, this was a much easier concept to learn.&lt;/p&gt;

&lt;p&gt;What is the Grid layout? On &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout"&gt;MDN&lt;/a&gt;, it is defined as "a two-dimensional grid system to CSS". What that means is that with this system you have access to the column and the row unlike Flexbox where you have access to the column or the row.&lt;/p&gt;

&lt;p&gt;This is not an all inclusive list of all the properties as the goal of this is to deepen my knowledge of concepts I didn't understand enough the first time. For a full list, you can check out &lt;a href="https://css-tricks.com/snippets/css/complete-guide-grid/"&gt;CSS Tricks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As with Flexbox, there is the idea of the "Grid Container" and the "Grid Items" meaning certain properties are applied to the container and other to the items. &lt;/p&gt;

&lt;p&gt;As you are creating the grid, you may set the value for the column or the row only and let's say that you have 8 &lt;code&gt;div&lt;/code&gt;. You set the columns to &lt;code&gt;grid-template-columns: 200px 200px 200px;&lt;/code&gt;. What you will get is a grid with 3 columns and however many rows necessary to fit the remaining &lt;code&gt;div&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is what is called "Implicit Track" and "Explicit Track".&lt;/p&gt;

&lt;p&gt;Implicit track - How the grid organizes when the column or row is not set. &lt;br&gt;
Explicit track - How the grid organizes when the column or row is set &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The FR Unit&lt;/strong&gt;&lt;br&gt;
This is a unit for the Grid Layout that creates flexible units without calculating percentages. This is amazing for responsiveness. It represents a fraction of the available space in the Grid Container. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Minmax() Function&lt;/strong&gt;&lt;br&gt;
Used to limit the size of items when the grid container changes size. This is especially useful when you use &lt;code&gt;grid-auto-rows&lt;/code&gt; and &lt;code&gt;grid-auto-columns&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auto Placement&lt;/strong&gt;&lt;br&gt;
When you create your &lt;code&gt;grid-template&lt;/code&gt;, the default way for the items to be laid out is in a row.  For example, if you have 6 &lt;code&gt;div&lt;/code&gt; in 3 columns, it will be laid out as such.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;1 2 3&lt;br&gt;
4 5 6&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can change the layout with &lt;code&gt;grid-auto-flow&lt;/code&gt; without changing the source code.  If you give it a value of column, the items will be laid out like this now.&lt;/p&gt;

&lt;p&gt;&lt;code&gt; 1 3 5&lt;br&gt;
2 4 6&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We know that we can use &lt;code&gt;grid-auto-columns&lt;/code&gt; and &lt;code&gt;grid-auto-rows&lt;/code&gt; to set the size of implicit grid items. However, if you want to set how they are placed, you can use the &lt;code&gt;grid-auto-flow&lt;/code&gt; property. The available values are &lt;code&gt;row&lt;/code&gt;, &lt;code&gt;column&lt;/code&gt; as seen above and &lt;code&gt;dense&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auto-Fill &amp;amp; Auto-Fit&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;auto-fill&lt;/code&gt;: This allows you to automatically insert as many rows or columns of your desired size as possible depending on the size of the container. You can create flexible layouts when combining &lt;code&gt;auto-fill&lt;/code&gt; with &lt;code&gt;minmax()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;auto-fit&lt;/code&gt;: works almost identically to&lt;code&gt;auto-fill&lt;/code&gt;. The only difference is that when the container's size exceeds the size of all the items combined, &lt;code&gt;auto-fill&lt;/code&gt; keeps inserting empty rows or columns and pushes your items to the side, while &lt;code&gt;auto-fit&lt;/code&gt; collapses those empty rows or columns and stretches your items to fit the size of the container.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alignment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;justify-content&lt;/code&gt; moves the entire grid (all the grid-items) within the grid container. This property aligns the grid along the row axis.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;align-content&lt;/code&gt; moves the entire grid (all the grid items) within the grid container. This property aligns the grid along the column axis. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;justify-items&lt;/code&gt; aligns grid items along the inline (row) axis. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;align-items&lt;/code&gt; aligns grid items along the block (column) axis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Anonymous Items&lt;/strong&gt;&lt;br&gt;
This is when you have text that isn't in a &lt;code&gt;div&lt;/code&gt; or another element within a Grid Container. The text will react as a grid item as if it was wrapped in a container. &lt;/p&gt;

&lt;p&gt;So far I have used both Flexbox and the Grid Layout in a project and I found for the page layout, I used the Grid Layout and for the rest of the page I was using Flexbox.&lt;/p&gt;

&lt;p&gt;I'm due for another project tomorrow and I am going to be more mindful of the choices I make.&lt;/p&gt;

&lt;p&gt;The streak continues...&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Day 12 - Digging Deeper into CSS - Flexbox</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Fri, 08 Nov 2019 06:57:36 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-11-digging-deeper-into-css-flexbox-539h</link>
      <guid>https://dev.to/jojonwanderlust/day-11-digging-deeper-into-css-flexbox-539h</guid>
      <description>&lt;p&gt;Another day, another concept. Today we're flexing on Flexbox. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aovSsiiW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/oznasclt6tsqifilsyvz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aovSsiiW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/oznasclt6tsqifilsyvz.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With Flexbox, "flex containers" and "flex items" are introduced. Think of them like "parent element" and "child element" but they are boxes. The "flex container" the box that is the parent element and its main goal is to organize the boxes that are the "flex items" (child element) and set their position. &lt;/p&gt;

&lt;p&gt;Understanding this is key as you will want to ensure that you are adding properties to the elements you want.&lt;/p&gt;

&lt;p&gt;So now you have the container and the items and you want to move the items and you will do so mainly with the container. You will want to use the available properties for Flexbox but you should know that a specific property is preset to move in a certain direction, that is the "main axis" and the cross "axis".&lt;/p&gt;

&lt;p&gt;Here is a visual that helped me in the beginning and will help in understanding which property to use to move the items in a specific position.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M-Qn5Yvl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nnzwomhl9di6t0z1q5b5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M-Qn5Yvl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nnzwomhl9di6t0z1q5b5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am organizing the below into properties for the flex container and the flex items. &lt;a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/"&gt;CSS Trick&lt;/a&gt; has an excellent breakdown of the value of the different properties. &lt;/p&gt;

&lt;h2&gt;
  
  
  Flex Container Properties
&lt;/h2&gt;

&lt;p&gt;These only affect the flex items boxes and not the content inside them.&lt;/p&gt;

&lt;p&gt;1- Horizontal Alignment&lt;br&gt;
&lt;code&gt;justify-content&lt;/code&gt; is used to position the flex items horizontally along the main axis. There are multiple values such as &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;flex-start&lt;/code&gt;, &lt;code&gt;flex-end&lt;/code&gt;, &lt;code&gt;space-around&lt;/code&gt; and &lt;code&gt;space-between&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;The default value for this property is &lt;code&gt;flex-start&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;2- Vertical Alignment&lt;br&gt;
&lt;code&gt;align-items&lt;/code&gt; is used to position the flex items vertically along the cross axis. The values are similar to &lt;code&gt;justify-content&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;They are: &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;flex-start&lt;/code&gt;, &lt;code&gt;flex-end&lt;/code&gt;, &lt;code&gt;stretch&lt;/code&gt; and &lt;code&gt;baseline&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;The default value for this property is &lt;code&gt;stretch&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;3- Flex-Wrap&lt;br&gt;
Imagine that you have a container that has a set width of 600px. The flex items are set to a width of 200px and there are 5 flex items. What will happen is that the flex items will line up horizontally and thus creating a horizontal scroll bar. Of course, we don't want that and that's where &lt;code&gt;flex-wrap:wrap&lt;/code&gt; comes in. It defines what happens to the flex items that are outside the container.&lt;/p&gt;

&lt;p&gt;4- Flex-Direction&lt;br&gt;
This defines whether the flex items will be displayed horizontally or vertically. The main two  values are &lt;code&gt;flex-direction: row;&lt;/code&gt; and &lt;code&gt;flex-direction: column&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The default direction is &lt;code&gt;flex-direction: row;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;
When the &lt;code&gt;flex-direction;&lt;/code&gt; is row, the main axis is horizontal and the cross axis is vertical.&lt;/p&gt;

&lt;p&gt;When the &lt;code&gt;flex-direction;&lt;/code&gt; is column, the main axis is vertical and the cross axis horizontal.&lt;/p&gt;

&lt;p&gt;Another cool thing you can do with &lt;code&gt;flex-direction;&lt;/code&gt; are with the values &lt;code&gt;row-reverse&lt;/code&gt; and &lt;code&gt;column-reverse&lt;/code&gt;. This is really cool way to change the order of the flex items.&lt;/p&gt;

&lt;h2&gt;
  
  
  Flex Items Properties
&lt;/h2&gt;

&lt;p&gt;Flex Container only affect the direct child, the flex items, and they don't affect the content the the direct flex items. These properties can be used to manipulate the content inside the flex items.&lt;/p&gt;

&lt;p&gt;1- Order&lt;br&gt;
The purpose of the &lt;code&gt;order&lt;/code&gt; property is to create lay the items out in ordinal groups. They are assigned a number and the items are then laid out in order starting with the ones with the lowest value. If two items have the same order value, they will be place according to the HTML placement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Ordering_Flex_Items"&gt;MDN&lt;/a&gt; explained this very well.&lt;/p&gt;

&lt;p&gt;Let's look at this example from MDN.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DjIA1PLt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/x7azvup9fhqdmp6bj2u2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DjIA1PLt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/x7azvup9fhqdmp6bj2u2.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, you wouldn't see the above often. The &lt;code&gt;order&lt;/code&gt; property could be given to only two flex items.&lt;/p&gt;

&lt;p&gt;Let's take the example above and keep the &lt;code&gt;order&lt;/code&gt; property to source item 3 and 5 and the rest will be empty. What would happen?&lt;/p&gt;

&lt;p&gt;Source item 3 and 5 will be moved to the end of the row. Remember how we said that the ordinal group always starts from the lowest. Well, each flex item has a default value of 0. Therefore, when we added the &lt;code&gt;order: 1;&lt;/code&gt; to source item 3 and 5, we gave them a higher value than 0 and they are pushed to the back.&lt;/p&gt;

&lt;p&gt;Another value I've seen is the negative value which will put the item to the from of the other items since the value is lower than 0.&lt;/p&gt;

&lt;p&gt;2- Align-Self&lt;br&gt;
&lt;code&gt;align-self&lt;/code&gt; is used to position the content within the flex items vertically along the cross axis.&lt;/p&gt;

&lt;p&gt;It has the same value as &lt;code&gt;align-items&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;3-Flex&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;flex&lt;/code&gt; CSS property sets how a flex item will grow or shrink to fit the space available in its flex container. It is a shorthand for &lt;code&gt;flex-grow&lt;/code&gt;, &lt;code&gt;flex-shrink&lt;/code&gt;, and &lt;code&gt;flex-basis&lt;/code&gt;. The default property settings is &lt;code&gt;flex: 0 1 auto;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-grow&lt;/code&gt;: This specifies how much of the extra available space that a flex item should take. The default is 0, meaning if there is extra space the flex item will not stretch. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-shrink&lt;/code&gt;: When there is not enough room, this specifies how much space should a flex item give up in proportion to the other flex items. The default is 1 meaning that when there is not enough room, the flex items should be spread evenly. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-basis&lt;/code&gt;: This specifies the initial size of the flex item before CSS makes adjustments with &lt;code&gt;flex-shrink&lt;/code&gt; or &lt;code&gt;flex-grow&lt;/code&gt;.  &lt;/p&gt;

&lt;p&gt;The units used by the f&lt;code&gt;flex-basis&lt;/code&gt; property are the same as other size properties (px, em, %, etc.). The value auto sizes items based on the content.&lt;/p&gt;

&lt;p&gt;Wow, another one down. It is 2am and I didn't think I would be able to do this today but I pushed through.&lt;/p&gt;

&lt;p&gt;The streak continues...&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Day 11 - Digging Deeper into CSS - Positioning</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Thu, 07 Nov 2019 03:41:51 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-11-digging-deeper-into-css-positioning-34b0</link>
      <guid>https://dev.to/jojonwanderlust/day-11-digging-deeper-into-css-positioning-34b0</guid>
      <description>&lt;p&gt;Positioning, what can I say?&lt;/p&gt;

&lt;p&gt;Every time I think that I got it, I get confused some more. This time, I went through another A List Apart &lt;a href="https://alistapart.com/article/css-positioning-101/"&gt;article&lt;/a&gt; and it clarified some things.&lt;/p&gt;

&lt;p&gt;Positioning relates to the &lt;code&gt;position&lt;/code&gt; property in CSS. This property helps align elements in the layout. There are five values &lt;code&gt;static&lt;/code&gt;, &lt;code&gt;relative&lt;/code&gt;, &lt;code&gt;absolute&lt;/code&gt;, &lt;code&gt;fixed&lt;/code&gt; and &lt;code&gt;sticky&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;They also have offset properties such as &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;right&lt;/code&gt;, &lt;code&gt;bottom&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt; and &lt;code&gt;z-index&lt;/code&gt;. These properties do not work if you don't declare a position or if the position is &lt;code&gt;static&lt;/code&gt; as it is the default position.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;z-index&lt;/code&gt; is a way to represent the order of the elements. If you want to push an element before another element you would use the &lt;code&gt;z-index&lt;/code&gt;. The higher the value of this property, the more forward the element will be.&lt;/p&gt;

&lt;p&gt;Let's go through the &lt;code&gt;position&lt;/code&gt; properties now:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Static&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the default of all elements and they will remain in their normal flow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Relative&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From what I understand, there are two things that are happening with &lt;code&gt;position:relative&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;a) Whatever element you set to &lt;code&gt;position:relative&lt;/code&gt; will now have access to the offset properties and you will be able to use them to move the elements around.&lt;/p&gt;

&lt;p&gt;b) Another exciting thing with &lt;code&gt;position:relative&lt;/code&gt; is that when you set it to a parent element, it creates a &lt;a href="https://alistapart.com/article/css-positioning-101/"&gt;coordinate system, a reference point for offset properties&lt;/a&gt;, for the child element. This means that if I use the offset property &lt;code&gt;left: 100px;&lt;/code&gt; on the child element, the reference point will be the parent element and not the document (the body). This child element will be pushed 100px from the left of the parent element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Absolute&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Setting the position to &lt;code&gt;absolute&lt;/code&gt; will remove the element from the normal flow and other elements will act as if it's not on the webpage. &lt;/p&gt;

&lt;p&gt;One key thing to remember is that an element that is positioned &lt;code&gt;absolute&lt;/code&gt; is relative to its parent element. To break this down, if you have the following:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.parent-element {&lt;br&gt;
   position: relative;&lt;br&gt;
   width: 200px;&lt;br&gt;
   height: 200px;&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;code&gt;.child-element {&lt;br&gt;
   position: absolute;&lt;br&gt;
   left: 100px;&lt;br&gt;
   width: 200px;&lt;br&gt;
   height: 200px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The child element will be positioned 100px from the left of the parent element. If the parent element does not have a position or if the position is &lt;code&gt;position: static&lt;/code&gt;, the child element will look out for the next element set to &lt;code&gt;relative&lt;/code&gt; until it reaches the document.&lt;/p&gt;

&lt;p&gt;You can see a little exercise I did on &lt;a href="https://codepen.io/Joelle8701/pen/LYYmbEJ?editors=1100"&gt;CodePen&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TNVyHqdZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/70hjib9v9glojd4fmu71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TNVyHqdZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/70hjib9v9glojd4fmu71.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixed&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is similar to &lt;code&gt;absolute &lt;/code&gt; but they are relative only to &lt;code&gt;html&lt;/code&gt; and will not react to any parent element. It takes the element out of the normal flow and you can use the offset properties to set where the element stays.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nUePiAKh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/61j0vuswg9whwoenitqi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nUePiAKh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/61j0vuswg9whwoenitqi.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sticky&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I had to do a bit more reading about that. The main thing to understand about this position is that it is based on the user's scroll position. It is a mix of &lt;code&gt;position:relative&lt;/code&gt; and &lt;code&gt;position: fixed&lt;/code&gt; depending on the scroll. You must also use the offset property to tell the element where to stick.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;position:sticky;&lt;br&gt;
top:0;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;At first the element is &lt;code&gt;relative&lt;/code&gt; meaning in the normal flow based on the HMTL placement. As the user scroll past that element, it goes to the top of the page and stay there. If the user scrolls the other way, it goes back to the usual HTML placement.&lt;/p&gt;

&lt;p&gt;That's it for today, the streak continues!&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Day 10 - Digging Deeper into CSS - Floats </title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Wed, 06 Nov 2019 03:09:14 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-10-digging-deeper-into-css-floats-309o</link>
      <guid>https://dev.to/jojonwanderlust/day-10-digging-deeper-into-css-floats-309o</guid>
      <description>&lt;p&gt;Today is Floats and even though I know the basics, I wanted to understand it better.&lt;/p&gt;

&lt;p&gt;I started digging into A List Apart &lt;a href="https://alistapart.com/article/css-floats-101/"&gt;article&lt;/a&gt; and wanted to write down my understanding of what I read. &lt;/p&gt;

&lt;p&gt;To understand Floats is to understand the normal flow of element and how the &lt;code&gt;float&lt;/code&gt; property changes the behavior of that element.&lt;/p&gt;

&lt;p&gt;For example we have block level elements such as &lt;code&gt;div&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt;. They always take the full width of the page. Once you apply the &lt;code&gt;float&lt;/code&gt; property, they start behaving like inline elements such as &lt;code&gt;a&lt;/code&gt; and &lt;code&gt;img&lt;/code&gt;. Quick reminder, inline elements only takes as much space as their content. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick Note About Floats&lt;/strong&gt;&lt;br&gt;
Once you use the &lt;code&gt;float&lt;/code&gt; property, it's almost like using the universal selector. This property will be applied to the rest of the elements. This means that other elements will be out of their normal flow as well whether you applied the &lt;code&gt;float&lt;/code&gt; property to them.&lt;/p&gt;

&lt;p&gt;The solution is to clear the float and you do so with the &lt;code&gt;clear&lt;/code&gt; property. There are five available values: &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;right&lt;/code&gt;, &lt;code&gt;both&lt;/code&gt;, &lt;code&gt;inherit&lt;/code&gt; and &lt;code&gt;none&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;See a good explanation and example &lt;a href="https://alistapart.com/article/css-floats-101/"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Placement of your Floated Elements in HTML&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One of the new things I learned was how the placement of your floated element in HTML can contribute to the float not working property and setting it out of the container you put it.&lt;/p&gt;

&lt;p&gt;If the floated elements is set before the non floated element, you run the risk of having the floated element get out of the container. &lt;/p&gt;

&lt;p&gt;This happens because of something called collapsing which essentially means that since the floated element is not in the normal, the parent element (the container) is behaving as if the element is not there.&lt;/p&gt;

&lt;p&gt;One solution to this is to add an inline CSS in the HTML to clear the float. That adds extra markup in the page and that is not the ideal fix.&lt;/p&gt;

&lt;p&gt;Another solution is to add an overflow to the parent element (the container) and set it to &lt;code&gt;overflow:hidden&lt;/code&gt;. As this property was not meant for this purpose, there are risks such as scrollbars and hidden items. You can find more about it &lt;a href="http://www.mezzoblue.com/archives/2005/03/03/clearance/"&gt;here&lt;/a&gt; and &lt;a href="https://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Last solution is to use the pseudo selector &lt;code&gt;::after&lt;/code&gt; with the parent container and adding the &lt;code&gt;clear&lt;/code&gt; property there.&lt;/p&gt;

&lt;p&gt;I starting to enjoy writing these, I learn so much better when I try to think of a way to explain what I just read or watched.&lt;/p&gt;

&lt;p&gt;The streak continues...&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Day 9 - Digging Deeper into CSS - The Box Model</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Tue, 05 Nov 2019 01:03:07 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-9-digging-deeper-into-css-box-model-15f7</link>
      <guid>https://dev.to/jojonwanderlust/day-9-digging-deeper-into-css-box-model-15f7</guid>
      <description>&lt;p&gt;I'm back. I'm still struggling with keeping a good pace and for now I think I'm gonna hold myself to 2 hours of studying minimum on weekdays and 4 hours on weekends. Outside of those hours, I will still be reading different blogs and watch videos. I have weeks where I spend a lot of hours outside of work studying and coding then I crash. I crash because I am not sleeping regularly and for a better learning experience.&lt;/p&gt;

&lt;p&gt;And with that, I am hoping this change is going to help me be consistent.&lt;/p&gt;

&lt;p&gt;So I have taken a few HTML and CSS courses and followed some projects and even made my own. While I have learned a lot I want to get deeper into CSS and for the next few days, that's what I will be doing. &lt;/p&gt;

&lt;p&gt;Today, it's all about the Box Model and the things that I missed:&lt;/p&gt;

&lt;p&gt;The Box Model is a concept that states that &lt;a href="https://learn.shayhowe.com/html-css/opening-the-box-model/"&gt;every element on a page is a rectangular box and may have width, height, padding, borders, and margins.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sizing Inline Elements&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Inline Elements are elements that are displayed inline and takes the width of the content they hold. They do not take the full width of the page unlike block elements. As such, they do not accept properties such as weight and height. They also do not accept the vertical margin &lt;code&gt;top&lt;/code&gt; and &lt;code&gt;bottom&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I wanted to know if there is a way we can size an inline element using CSS and I found 2 solutions:&lt;/p&gt;

&lt;p&gt;1- Setting the &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt; in HTML either directly or using inline CSS.&lt;/p&gt;

&lt;p&gt;a) HTML&lt;br&gt;
&lt;code&gt; img src="sample.jpg" width="100px" height="100px" &lt;/code&gt;&lt;/p&gt;

&lt;p&gt;b) Inline CSS&lt;br&gt;
&lt;code&gt; img src="sample.jpg" style="width:100px;height:100px;"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;2- Setting the display of the elements as &lt;code&gt;block&lt;/code&gt; or &lt;code&gt;inline-block&lt;/code&gt; in CSS.&lt;/p&gt;

&lt;p&gt;a) &lt;code&gt;block&lt;/code&gt; will sit in a single line and you might need to tweak more if you want to other elements on the same line.&lt;/p&gt;

&lt;p&gt;b) &lt;code&gt;inline-block&lt;/code&gt; will sit multiple elements on the same line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using Border-Radius&lt;/strong&gt;&lt;br&gt;
I may have seen more but the only time I used &lt;code&gt;border-radius&lt;/code&gt;, it was on all corders to slightly round them or to make a circle.&lt;/p&gt;

&lt;p&gt;The shorthand property for &lt;code&gt;border-radius&lt;/code&gt; goes &lt;code&gt;top-left / bottom-right&lt;/code&gt; and &lt;code&gt;top-right / bottom left&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To see how this worked, I hopped on code pen and played and saw how I could use that property to make shapes.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Day 8 - Project - Finishing Intuit Sign Up Page</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Fri, 25 Oct 2019 00:36:07 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-8-intuit-sign-up-page-final-4gpb</link>
      <guid>https://dev.to/jojonwanderlust/day-8-intuit-sign-up-page-final-4gpb</guid>
      <description>&lt;p&gt;I completed the Intuit sign up page clone.&lt;/p&gt;

&lt;p&gt;Going into it was a bit easier this time around for a few reasons:&lt;/p&gt;

&lt;p&gt;1- I had just completed a project where I cloned a YouTube page. I got a bit more confident since this was the first project that I completed entirely on my own. The previous projects were with the course I took and the ones I attempted on my own were loosely based on the ones from the course.&lt;/p&gt;

&lt;p&gt;2- This time, I planned the project. I drew the layout on paper. This forced me to think about the elements interact with each other. I still had to change the layout a bit. The area that has the CAPTCHA details has a background color that spans the width of the container but the rest of the elements in that section are in a container with padding. To solve this issue, I split that section from the other container so that the &lt;code&gt;main&lt;/code&gt; tags had two children elements instead of one. The first child had the padding and the second had the background color&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fgf7c5my9zh27hyrr81lk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fgf7c5my9zh27hyrr81lk.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am happy with the project and as I practice more, I am thinking of writing better and more efficient code instead of anything that works.&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Day 7 -Project- Intuit Sign Up Page - Part 1</title>
      <dc:creator>Joëlle</dc:creator>
      <pubDate>Tue, 22 Oct 2019 04:09:51 +0000</pubDate>
      <link>https://dev.to/jojonwanderlust/day-7-intuit-sign-up-page-part-1-478j</link>
      <guid>https://dev.to/jojonwanderlust/day-7-intuit-sign-up-page-part-1-478j</guid>
      <description>&lt;p&gt;Between work, life and studying, I have been running on empty. &lt;/p&gt;

&lt;p&gt;My goal as I am going through this journey is to code/ learn everyday. Some days are more intense than others but I pay attention to when my brain can't no longer handle it.&lt;/p&gt;

&lt;p&gt;My next project for HTML/CSS is to recreate the Intuit Sign Up form. This time around, I designed the skeleton of the project on paper. I am finding that it is way easier to actually code if you have planned your layout and gathered images or anything else you may need.&lt;/p&gt;

&lt;p&gt;Here is a look at what I planned.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pP0OPfZz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/cb5rcymfhz4blfy6gt9z.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pP0OPfZz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/cb5rcymfhz4blfy6gt9z.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At this time I have not completed it but here is a preview:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9umDNZSM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4zj4pmz1mqs685f06tbw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9umDNZSM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4zj4pmz1mqs685f06tbw.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I will complete this tomorrow. As I am learning to change career, I have to remind myself to not race to complete something but rather take the time to understand it and only then I will move on.&lt;/p&gt;

&lt;p&gt;On to a new day!&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>html</category>
      <category>css</category>
    </item>
  </channel>
</rss>
