<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=CSS%2FC2%2FBox-Model-in-CSS%2FEnglish</id>
		<title>CSS/C2/Box-Model-in-CSS/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=CSS%2FC2%2FBox-Model-in-CSS%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;action=history"/>
		<updated>2026-04-30T10:16:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;diff=54036&amp;oldid=prev</id>
		<title>Nancyvarkey at 04:59, 15 October 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;diff=54036&amp;oldid=prev"/>
				<updated>2020-10-15T04:59:38Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;amp;diff=54036&amp;amp;oldid=54026&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;diff=54026&amp;oldid=prev</id>
		<title>Nehasolanki at 06:57, 14 October 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;diff=54026&amp;oldid=prev"/>
				<updated>2020-10-14T06:57:49Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:57, 14 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 699:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 699:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide: Assignment&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide: Assignment&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| As an assignment&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| As an assignment&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Open the file '''styles.css''' which you have created earlier.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Open the file '''styles.css''' which you have created earlier.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|| Slide: Assignment&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;||&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Set the following '''styles''' for the '''div tag'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Set the following '''styles''' for the '''div tag'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''Solid border''' for the '''left '''and '''right '''side&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&lt;/ins&gt;* '''Solid border''' for the '''left '''and '''right '''side&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''Dotted border''' for the '''bottom'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&lt;/ins&gt;* '''Dotted border''' for the '''bottom&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;** No '''border '''for the '''top'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;** '''Margin '''space for all the sides as '''10px'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;** '''Padding '''space for the '''left '''and '''right '''side as '''15px&lt;/ins&gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide: Assignment&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide: Assignment&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* No '''border '''for the '''top'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* '''Margin '''space for all the sides as '''10px'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* '''Padding '''space for the '''left '''and '''right '''side as '''15px'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Link the '''styles.css''' file to '''webpage.html''' file&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Link the '''styles.css''' file to '''webpage.html''' file&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Observe the output&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Observe the output&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;diff=54007&amp;oldid=prev</id>
		<title>Nehasolanki: Created page with &quot;'''Title of the script: '''Box Model in CSS  '''Author:''' Praveen S  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Keywor...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Box-Model-in-CSS/English&amp;diff=54007&amp;oldid=prev"/>
				<updated>2020-10-09T13:26:01Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the script: &amp;#039;&amp;#039;&amp;#039;Box Model in CSS  &amp;#039;&amp;#039;&amp;#039;Author:&amp;#039;&amp;#039;&amp;#039; Praveen S  &amp;#039;&amp;#039;&amp;#039;Domain Reviewer: &amp;#039;&amp;#039;&amp;#039;Ankita Maske, Om Prakash Soni  &amp;#039;&amp;#039;&amp;#039;Novice Reviewer:&amp;#039;&amp;#039;&amp;#039; Madhuri Ganapathi  &amp;#039;&amp;#039;&amp;#039;Keywor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of the script: '''Box Model in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Praveen S&lt;br /&gt;
