<?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: Harish Singh.</title>
    <description>The latest articles on DEV Community by Harish Singh. (@harishbisht29).</description>
    <link>https://dev.to/harishbisht29</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%2F184746%2F715bfdac-d9e4-48c0-a375-a757eaf86a1a.jpeg</url>
      <title>DEV Community: Harish Singh.</title>
      <link>https://dev.to/harishbisht29</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harishbisht29"/>
    <language>en</language>
    <item>
      <title>Activate virtualenv automatically.</title>
      <dc:creator>Harish Singh.</dc:creator>
      <pubDate>Wed, 20 May 2020 09:23:04 +0000</pubDate>
      <link>https://dev.to/harishbisht29/activate-virtualenv-automatically-3kj4</link>
      <guid>https://dev.to/harishbisht29/activate-virtualenv-automatically-3kj4</guid>
      <description>&lt;p&gt;Django&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
    </item>
    <item>
      <title>CSS Box-Model</title>
      <dc:creator>Harish Singh.</dc:creator>
      <pubDate>Tue, 10 Dec 2019 18:58:36 +0000</pubDate>
      <link>https://dev.to/harishbisht29/css-box-model-1ejd</link>
      <guid>https://dev.to/harishbisht29/css-box-model-1ejd</guid>
      <description>&lt;p&gt;"Everything in CSS is a Box" &lt;br&gt;
Any element in a webpage is a box. Go ahead and inspect any html element from a webpage, go to developer tools, and you will find a graphical represantion of selected box.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vg1-4m7f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6p4pnnovil8cm02g72r4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vg1-4m7f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6p4pnnovil8cm02g72r4.png" alt="Alt Text"&gt;&lt;/a&gt; &lt;br&gt;
When I say box it means that it has content, padding, border and margin.&lt;/p&gt;

&lt;p&gt;A box is made up of 4 properties.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Content&lt;/li&gt;
&lt;li&gt;Padding&lt;/li&gt;
&lt;li&gt;Border&lt;/li&gt;
&lt;li&gt;Margin.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Content can be a text or other element(nested box).&lt;br&gt;
Padding is the region between content and box border.&lt;br&gt;
Border is element outline.&lt;br&gt;
Margin is region outside of element border. Technically margins are not part of element becuase they are out of elements border.&lt;/p&gt;

&lt;p&gt;If all the things are box then how do  have so many different elements in a webpage, The reason is each box has diffent properties for content, padding, border and margin. So html elements like paragraphs, Heading1, Buttons etc. are nothing but box elements with some default box properties.&lt;/p&gt;

&lt;p&gt;A heading element is a simple box element with high font-size property and some margins. Look at below h1 properties.&lt;/p&gt;

&lt;p&gt;h1 {&lt;br&gt;
    display: block;&lt;br&gt;
    font-size: 2em;&lt;br&gt;
    margin-block-start: 0.67em;&lt;br&gt;
    margin-block-end: 0.67em;&lt;br&gt;
    margin-inline-start: 0px;&lt;br&gt;
    margin-inline-end: 0px;&lt;br&gt;
    font-weight: bold;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;You can check below pen to see how to create a custom html's default button element&lt;br&gt;
&lt;a href="https://codepen.io/iamharish/pen/vYEGyNv"&gt;https://codepen.io/iamharish/pen/vYEGyNv&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Please watch below video for better understading.&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=rIO5326FgPE"&gt;https://www.youtube.com/watch?v=rIO5326FgPE&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>layout</category>
      <category>frontend</category>
      <category>design</category>
    </item>
    <item>
      <title>My first post.</title>
      <dc:creator>Harish Singh.</dc:creator>
      <pubDate>Tue, 20 Aug 2019 09:26:39 +0000</pubDate>
      <link>https://dev.to/harishbisht29/my-first-post-49cl</link>
      <guid>https://dev.to/harishbisht29/my-first-post-49cl</guid>
      <description>&lt;p&gt;Hi I stumbled upon dev.to and instantly fell for it. It is so simple and yet beautiful.&lt;/p&gt;

</description>
      <category>firstpostwelcomme</category>
    </item>
  </channel>
</rss>
