<?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: Mukul Vashishth</title>
    <description>The latest articles on DEV Community by Mukul Vashishth (@mukul8).</description>
    <link>https://dev.to/mukul8</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%2F669253%2F2b3d3940-9314-4222-b2da-87c0e6d5b4da.jpg</url>
      <title>DEV Community: Mukul Vashishth</title>
      <link>https://dev.to/mukul8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mukul8"/>
    <language>en</language>
    <item>
      <title>All About CSS Box Model</title>
      <dc:creator>Mukul Vashishth</dc:creator>
      <pubDate>Tue, 12 Jul 2022 09:52:53 +0000</pubDate>
      <link>https://dev.to/mukul8/all-about-css-box-model-1o11</link>
      <guid>https://dev.to/mukul8/all-about-css-box-model-1o11</guid>
      <description>&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt; has many advanced concepts which can be daunting for a beginner but understanding them becomes a little bit easier if the basics are clear in your head and Box Model in CSS is an important concept when working with design and layout of webpages.&lt;br&gt;
In this article I will be talking about the components involved in box model and few pointers to keep in mind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;'Box Model' represents the container that wraps around every HTML element. All the elements are essentially rendered as rectangular boxes by the browser rendering engine . For styling purposes , it is necessary to understand the four parts(areas) that makes up the Box Model - margins , borders , padding and content area.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hSYZaRBJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4amvvl9ra7h2uey83nzz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hSYZaRBJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4amvvl9ra7h2uey83nzz.png" alt="Parts of Box Model" width="368" height="208"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let us now learn more about these 4 areas in a little detail.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Content Area
&lt;/h3&gt;

&lt;p&gt;This area contains the actual content of the element such as text , image. &lt;/p&gt;

&lt;h3&gt;
  
  
  2. Padding area
&lt;/h3&gt;

&lt;p&gt;This area is the space between the 'real' content and borders around the element.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Border area
&lt;/h3&gt;

&lt;p&gt;A border is used to enclose the content and padding of the element. &lt;/p&gt;

&lt;h3&gt;
  
  
  4. Margin area
&lt;/h3&gt;

&lt;p&gt;Margin is generally used to clear out the area outside the border . It gives space between elements ouside border.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;The Box Model can be accessed via chrome dev tools.&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;To learn more about css check out my personal favorite resource &lt;a href="https://www.w3schools.com/css/default.asp"&gt;w3schools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thankyou for reading . Happy Learning!&lt;/p&gt;

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