<?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%2FBackground-in-CSS%2FEnglish</id>
		<title>CSS/C2/Background-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%2FBackground-in-CSS%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Background-in-CSS/English&amp;action=history"/>
		<updated>2026-05-03T13:55:24Z</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/Background-in-CSS/English&amp;diff=54042&amp;oldid=prev</id>
		<title>Nancyvarkey at 09:13, 15 October 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Background-in-CSS/English&amp;diff=54042&amp;oldid=prev"/>
				<updated>2020-10-15T09:13:06Z</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 09:13, 15 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 149:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 149:&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;|| Only narration&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;|| Only narration&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;||We can also set an'''image''' as the'''background''' for an'''element''' using'''CSS.'''&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;||We can also set an '''image''' as the '''background''' for an '''element''' using '''CSS.'''&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;Let us try this.&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;Let us try this.&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 350:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 350:&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;The '''background image''' remains fixed, while the other contents are getting scrolled.&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;The '''background image''' remains fixed, while the other contents are getting scrolled.&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;−&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;This is based on the size of the '''browser''' and the '''content''' available in the page.&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;&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;||&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;||&lt;/ins&gt;This is based on the size of the '''browser''' and the '''content''' available in the page.&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;|| Switch to Mypage.html&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;|| Switch to Mypage.html&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 450:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 452:&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;The order in which '''background property''' values should be written is:&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;The order in which '''background property''' values should be written is:&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;−&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;'''background: ''color&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'' ''&lt;/del&gt;image&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'' ''&lt;/del&gt;repeat&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'' ''&lt;/del&gt;attachment&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'' ''&lt;/del&gt;position&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'';&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;'''background: ''color image repeat attachment position &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;semicolon&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;|-&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;|| [gedit - 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;|| [gedit - 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 460:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 462:&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;background: yellow url(&amp;quot;tomato.png&amp;quot;) no-repeat scroll top right; }&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;background: yellow url(&amp;quot;tomato.png&amp;quot;) no-repeat scroll top right; }&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;|| Update the code of the '''body&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''' '''&lt;/del&gt;tag '''as shown.&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;|| Update the code of the '''body tag '''as shown.&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 475:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 477:&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;|| Only narration&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;|| Only narration&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;|| With this we &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;have &lt;/del&gt;come to the end of this tutorial.&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;|| With this we come to the end of this tutorial.&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;Let us summarize.&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;Let us summarize.&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 521:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 523:&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: Thanks&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: Thanks&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 script for this tutorial is contributed by Neha Solanki&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;|| The script for this tutorial is contributed by Neha Solanki&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 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;−&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 class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;this is Madhuri Ganapathi from IIT Bombay.&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;And &lt;/ins&gt;this is Madhuri Ganapathi from IIT Bombay.&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;Thank you for watching.&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;Thank you for watching.&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;|}&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;/table&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=CSS/C2/Background-in-CSS/English&amp;diff=54008&amp;oldid=prev</id>
		<title>Nehasolanki: Created page with &quot;'''Title of the script: '''Background in CSS  '''Author:''' Neha Solanki  '''Domain Reviewer: '''Ankita Maske, Om Prakash Soni  '''Novice Reviewer:''' Madhuri Ganapathi  '''Ke...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=CSS/C2/Background-in-CSS/English&amp;diff=54008&amp;oldid=prev"/>
				<updated>2020-10-09T14:00:25Z</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;Background 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 Ganapathi  &amp;#039;&amp;#039;&amp;#039;Ke...&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: '''Background 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 Background, CSS Background-Color, CSS Background Image, CSS Background Repeat, CSS Background Attachment, CSS Background Position, CSS Color, CSS Background Shorthand&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 “'''Background in CSS'''” &lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
