<?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%2FC3%2FFloat-and-Overflow-in-CSS%2FEnglish</id>
		<title>CSS/C3/Float-and-Overflow-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%2FC3%2FFloat-and-Overflow-in-CSS%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C3/Float-and-Overflow-in-CSS/English&amp;action=history"/>
		<updated>2026-04-08T12:38:16Z</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/C3/Float-and-Overflow-in-CSS/English&amp;diff=54402&amp;oldid=prev</id>
		<title>Pravin1389 at 11:31, 13 November 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C3/Float-and-Overflow-in-CSS/English&amp;diff=54402&amp;oldid=prev"/>
				<updated>2020-11-13T11:31:52Z</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 11:31, 13 November 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 184:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 184:&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;Highlight 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;Highlight the output&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; | If I set the '''float''' value to '''right''', then the image will move to the right side'''.'''&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; | If I set the '''float''' value to '''right''', then the image will move to the 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;&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;−&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;The '''text''' will wrap around it.&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;|-&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;|&amp;#160; | Switch to mystyle.css&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; | Switch to mystyle.css&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 446:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 444:&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;Highlight the paragraph&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;Highlight the paragraph&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;|&amp;#160; | &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Observe the output.&lt;/del&gt;&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;|&amp;#160; | The text''' '''has overflowed outside the border.&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;&amp;#160;&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;/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;The text''' '''has overflowed outside the border.&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;/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;|-&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;|&amp;#160; | [Firefox] Ctrl + R&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; | [Firefox] Ctrl + R&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pravin1389</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C3/Float-and-Overflow-in-CSS/English&amp;diff=54387&amp;oldid=prev</id>
		<title>Nehasolanki: Created page with &quot;'''Title of the script: '''Float and Overflow in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer: '''Madhuri Ganapath...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C3/Float-and-Overflow-in-CSS/English&amp;diff=54387&amp;oldid=prev"/>
				<updated>2020-11-11T12:19: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;Float and Overflow in CSS  &amp;#039;&amp;#039;&amp;#039;Author:&amp;#039;&amp;#039;&amp;#039; Neha Solanki  &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 Ganapath...&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: '''Float and Overflow in CSS&lt;br /&gt;