&lt;br /&gt;
'''Domain Reviewer: '''Ankita Maske, Om Prakash Soni&lt;br /&gt;
&lt;br /&gt;
'''Novice Reviewer:''' Madhuri Ganapathi&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''CSS, HTML, Web Page, Web Design, Web Technology, Video Tutorial, Spoken Tutorial, CSS Property, CSS Box Model, CSS Border, CSS Margin, CSS Padding&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
||'''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Title&lt;br /&gt;
|| Welcome to the spoken tutorial on “'''Box Model''' in '''CSS'''”.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial we will learn about:&lt;br /&gt;
&lt;br /&gt;
* '''The Box Model'''&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Box sizing'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: &lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
&lt;br /&gt;
|| This tutorial is recorded using &lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor'''&lt;br /&gt;
* '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other '''editor''' or '''browser''' of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Prerequisite &lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|| To practise this tutorial, you should have basic knowledge of '''HTML''' and '''CSS'''.&lt;br /&gt;
&lt;br /&gt;
If not, please go through the '''HTML''' and '''CSS '''tutorials on this website.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Code Files&lt;br /&gt;
|| The files used in this tutorial are available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract them.&lt;br /&gt;
&lt;br /&gt;
Make a copy and then use them while practising.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: CSS Box Model&lt;br /&gt;
|| Let us learn to style an '''element''' in '''CSS.'''&lt;br /&gt;
&lt;br /&gt;
To style an '''element''', each '''element''' will be considered in the form of a '''box '''with some '''layers'''.&lt;br /&gt;
&lt;br /&gt;
The '''layers''' are:&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Content'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: CSS Box Model&lt;br /&gt;
&lt;br /&gt;
Image of CSS Box Model&lt;br /&gt;
|| This is how the '''CSS Box model''' looks like.&lt;br /&gt;
&lt;br /&gt;
Each '''layer''' has some properties of its own.&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border&lt;br /&gt;
|| The '''border '''layer has the following properties&lt;br /&gt;
&lt;br /&gt;
* '''Style'''&lt;br /&gt;
* '''Width'''&lt;br /&gt;
* '''Color'''&lt;br /&gt;
* '''Individual Sides'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align: center&amp;quot;; cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
|'''border-style'''&lt;br /&gt;
|'''border-bottom-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-width'''&lt;br /&gt;
|'''border-right-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-color'''&lt;br /&gt;
|'''border-left-style'''&lt;br /&gt;
|-&lt;br /&gt;
|'''border-top-style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|| These are how the '''border '''properties are defined.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Open '''my-css '''folder&lt;br /&gt;
|| Go to the practice folder '''my-css.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Open mystyle.css&lt;br /&gt;
|| Let’s open the file '''mystyle.css''' in a text editor.&lt;br /&gt;
&lt;br /&gt;
I have already opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen; }&lt;br /&gt;
|| We have set the '''style''' for a '''div tag'''.&lt;br /&gt;
&lt;br /&gt;
Let us use the same to explain the '''CSS Box Model'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: border-style: solid;&lt;br /&gt;
|| To set the '''border '''I will add some properties.&lt;br /&gt;
&lt;br /&gt;
Inside the '''div tag, '''next to''' background-color '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-style: solid;&lt;br /&gt;
|| I want a solid '''border''', so in the value I have mentioned '''solid'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Open Mypage.html in firefox&lt;br /&gt;
|| Switch to the '''my-css '''folder.&lt;br /&gt;
&lt;br /&gt;
Open the file '''Mypage.html''' in a '''web browser'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the border&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
We see a black colored solid '''border '''around the '''div''' section.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Border Styles&lt;br /&gt;
&lt;br /&gt;
'''dotted solid dashed'''&lt;br /&gt;
&lt;br /&gt;
'''double groove ridge'''&lt;br /&gt;
&lt;br /&gt;
'''inset outset none hidden'''&lt;br /&gt;
|| These are all the available '''border styles '''that can be used.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
|| Instead of '''solid''', let me change it to '''dotted.'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''solid border''' is changed to a '''dotted border.'''&lt;br /&gt;
&lt;br /&gt;
Explore the other different '''border styles''' on your own later.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update&lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px; border-color: red; }&lt;br /&gt;
|| Update the '''div style''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-width: 7px; border-color: red;&lt;br /&gt;
|| I have set the '''border width '''as''' 7 pixels''' and changed the '''border color''' to '''red'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [Firefox] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now we have a '''dotted red border''' with the '''width '''as''' 7 pixels.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px;&lt;br /&gt;
&lt;br /&gt;
border-color: red;&lt;br /&gt;
|| To '''style''' the '''div border''' so far we have used 3 lines of code.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Delete:&lt;br /&gt;
&lt;br /&gt;
border-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-width: 7px;&lt;br /&gt;
&lt;br /&gt;
border-color: red;&lt;br /&gt;
|| In '''CSS''' we have a property called '''shorthand '''to simplify this.&lt;br /&gt;
&lt;br /&gt;
Let us understand this with an example.&lt;br /&gt;
&lt;br /&gt;
First, delete these 3 lines.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
|| Now, next to the '''background-color''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
|| The way to write the '''shorthand '''property is '''width, style''' and '''color.'''&lt;br /&gt;
&lt;br /&gt;
It is mandatory to specify the '''border’s '''style, in the '''shorthand '''property. &lt;br /&gt;
&lt;br /&gt;
Otherwise the property will not work.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| There’s no change in the output.&lt;br /&gt;
&lt;br /&gt;
This indicates that our '''shorthand '''method worked.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| In '''CSS '''we can set different '''border styles '''for each side.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| Inside the '''div style''', next to '''border '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| Here I have set the '''border style '''for the '''top '''and '''bottom '''as '''solid, '''and for '''right''' and '''left '''as '''dotted'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''border styles '''for each side have changed as per the given input.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight &lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| To '''style''' the '''div border''' we have used 4 lines of code.&lt;br /&gt;
&lt;br /&gt;
The same can be written in a single line.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Delete &lt;br /&gt;
&lt;br /&gt;
border-top-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-right-style: dotted;&lt;br /&gt;
&lt;br /&gt;
border-bottom-style: solid;&lt;br /&gt;
&lt;br /&gt;
border-left-style: dotted;&lt;br /&gt;
|| First, delete these 4 lines.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
|| Now, next to the '''border''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
|| Here I have set the '''border style type''' without mentioning the sides.&lt;br /&gt;
&lt;br /&gt;
The order according to '''CSS '''is - '''top, right, bottom, left'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Again, there is no change in the output.&lt;br /&gt;
&lt;br /&gt;
Which means our simplified code worked well.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Like '''border style''', we can also set different '''width, size''' and '''color '''for each side.&lt;br /&gt;
&lt;br /&gt;
You may try these on your own, later. &lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| The next '''layer''' which we are going to see is '''margin'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: margin: 1cm;&lt;br /&gt;
|| Next to the '''border style '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox]&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
A '''1 cm''' of '''margin '''space is set to the '''div '''section from all the four sides.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Point to borders.&lt;br /&gt;
|| We can set '''margins '''for each side either individually or in a single line. &lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| Inside the '''div tag''', update the '''margin '''property as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| Here I have set the '''margin '''without mentioning the sides.&lt;br /&gt;
&lt;br /&gt;
The order according to '''CSS '''is - '''top, right, bottom, left'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight: &lt;br /&gt;
&lt;br /&gt;
margin: 1cm 2cm 3cm 4cm;&lt;br /&gt;
|| What if we wish to inherit the '''margin '''space based on the '''parent element'''?&lt;br /&gt;
&lt;br /&gt;
To do that, instead of values, we have to type '''inherit'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
p { width: 75%; margin: inherit; }&lt;br /&gt;
|| Update the '''style''' properties of the '''paragraph tag''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The '''Paragraph '''comes under the '''div '''section.&lt;br /&gt;
&lt;br /&gt;
So, the '''margin '''space for the '''paragraph tag '''is '''inherited''' from the '''div tag'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] &lt;br /&gt;
&lt;br /&gt;
Delete margin: inherit;&lt;br /&gt;
|| Update the '''style''' properties of the '''paragraph tag''' as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Padding&lt;br /&gt;
|| The next '''layer''' which we are going to see in the '''CSS Box model, '''is '''Padding.'''&lt;br /&gt;
&lt;br /&gt;
'''Padding '''is a concept to set some space between the '''border '''and the '''content'''.&lt;br /&gt;
&lt;br /&gt;
Let us learn this through some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type: padding: 15px;&lt;br /&gt;
|| Let us set the '''padding '''space as 1'''5px.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''div style''' section, next to the '''margin '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
/*margin: 1cm 2cm 3cm 4cm;*/&lt;br /&gt;
|| Let us '''comment''' the '''margin '''property to see the '''padding '''difference clearly.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the browser and refresh the page&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
A '''padding '''space of''' 15 pixels''' is set to the content inside the '''div '''section.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Like '''border '''and '''margin '''we can also set different '''padding '''sizes to all the four sides.&lt;br /&gt;
&lt;br /&gt;
These can be set either separately or all together.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Note&lt;br /&gt;
|| &lt;br /&gt;
* '''Elements''' of '''HTML''' come with some default '''margin '''and '''padding'''. &lt;br /&gt;
* Not setting these properties doesn't mean it will be absent.&lt;br /&gt;
&lt;br /&gt;
You can try this on your own later.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Width Calculation&lt;br /&gt;
&lt;br /&gt;
Image : Width&lt;br /&gt;
|| In '''CSS''', total width of an '''element''' is calculated as:&lt;br /&gt;
&lt;br /&gt;
'''Total width = width + border + padding'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide : Height Calculation&lt;br /&gt;
&lt;br /&gt;
Image : Height&lt;br /&gt;
|| And total height of an '''element''' is calculated as:&lt;br /&gt;
&lt;br /&gt;
'''Total height = height + border + padding'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Box Sizing&lt;br /&gt;
|| '''Box Sizing property''' &lt;br /&gt;
&lt;br /&gt;
* It is used to determine how the '''width''' &amp;amp; '''height''' of an '''element''' is calculated.&lt;br /&gt;
* Its values are:&lt;br /&gt;
** '''content-box'''&lt;br /&gt;
** '''border-box'''&lt;br /&gt;
&lt;br /&gt;
Let us understand this with some examples.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: content-box&lt;br /&gt;
|| '''content-box '''&lt;br /&gt;
&lt;br /&gt;
* It is the default '''CSS Box Model'''.&lt;br /&gt;
* The '''width''' &amp;amp; '''height''' assigned to an '''element''' is applied only to the '''content area'''.&lt;br /&gt;
* So in the total or final '''width''' and '''height'''&amp;lt;nowiki&amp;gt;; &amp;lt;/nowiki&amp;gt;'''padding''' and '''border''' are added.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: border-box&lt;br /&gt;
|| '''border-box'''&lt;br /&gt;
&lt;br /&gt;
* '''Padding''' and '''border''' assigned to an '''element '''is adjusted in the '''width''' &amp;amp; '''height''' property.&lt;br /&gt;
* And the '''content area''' shrinks to accommodate them.&lt;br /&gt;
* In the total or final '''width '''and''' height;''' '''padding''' and '''border''' are not added.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight box&lt;br /&gt;
|| Here, the '''width '''of the '''box''' = '''width '''+ '''padding '''+ '''border'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type: &lt;br /&gt;
&lt;br /&gt;
box-sizing: border-box;&lt;br /&gt;
|| Inside the '''div style''' section, next to the '''padding '''property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
The text has come out of the '''box''' as its '''width''' and '''height''' are reduced.&lt;br /&gt;
&lt;br /&gt;
That is, the box size shrunk to accommodate the '''50% width.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Let's do some more changes.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete: height: 2cm;&lt;br /&gt;
|| Inside the '''div style''' section, delete the code as shown.&lt;br /&gt;
&lt;br /&gt;
By doing this, we are not restricting the '''height'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: padding: 30px;&lt;br /&gt;
|| Now we will change the '''padding '''from '''15px''' to '''30px'''.&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now you can see the '''width''' of the''' '''box has not changed.&lt;br /&gt;
&lt;br /&gt;
This is because of '''box sizing''' property.&lt;br /&gt;
&lt;br /&gt;
A '''padding '''of '''30px '''is added and the '''content''' inside the '''box''' is adjusted. &lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update: padding: 50px;&lt;br /&gt;
&lt;br /&gt;
Switch to firefox and refresh the page&lt;br /&gt;
|| Try changing the '''padding '''to '''50px''' and observe the output.&lt;br /&gt;
&lt;br /&gt;
You can see the width of the box has not changed.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update: border: 17px dotted red;&lt;br /&gt;
|| Now change the border from '''7px '''to '''17px'''.&lt;br /&gt;
&lt;br /&gt;
Update the '''border''' property as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Still the '''width '''of the '''box''' has not changed.&lt;br /&gt;
&lt;br /&gt;
This is because of the '''box sizing''' property.&lt;br /&gt;
&lt;br /&gt;
Only the size of the '''border '''has increased.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:box-sizing: content-box;&lt;br /&gt;
|| Inside the '''div style''' section, update the '''box sizing''' property as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the change.&lt;br /&gt;
&lt;br /&gt;
Now we can see the '''width''' of the''' box''' has increased.&lt;br /&gt;
&lt;br /&gt;
As we have added the '''padding '''and '''border, '''the width of the '''box''' has increased.&lt;br /&gt;
&lt;br /&gt;
In this way, we can use '''box-sizing''' property in '''CSS'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Now I will update the '''div '''section for the required properties on this page.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
|| Switch to '''mystyle.css''' file in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
div { width: 50%; height: 2cm;&lt;br /&gt;
&lt;br /&gt;
background-color: lightgreen;&lt;br /&gt;
&lt;br /&gt;
border: 7px dotted red;&lt;br /&gt;
&lt;br /&gt;
border-style: solid dotted solid dotted;&lt;br /&gt;
&lt;br /&gt;
/*margin: 1cm 2cm 3cm 4cm;*/&lt;br /&gt;
&lt;br /&gt;
padding: 15px; }&lt;br /&gt;
|| Update the '''div''' section as shown here.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl + S&lt;br /&gt;
|| Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to firefox&lt;br /&gt;
|| Switch to the '''browser''' and refresh the page.&lt;br /&gt;
|-&lt;br /&gt;
|| [firefox] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
This is our required page.&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| With this we have come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarize. &lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Summary &lt;br /&gt;
|| In this tutorial, we have learnt about&lt;br /&gt;
&lt;br /&gt;
* '''The Box Model'''&lt;br /&gt;
* '''Border'''&lt;br /&gt;
* '''Margin'''&lt;br /&gt;
* '''Padding'''&lt;br /&gt;
* '''Box sizing'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| As an assignment&lt;br /&gt;
&lt;br /&gt;
* Open the file '''styles.css''' which you have created earlier.&lt;br /&gt;
* Set the following '''styles''' for the '''div tag'''&lt;br /&gt;
* '''Solid border''' for the '''left '''and '''right '''side&lt;br /&gt;
* '''Dotted border''' for the '''bottom'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| &lt;br /&gt;
* No '''border '''for the '''top'''&lt;br /&gt;
* '''Margin '''space for all the sides as '''10px'''&lt;br /&gt;
* '''Padding '''space for the '''left '''and '''right '''side as '''15px'''&lt;br /&gt;
* Link the '''styles.css''' file to '''webpage.html''' file&lt;br /&gt;
* Observe the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
About Spoken Tutorial project&lt;br /&gt;
|| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Spoken Tutorial Workshops&lt;br /&gt;
|| The Spoken Tutorial Project team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Forum&lt;br /&gt;
|| Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Acknowledgement&lt;br /&gt;
|| Spoken Tutorial project is funded by Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Thanks&lt;br /&gt;
|| The script for this tutorial is contributed by Praveen&lt;br /&gt;
&lt;br /&gt;
and this is Madhuri Ganapathi from IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nehasolanki</name></author>	</entry>

	</feed>