||In this tutorial, we will learn about''' background '''properties of an '''element '''in''' CSS.'''&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: Background&lt;br /&gt;
|| To '''style '''the '''background''' of an '''element''', '''CSS''' has the following properties:&lt;br /&gt;
&lt;br /&gt;
*'''background-color'''&lt;br /&gt;
*'''background-image'''&lt;br /&gt;
*'''background-repeat'''&lt;br /&gt;
*'''background-attachment'''&lt;br /&gt;
*'''background-position'''&lt;br /&gt;
&lt;br /&gt;
Let us understand these one by one through examples.&lt;br /&gt;
|-&lt;br /&gt;
| | Slide: Background Color&lt;br /&gt;
|| The '''background-color''' can be set using these formats&lt;br /&gt;
&lt;br /&gt;
* '''Color names'''&lt;br /&gt;
* '''Hexadecimal values'''&lt;br /&gt;
* '''RGB (Red Green Blue) values'''&lt;br /&gt;
&lt;br /&gt;
Let us try this.&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;
background-color: yellow;&lt;br /&gt;
|| Here for the '''body''' '''tag''' I have set the '''background-color''' as '''yellow'''.&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] Highlight the output&lt;br /&gt;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''background color''' of the page is set to '''Yellow'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| Let’s do some more changes to the '''CSS''' file '''mystyle.css'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit] mystyle.css&lt;br /&gt;
&lt;br /&gt;
Update:&lt;br /&gt;
&lt;br /&gt;
background-color: #FFFF00;&lt;br /&gt;
|| Now I will set the '''background color''' to '''yellow '''using the '''hexadecimal value'''.&lt;br /&gt;
&lt;br /&gt;
The '''hexadecimal value''' of '''yellow''' is '''#FFFF00'''&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;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The '''background color''' of the page is still '''yellow'''.&lt;br /&gt;
&lt;br /&gt;
Now I will try with '''RGB color code.'''&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:&lt;br /&gt;
&lt;br /&gt;
background-color: rgb(255,102,203);&lt;br /&gt;
|| Now change the '''background color''' to '''pink''' using '''rgb '''value.&lt;br /&gt;
&lt;br /&gt;
'''rgb value '''for '''pink''' is''' rgb(255,102,203);'''&lt;br /&gt;
&lt;br /&gt;
Update the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
rgb(225,102,203);&lt;br /&gt;
|| '''RGB color''' value is specified with''' rgb(red, green, blue''') ranging between 0 to 255.&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 the '''background color''' of the page is set to '''pink.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
||We can also set an'''image''' as the'''background''' for an'''element''' using'''CSS.'''&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] Type:&lt;br /&gt;
&lt;br /&gt;
background-image: url(&amp;quot;tomato.png&amp;quot;);&lt;br /&gt;
|| Inside the '''body tag''', next to the '''width''' property, type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
url(&amp;quot;tomato.png&amp;quot;);&lt;br /&gt;
|| The name of the '''image''' along with the path should be written inside the '''url( ) function.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
tomato.png&lt;br /&gt;
|| This 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 the other 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 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 the '''image''' is set as a '''background'''.&lt;br /&gt;
&lt;br /&gt;
'''Image''' gets floated according to its '''dimension '''to fit the '''background'''. &lt;br /&gt;
&lt;br /&gt;
If the '''image dimension''' is more than the '''background''' then a single '''image''' will be displayed.&lt;br /&gt;
&lt;br /&gt;
Here the '''image dimension''' is less than the '''background'''.&lt;br /&gt;
&lt;br /&gt;
Therefore multiple '''images''' are displayed.&lt;br /&gt;
&lt;br /&gt;
To control this we have some '''background''' properties in '''CSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background Repeat&lt;br /&gt;
|| '''background-repeat '''allows to repeat the '''image''' in the '''background''' of an '''element'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background Repeat Values&lt;br /&gt;
|| Values of this property are:&lt;br /&gt;
&lt;br /&gt;
* '''repeat-x''': repeats '''image''' horizontally.&lt;br /&gt;
* '''repeat-y''': repeats '''image''' vertically.&lt;br /&gt;
* '''no-repeat''': does not repeat, shows '''image''' one time.&lt;br /&gt;
* '''repeat''': It is the default value, which repeats the '''image''' in both directions.&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] Type:&lt;br /&gt;
&lt;br /&gt;
background-repeat: repeat-x;&lt;br /&gt;
|| First I will repeat the '''image''' horizontally.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', below the '''background-image '''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 '''browse'''r 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;
Earlier the '''background image''' repeated both horizontally and vertically.&lt;br /&gt;
&lt;br /&gt;
Now it is repeated horizontally because the value is set to '''repeat-x'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight&lt;br /&gt;
&lt;br /&gt;
background-repeat: repeat-x;&lt;br /&gt;
|| If you wish to repeat the '''image''' vertically, then set the repeat value as '''repeat-y.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Update:&lt;br /&gt;
&lt;br /&gt;
background-repeat: no-repeat;&lt;br /&gt;
|| Now change the '''background-repeat''' value as '''no-repeat'''.&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 '''browse'''r 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 the '''background image''' is displayed in the '''top left '''corner which is the default position.&lt;br /&gt;
&lt;br /&gt;
It is not repeating.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:Background Attachment&lt;br /&gt;
|| '''background-attachment''' decides whether to scroll the '''image '''or not, along with the '''webpage'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:Background- Attachment&lt;br /&gt;
|| &lt;br /&gt;
* '''scroll:''' allows the '''background image''' to scroll along with the page.&lt;br /&gt;
* '''fixed''': the '''background image '''remains fixed, it is not allowed to scroll.&lt;br /&gt;
&lt;br /&gt;
Let us try this.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to mystyle.css&lt;br /&gt;
|| Switch to the '''mystyle.css''' file to try this.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Type:&lt;br /&gt;
&lt;br /&gt;
background-attachment: scroll;&lt;br /&gt;
|| Now I will set the '''background attachment''' to '''scroll.'''&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to '''background-repeat''' 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;
|| Open Mypage.html in text editor&lt;br /&gt;
|| Switch to '''my-css''' folder.&lt;br /&gt;
&lt;br /&gt;
Now open the file '''Mypage.html''' in a '''text editor'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - Mypage.html] Type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;dl&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;dt&amp;gt; Dry fruits &amp;lt;/dt&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Cashew &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Almond &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Apricot&amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Dates &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Fig &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;dt&amp;gt; Fresh Fruits &amp;lt;/dt&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Orange &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Mango &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Apple &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Grapes &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Melon &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Banana &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Cherry &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Blueberry &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Apricot &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Pineapple &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Dragon Fruit &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Avocados &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Kiwi &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Pear &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Pomegranate &amp;lt;/dd&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Plum &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;&amp;lt;dd&amp;gt; Papaya &amp;lt;/dd&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/dl&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|| Next to the '''div closing 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;
|| 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;
As I scroll down, the '''background image''' also gets scrolled.&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;
background-attachment: fixed;&lt;br /&gt;
|| Change the value of '''background-attachment '''to '''fixed.'''&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;
|| Observe the output as I '''scroll '''down.&lt;br /&gt;
&lt;br /&gt;
The '''background image''' remains fixed, while the other contents are getting scrolled.&lt;br /&gt;
&lt;br /&gt;
This is based on the size of the '''browser''' and the '''content''' available in the page.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Mypage.html&lt;br /&gt;
&lt;br /&gt;
Ctrl + Z&lt;br /&gt;
&lt;br /&gt;
Ctrl + S&lt;br /&gt;
|| Switch to the '''Mypage.html''' file.&lt;br /&gt;
&lt;br /&gt;
Undo the changes which we have done now.&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background-Position&lt;br /&gt;
|| '''background-position''' is used to specify the position of the '''background image''' of an '''element'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Background-Position&lt;br /&gt;
|| The position value for the '''background image''' can be set as: &lt;br /&gt;
&lt;br /&gt;
*'''Percentage (%)'''&lt;br /&gt;
*'''Length values ( eg. mm, cm, px )'''&lt;br /&gt;
*'''keywords (top, right, center, left, bottom)'''&lt;br /&gt;
&lt;br /&gt;
Let us try these.&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;
background-position: 100% 0%;&lt;br /&gt;
|| I will set the position of the '''background image''' to the '''top right''' corner using '''percentage'''.&lt;br /&gt;
&lt;br /&gt;
Inside the '''body tag''', next to the '''background attachment''' property, type the code as shown.&lt;br /&gt;
|-&lt;br /&gt;
|| [gedit - mystyle.css] Highlight:&lt;br /&gt;
&lt;br /&gt;
background-position: 100% 0%;&lt;br /&gt;
|| Here, the first value corresponds to the '''horizontal background''' position.&lt;br /&gt;
&lt;br /&gt;
The second value corresponds to the '''vertical background''' position.&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 the position of the '''background image''' has changed to the '''top right corner''' of the 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] Update:&lt;br /&gt;
&lt;br /&gt;
background-position: 4cm 3cm;&lt;br /&gt;
|| Now I will set the position for the '''background image''' using '''length value (cm)'''.&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;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
The position of the '''background image''' has changed as per the given''' length value'''.&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;
background-position: right bottom;&lt;br /&gt;
|| Let’s set the position of the '''background image''' to the '''bottom right '''using some '''keywords'''.&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;
|| Observe the output.&lt;br /&gt;
&lt;br /&gt;
Now the position of the '''background image''' has changed to the '''bottom right'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Shorthand &lt;br /&gt;
|| Using '''shorthand''', we can write this same code in a single line.&lt;br /&gt;
&lt;br /&gt;
The order in which '''background property''' values should be written is:&lt;br /&gt;
&lt;br /&gt;
'''background: ''color'' ''image'' ''repeat'' ''attachment'' ''position'';'''&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;
body {&lt;br /&gt;
&lt;br /&gt;
background: yellow url(&amp;quot;tomato.png&amp;quot;) no-repeat scroll top right; }&lt;br /&gt;
|| Update the code of the '''body''' '''tag '''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;
|| 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 '''background '''properties of an '''element '''in''' CSS.'''&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;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
||&lt;br /&gt;
* Set the following '''styles''' for the '''body tag:'''&lt;br /&gt;
** '''Image''' as a '''background'''&lt;br /&gt;
** '''no-repeat '''for''' background-repeat'''&lt;br /&gt;
** '''background-position''' to '''top right'''&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: 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 Neha Solanki&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>