<?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>Jemand.ru &#187; Background</title>
	<atom:link href="http://jemand.ru/tag/background/feed/" rel="self" type="application/rss+xml" />
	<link>http://jemand.ru</link>
	<description>Веб строительство начинающим.</description>
	<lastBuildDate>Sat, 31 Dec 2011 16:49:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Растягивающаяся фоновая картинка</title>
		<link>http://jemand.ru/rastyagivayushhayasya-fonovaya-kartinka/</link>
		<comments>http://jemand.ru/rastyagivayushhayasya-fonovaya-kartinka/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 18:16:47 +0000</pubDate>
		<dc:creator>Jemand</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Background]]></category>
		<category><![CDATA[Фон]]></category>

		<guid isPermaLink="false">http://jemand.ru/?p=451</guid>
		<description><![CDATA[Пример растягивающегося фонового изображения на примере заглушки для сайта. 1. CSS * { margin: 0; padding: 0; behavior: url(iepngfix.htc) /* Прозрачность PNG в IE */ } html, body{ width:100%; height:100%; min-width:1000px; } #page { top: 50%; left: 50%; width: 760px; height: 350px; margin-top: -300px; margin-left: -400px; position: absolute; text-align: center; padding: 250px 20px 0 20px; [...]]]></description>
			<content:encoded><![CDATA[<p>Пример растягивающегося фонового изображения на примере заглушки для сайта.<br />
<span class="point">1. CSS</span></p>
<pre><code>* {
	margin: 0;
	padding: 0;
	behavior: url(iepngfix.htc) /* Прозрачность PNG в IE */
	}
html, body{
	width:100%;
	height:100%;
	min-width:1000px;
    }
#page {
	top: 50%;
	left: 50%;
	width: 760px;
	height: 350px;
	margin-top: -300px;
	margin-left: -400px;
	position: absolute;
	text-align: center;
	padding: 250px 20px 0 20px;
	font-size: 500%;
	font-family: Georgia;
	background: url(cont.png);
	}
#page a {
	color: #eaeaea;
	text-decoration: none;
}
#page a:hover {
	color: #000;
	text-decoration: none;
}
#fon {
	height: 100%;
	width: 100%;
	min-width: 1000px;
	max-width: 1600px;
	}
#fon img {
	height: 100%;
	width: 100%;
	position: absolute;
}
</code></pre>
<p><span class="point">2. Internet Explorer PNG fix</span></p>
<pre><code>&lt;script type="text/javascript" src="iepngfix_tilebg.js"&gt;&lt;/script&gt;
</code></pre>
<p>Скрипт добавляем в раздел <tag>&lt;head&gt;</tag><br />
JS, HTC и GIF для прозрачности PNG в IE можно скачать <a href="http://jemand.ru/examples/archives/iepngfix.zip">здесь</a>.<br />
<span class="point">3. HTML</span></p>
<pre><code>&lt;div id="fon"&gt;
	&lt;img src="fon.jpg"&gt;
&lt;/div&gt;
&lt;div id="page"&gt;&lt;!-- Здесь содержимое сайта --&gt;&lt;/div&gt;
</code></pre>
<p><a href="http://jemand.ru/examples/rastyagivayushhayasya-fonovaya-kartinka.html" target="_blank"><span class="demo">Демо</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jemand.ru/rastyagivayushhayasya-fonovaya-kartinka/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