&lt;br /&gt;
'''Author:''' Neha Solanki&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 Float, CSS Clear, CSS Overflow&lt;br /&gt;
&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 “'''Float and Overflow 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;
* '''Float''', '''Clear '''and '''Overflow '''properties of an '''element '''in''' CSS'''&lt;br /&gt;
* Use these properties to achieve the desired output.&lt;br /&gt;
&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;
&lt;br /&gt;
* '''Ubuntu Linux OS v 18.04 '''&lt;br /&gt;
* '''CSS3'''&lt;br /&gt;
* '''HTML5'''&lt;br /&gt;
* '''gedit Text Editor''' and&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 know to use '''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: Float Property&lt;br /&gt;
|  | '''Float Property'''&lt;br /&gt;
* It''' '''is used to set the horizontal positioning of an '''element '''inside the parent '''block'''.&lt;br /&gt;
* It allows the '''text '''to wrap around an '''element.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Float Property Value&lt;br /&gt;
|  | The values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''left''': this positions the '''element''' to the '''left '''side of the parent '''block'''&lt;br /&gt;
* '''right''': this positions the '''element''' to the '''right '''side of the parent '''block'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Float Property Value&lt;br /&gt;
|  |&lt;br /&gt;
* '''none '''(default): does not position the '''element'''&lt;br /&gt;
* '''initial: '''sets the '''float''' property to its default value&lt;br /&gt;
* '''inherit''' : inherits the position of its parent '''element'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these through examples.&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;
|  | Point to Mypage.html in my-css folder&lt;br /&gt;
|  | For this demonstration, I’m using the file '''Mypage.html'''.&lt;br /&gt;
&lt;br /&gt;
The same is available in the '''Code files''' link for practice.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open Mypage.html in gedit&lt;br /&gt;
|  | Open the file '''Mypage.html''' in the '''text editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Narration:&lt;br /&gt;
|  | To observe the '''float''' property, let's add an image.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src= &amp;quot;veg.png&amp;quot;&amp;gt;&lt;br /&gt;
|  | Add the '''img tag''' in the''' div block.'''&lt;br /&gt;
&lt;br /&gt;
Between the '''div tag''' and '''p tag''', type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - Mypage.html]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
veg.png&lt;br /&gt;
|  | '''veg.png''' image is available in the '''Code Files''' link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and keep it in the folder where you have saved your code files.&lt;br /&gt;
|-&lt;br /&gt;
|  | Press Ctrl + S&lt;br /&gt;
|  | Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to '''my-css folder'''&lt;br /&gt;
|  | Switch to the “'''my-css'''” folder.&lt;br /&gt;
|-&lt;br /&gt;
|  | Open mystyle.css&lt;br /&gt;
|  | Now open the file '''mystyle.css''', in any''' text editor.'''&lt;br /&gt;
&lt;br /&gt;
I have opened it in the '''gedit Text Editor.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type-&lt;br /&gt;
&lt;br /&gt;
img {&lt;br /&gt;
&lt;br /&gt;
width: 100px;&lt;br /&gt;
&lt;br /&gt;
height: 90px;}&lt;br /&gt;
|  | Let us set '''image '''properties '''width '''to 100''' '''pixels''' '''and''' height '''to 90 pixels'''.'''&lt;br /&gt;
&lt;br /&gt;
Next to the''' div tag, '''type the code as shown.&lt;br /&gt;
&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;
Now open the file '''Mypage.html''' in a '''web browser'''.&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 '''image '''is added in the '''div block.'''&lt;br /&gt;
&lt;br /&gt;
The '''text '''has floated outside the '''block''' due to its restricted size.&lt;br /&gt;
&lt;br /&gt;
To arrange the '''image '''and '''text '''inside the '''block''', we will use '''float '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
float: left;&lt;br /&gt;
|  | Now I will set the '''float property value '''to''' left, '''for the '''image'''.&lt;br /&gt;
&lt;br /&gt;
In the '''img tag''', next to the '''height''' 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 output.&lt;br /&gt;
&lt;br /&gt;
Now the '''image''' is set to the left side and the '''text''' is wrapped around it.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit] highlight:&lt;br /&gt;
&lt;br /&gt;
float: right;&lt;br /&gt;
&lt;br /&gt;
[Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | If I set the '''float''' value to '''right''', then the image will move to the right side'''.'''&lt;br /&gt;
&lt;br /&gt;
The '''text''' will wrap around it.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Come back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
float: inherit;&lt;br /&gt;
|  | Now I will set the '''float property value '''to''' inherit '''for''' '''this '''image'''.&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] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''image''' and '''text '''are set to the previous '''style'''.&lt;br /&gt;
&lt;br /&gt;
This is because the '''image inherits''' the property of the '''div block.'''&lt;br /&gt;
&lt;br /&gt;
Observe that the '''div block '''does not have '''float '''property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
float: right;&lt;br /&gt;
|  | Now I will set the '''float '''property value''' '''for the '''div block.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' div tag''', 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] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''block '''has shifted to the right side.&lt;br /&gt;
&lt;br /&gt;
The '''image '''inside it also shifted to the right because it '''inherits '''the '''div block''' property.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
float: left;&lt;br /&gt;
|  | Now I will set the '''float '''property value''' '''to '''left '''for the '''image.'''&lt;br /&gt;
&lt;br /&gt;
Inside the''' img tag''', 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] &lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Though the '''block '''was set to the right, the '''image '''has shifted to the left.&lt;br /&gt;
&lt;br /&gt;
This is because the '''float '''value of the '''image '''is set to '''left''' instead of '''inherit'''.&lt;br /&gt;
&lt;br /&gt;
Earlier '''float''' property of the '''image '''was inheriting the '''float '''value of the '''div block.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Delete: float: right;&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|  | &lt;br /&gt;
&lt;br /&gt;
Delete the '''float '''property of the '''div tag '''and 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;
Both the '''block''' and '''image''' are set to the left now.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property&lt;br /&gt;
|  | '''Clear Property'''&lt;br /&gt;
* It is related to''' float.'''&lt;br /&gt;
* It prevents an''' element '''from being displayed next to''' floated elements.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property Value&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''left''': '''elements''' are not allowed to '''float''' on the left''' '''side of the specified''' element'''&lt;br /&gt;
* '''right''': '''elements''' are not allowed to '''float''' on the right''' '''side of the specified''' element'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property Value&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* '''both''': '''elements''' are not allowed to '''float''' on both sides of the specified''' element'''&lt;br /&gt;
* '''none''' (default):'''elements''' are allowed to '''float''' on both sides of the specified''' element'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Clear Property Value&lt;br /&gt;
&lt;br /&gt;
|  | &lt;br /&gt;
* '''initial: '''sets the''' clear '''property to its default value&lt;br /&gt;
* '''inherit: element '''inherits the '''clear''' value of its parent.&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
clear: none;&lt;br /&gt;
|  | I will set the '''clear property value '''to''' none '''for the '''paragraph.'''&lt;br /&gt;
&lt;br /&gt;
In the '''p tag''', next to the '''font '''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 paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
There is no change in the output because '''none''' is the default value of '''clear '''property.&lt;br /&gt;
&lt;br /&gt;
The text''' float'''s around the '''image'''.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch back to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
clear: both;&lt;br /&gt;
|  | Now I will change the '''clear '''property value''' '''to''' both '''for the '''paragraph.'''&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] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the '''paragraph''' moved down because it does not allow the '''image '''to '''float''' on both sides.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | The '''image''' and '''paragraph''' are too big to fit within the '''block.'''&lt;br /&gt;
&lt;br /&gt;
That is why the '''paragraph''' flows out of the '''block'''.&lt;br /&gt;
&lt;br /&gt;
To solve this problem, we use '''overflow '''property.&lt;br /&gt;
&lt;br /&gt;
Let us understand about this.&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property&lt;br /&gt;
|  | '''Overflow''' property decides what to do when the content''' '''overflows the''' block.'''&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property Value&lt;br /&gt;
|  | Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''visible '''(default): &lt;br /&gt;
** Overflowed content is not clipped.&lt;br /&gt;
** It is visible outside the''' block'''.&lt;br /&gt;
* '''scroll''': &lt;br /&gt;
** Overflowed content is clipped.&lt;br /&gt;
** A '''scrollbar''' is added to see the whole content.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property Value&lt;br /&gt;
|  | &lt;br /&gt;
* '''auto''': &lt;br /&gt;
** Automatically adds a '''scrollbar''' whenever required.&lt;br /&gt;
* '''hidden''': &lt;br /&gt;
** Overflowed content is clipped and is invisible.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Overflow Property Value&lt;br /&gt;
|  | &lt;br /&gt;
* '''initial''': &lt;br /&gt;
** Sets the property value to its default value.&lt;br /&gt;
* '''inherit''': &lt;br /&gt;
** Inherits the property value from its parent '''element'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&lt;br /&gt;
|-&lt;br /&gt;
|  | Switch to mystyle.css&lt;br /&gt;
|  | Switch to the '''mystyle.css''' file.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
overflow: auto;&lt;br /&gt;
|  | Now I will set the '''overflow '''property''' '''to''' auto '''for the''' div block.'''&lt;br /&gt;
&lt;br /&gt;
In the '''div tag''', next to the '''padding''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|  | [gedit - mystyle.css]&lt;br /&gt;
&lt;br /&gt;
Highlight:&lt;br /&gt;
&lt;br /&gt;
overflow: auto;&lt;br /&gt;
|  | Here '''overflow '''property is set to '''auto.'''&lt;br /&gt;
&lt;br /&gt;
This means''' '''the text''' '''will not overflow outside the border.&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''' &lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] &lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Observe the output.&lt;br /&gt;
&lt;br /&gt;
The text''' '''has overflowed outside the border.&lt;br /&gt;
|-&lt;br /&gt;
|  | [Firefox] Ctrl + R&lt;br /&gt;
&lt;br /&gt;
Highlight the paragraph&lt;br /&gt;
|  | Refresh the page once again and observe the output.&lt;br /&gt;
&lt;br /&gt;
This time, the overflowed content is clipped.&lt;br /&gt;
&lt;br /&gt;
And a '''scrollbar''' is added to the '''block''' to see the overflowed content.&lt;br /&gt;
&lt;br /&gt;
You may explore '''visible''', '''scroll '''and '''hidden overflow property values''' on your own.&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;
* '''Float, Clear''' and''' Overflow '''properties of an '''element '''in''' CSS'''&lt;br /&gt;
* Use these properties to achieve the desired output&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 '''webpage.html''' which you have created earlier.&lt;br /&gt;
* Add the''' '''image''' veg.png '''in''' '''the''' div block.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &lt;br /&gt;
* Open the file '''styles.css '''which you have created earlier.&lt;br /&gt;
* Update the following for '''div''' '''block'''&lt;br /&gt;
** '''width''' to '''600px.'''&lt;br /&gt;
** '''height''' to '''200px.'''&lt;br /&gt;
** '''overflow value '''to''' scroll'''.&lt;br /&gt;
* Set the '''float value''' to '''right '''for the '''image'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  | Slide: Assignment&lt;br /&gt;
|  | &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: Answers for THIS Spoken Tutorial&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;
|  | This is Neha Solanki 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>