<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fixed background image Archives -</title>
	<atom:link href="https://mitindia.in/tag/fixed-background-image/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/fixed-background-image/</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2017 11:14:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>fixed background image Archives -</title>
	<link>https://mitindia.in/tag/fixed-background-image/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>fixed background image using css</title>
		<link>https://mitindia.in/fixed-background-image-using-css/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Sat, 21 Jan 2017 12:19:54 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[fixed background image]]></category>
		<category><![CDATA[web design and development]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=728</guid>

					<description><![CDATA[<p>Fixed background image in HTML page using CSS To fix the background image static at center, means no scrolling image! The following CSS page must be created. Have a look. h1 { background-color: green; } div { background-image: url("d:\solid.jpg"); } p { background-color: yellow; } BODY { background-image:url("d:\java-logo.jpg"); background-repeat: no-repeat; background-position: center; background-attachment: fixed; } [&#8230;]</p>
<p>The post <a href="https://mitindia.in/fixed-background-image-using-css/">fixed background image using css</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><span style="color: #000080;">Fixed background image in HTML page using CSS</span></h3>
<hr />
<p><strong>To fix the background image static at center, means no scrolling image! <span style="color: #ff0000;">The following CSS page must be created. Have a look.</span></strong></p>
<pre>h1 {
 background-color: green;
}

div {
 background-image: url("d:\solid.jpg");
}

p {
 background-color: yellow;
}

BODY
{
background-image:url("d:\java-logo.jpg");
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}

table
{
background-color:cyan;
}

td, th
{
padding:15px;
}

tr:hover 
{
background-color: yellow
}

tr:nth-child(even)
{
background-color: grey
}</pre>
<p><span style="color: #ff0000;"><strong>And Now create HTML page with following syntax in it.</strong></span></p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;link rel="stylesheet" type="text/css" href="ss.css"&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;h1&gt; Welcome to CSS &lt;/h1&gt;
&lt;p&gt; Welcome to CSS - paragraph text here... &lt;/p&gt;
&lt;hr&gt;

&lt;table border=2&gt;
&lt;tr&gt; &lt;td&gt; SrNo &lt;/td&gt;
&lt;td&gt; Course Name &lt;/td&gt;
&lt;td&gt; Type &lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; 1 &lt;/td&gt;
&lt;td&gt; Digital Marketing &lt;/td&gt;
&lt;td&gt; IT and Mgt &lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; 2 &lt;/td&gt;
&lt;td&gt; Data Analytics &lt;/td&gt;
&lt;td&gt; IT &lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; 3 &lt;/td&gt;
&lt;td&gt; Six Sigma Green Belt &lt;/td&gt;
&lt;td&gt; Mgt &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;hr&gt;

&lt;div&gt;
&lt;h2&gt; Text with background fixed image &lt;/h2&gt;
&lt;h3&gt; Text with background fixed image &lt;/h3&gt;
&lt;h4&gt; Text with background fixed image &lt;/h4&gt;
&lt;h5&gt; Text with background fixed image &lt;/h5&gt;
&lt;/div&gt;

&lt;/body&gt;&lt;/html&gt;</pre>
<p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Output of the above program is..</span></strong></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-medium wp-image-729" src="http://www.mitindia.in/wp-content/uploads/2017/01/fixed_background_image-300x170.png" alt="fixed background image in css" width="300" height="170" srcset="https://mitindia.in/wp-content/uploads/2017/01/fixed_background_image-300x170.png 300w, https://mitindia.in/wp-content/uploads/2017/01/fixed_background_image-308x175.png 308w, https://mitindia.in/wp-content/uploads/2017/01/fixed_background_image.png 729w" sizes="(max-width: 300px) 100vw, 300px" /></p>
 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- mylink -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1696390399604457"
     data-ad-slot="7690934410"
     data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p><a href="http://www.mitindia.in/2017/01/18/navigation-bar-header-logo-using-css/" target="_blank">Also check here for fixed header(logo) and menu bar using css</a></p>
<p>&nbsp;</p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Ffixed-background-image-using-css%2F&amp;linkname=fixed%20background%20image%20using%20css" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Ffixed-background-image-using-css%2F&amp;linkname=fixed%20background%20image%20using%20css" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Ffixed-background-image-using-css%2F&#038;title=fixed%20background%20image%20using%20css" data-a2a-url="https://mitindia.in/fixed-background-image-using-css/" data-a2a-title="fixed background image using css"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/fixed-background-image-using-css/">fixed background image using css</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
