<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2russianfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Алексей Ильин</title>
	
	<link>http://www.alexilin.ru</link>
	<description>Заметки по CSS, HTML</description>
	<lastBuildDate>Tue, 28 Feb 2012 04:59:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/alexilin" /><feedburner:info uri="alexilin" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>alexilin</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/alexilin" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://my.feedlounge.com/external/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://static.feedlounge.com/buttons/subscribe_0.gif">Subscribe with FeedLounge</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare href="http://lenta.yandex.ru/settings.xml?name=feed&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://lenta.yandex.ru/i/addfeed.gif">?????? ? ??????.?????</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="https://intouch.particls.com/download/?mode=2&amp;feed=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin" src="https://intouch.particls.com/resources/buttons/it-button2.gif">Subscribe with Particls</feedburner:feedFlare><feedburner:feedFlare href="http://www.addtoany.com/?linkname=%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B9%20%D0%98%D0%BB%D1%8C%D0%B8%D0%BD&amp;linkurl=http%3A%2F%2Ffeeds.feedburner.com%2Falexilin&amp;type=feed" src="http://www.addtoany.com/addfr-b.gif">Add to Any Feed Reader</feedburner:feedFlare><item>
		<title>Веб-дайджест</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/cvwQR83Uwtg/</link>
		<comments>http://www.alexilin.ru/webdigest7/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 23:44:07 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Разное]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1988</guid>
		<description><![CDATA[Понятие потока В HTML формирование элементов на странице происходит сверху вниз согласно схеме документа. Слой, размещенный в самом верху кода, отобразится раньше слоя, который расположен в коде ниже. Такая логика позволяет легко прогнозировать результат вывода элементов и управлять им. Порядок вывода объектов на странице и называется «потоком»… Кросс-браузерный @font-face Статья о свойстве CSS @font-face, с [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://htmlbook.ru/blog/ponyatie-potoka"><strong>Понятие потока</strong></a><br /> В HTML формирование элементов на странице происходит сверху вниз согласно схеме документа. Слой, размещенный в самом верху кода, отобразится раньше слоя, который расположен в коде ниже.  Такая логика позволяет легко прогнозировать результат вывода элементов и управлять им. Порядок вывода объектов на странице и называется «потоком»…</li>
<li><a href="http://vremenno.net/html-css/cross-browser-font-face/"><strong>Кросс-браузерный @font-face</strong></a><br /> Статья о свойстве CSS @font-face, с помощью которого легче и удобнее всего использовать произвольный шрифт на сайте.</li>
<li><a href="http://pepelsbey.net/2010/11/web-in-curves/"><strong>Веб в кривых. Второе рождение SVG</strong></a><br /> Видео-запись доклада «Веб в кривых. Второе рождение SVG», прозвучавшего в Самаре на 404 фестивале</li>
<li><a href="http://web-standards.ru/articles/state-of-layout/"><strong>Какой расклад?</strong></a><br /> Статья о самых распространенных вопросах, сомнениях и критике по поводу необходимости создания и внедрения новых механизмов раскладки.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/cvwQR83Uwtg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/webdigest7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/webdigest7/</feedburner:origLink></item>
		<item>
		<title>CSS табы</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/eYSvioWa7uQ/</link>
		<comments>http://www.alexilin.ru/tabs-with-pure-css/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 18:13:25 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Закладки]]></category>
		<category><![CDATA[Табы]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1894</guid>
		<description><![CDATA[Обнаружил в интернете очень простой способ создания табов без использования JS. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 &#60;ul class=&#34;tabs&#34;&#62; &#60;li&#62;&#60;a href=&#34;#one&#34;&#62;1&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#two&#34;&#62;2&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#three&#34;&#62;3&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#four&#34;&#62;4&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#five&#34;&#62;5&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;div class=&#34;tabs-content&#34;&#62; &#60;ul&#62; &#60;li id=&#34;one&#34;&#62;1&#60;/li&#62; &#60;li id=&#34;two&#34;&#62;2&#60;/li&#62; &#60;li id=&#34;three&#34;&#62;3&#60;/li&#62; &#60;li id=&#34;four&#34;&#62;4&#60;/li&#62; &#60;li id=&#34;five&#34;&#62;5&#60;/li&#62; &#60;/ul&#62; &#60;/div&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Обнаружил в интернете очень простой способ создания табов без использования JS.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabs&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#one&quot;</span>&gt;</span>1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#two&quot;</span>&gt;</span>2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#three&quot;</span>&gt;</span>3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#four&quot;</span>&gt;</span>4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#five&quot;</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabs-content&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;one&quot;</span>&gt;</span>1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;two&quot;</span>&gt;</span>2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;three&quot;</span>&gt;</span>3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;four&quot;</span>&gt;</span>4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;five&quot;</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Разметка простая. Список <code>.tabs</code> используется для навигации. Далее идет контейнер <code>.tabs-content</code> со списком, в котором каждый элемент <code>li</code> это отдельный слайд.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.tabs-<span style="color: #000000; font-weight: bold;">content</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.tabs-<span style="color: #000000; font-weight: bold;">content</span> li <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Ссылки в навигации указывают на соответствующие <code>id</code> слайдов. Слайдам установлена ширина и высота равные внешнему контейнеру.</p>
<p>Работает в Firefox, Opera (для старых версий нужно немного дополнить CSS), Safari, IE6+.</p>
<div class="buttons">
<div>
<ul>
<li>
<a class="demo" href="http://www.alexilin.ru/web/tabs"><span>Демо</span></a>
</li>
</ul>
</div>
</div>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/eYSvioWa7uQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/tabs-with-pure-css/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/tabs-with-pure-css/</feedburner:origLink></item>
		<item>
		<title>Делаем горизонтальный скроллбар</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/PCaAX20UJaM/</link>
		<comments>http://www.alexilin.ru/custom-horizontal-scrollbar/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 15:06:20 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jScrollHorizontalPane]]></category>
		<category><![CDATA[Полоса прокрутки]]></category>
		<category><![CDATA[Скроллбар]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1817</guid>
		<description><![CDATA[После публикации статьи «Делаем вертикальный скроллбар» многие спрашивали по поводу аналогичного, но горизонтального варианта. В этой статье рассмотрим пример создания простой горизонтальной полосы прокрутки. Для создания будет использоваться jQuery плагин jScrollHorizontalPane. Контент, который будет скроллиться, нужно обернуть в блок. В данном случае #scroll-box. 1 2 3 &#60;div id=&#34;scroll-box&#34;&#62; &#60;!-- Контент --&#62; &#60;/div&#62; Подключаем CSS файл [...]]]></description>
			<content:encoded><![CDATA[<p>После публикации статьи <a href="http://www.alexilin.ru/styling-scrollbar/">«Делаем вертикальный скроллбар»</a> многие спрашивали по поводу аналогичного, но горизонтального варианта. В этой статье рассмотрим пример создания простой горизонтальной полосы прокрутки. </p>
<p>Для создания будет использоваться jQuery плагин <a href="http://plugins.jquery.com/project/jscrollhorizontalpane">jScrollHorizontalPane</a>.</p>
<p>Контент, который будет скроллиться, нужно обернуть в блок. В данном случае <code>#scroll-box</code>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;scroll-box&quot;</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Контент --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Подключаем CSS файл плагина jScrollHorizontalPane.css, и пишем следующие стили:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#scroll-box</span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#scroll-box</span> p<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">1000px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a.jScrollArrowLeft<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a.jScrollArrowRight<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>У контента ширина должна быть больше, чем у внешнего блока.</p>
<p>Подключаем скрипты:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery-1.4.2.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery.mousewheel.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jScrollHorizontalPane.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#scroll-box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jScrollHorizontalPane</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        showArrows<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        arrowSize<span style="color: #339933;">:</span><span style="color: #CC0000;">20</span><span style="color: #339933;">,</span>
        scrollbarHeight<span style="color: #339933;">:</span><span style="color: #CC0000;">20</span><span style="color: #339933;">,</span>
        scrollbarMargin<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Здесь используются следующие параметры:</p>
<ul>
<li><code>showArrows</code> — отвечает за отображение кнопок «Назад» «Вперёд» на полосе прокрутки</li>
<li><code>arrowSize</code> — ширина этих кнопок в <code>px</code> (если не указана здесь, должна быть установлена в CSS)</li>
<li><code>scrollbarHeight</code> — высота полосы прокрутки в <code>px</code></li>
<li><code>scrollbarMargin</code> — отступ справа от полосы прокрутки</li>
</ul>
<div class="buttons">
<div>
<ul>
<li>
<a href="http://www.alexilin.ru/web/custom-horizontal-scrollbar" class="demo"><span>Демо</span></a>
</li>
<li>
<a class="download" href="http://www.box.net/shared/5eh083oxrf"><span>Cкачать</span></a>
</li>
</ul>
</div>
</div>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/PCaAX20UJaM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/custom-horizontal-scrollbar/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/custom-horizontal-scrollbar/</feedburner:origLink></item>
		<item>
		<title>Шпаргалка от W3C</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/59Xcm5ciM8c/</link>
		<comments>http://www.alexilin.ru/w3c-cheatsheet/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 06:10:14 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Сервисы]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[XPath]]></category>
		<category><![CDATA[Шпаргалки]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1809</guid>
		<description><![CDATA[Пополнение в рядах шпаргалок по веб-технологиям. Новая версия ранее опубликованной шпаргалки от Dominique Hazaël-Massieux из W3C. Шпаргалка представляет собой сервис, с помощью которого можно быстро получить информацию из различных спецификаций (HTML, CSS, SVG, XPath). В данной версии были добавлены новые HTML5 элементы. CSS3 пока нет. Шпаргалка доступна как веб-сервис, а также в виде андроид приложения.]]></description>
			<content:encoded><![CDATA[<p>Пополнение в рядах шпаргалок по веб-технологиям. Новая версия ранее опубликованной шпаргалки от Dominique Hazaël-Massieux из <abbr title="World Wide Web Consortium">W3C</abbr>.</p>
<p>Шпаргалка представляет собой сервис, с помощью которого можно быстро получить информацию из различных спецификаций (<abbr title="HyperText Markup Language">HTML</abbr>, <abbr title="Cascading Style Sheets">CSS</abbr>, <abbr title="Scalable Vector Graphics">SVG</abbr>, <abbr title="XML Path Language">XPath</abbr>). В данной версии были добавлены новые HTML5 элементы. CSS3 пока нет.</p>
<p>Шпаргалка доступна как <a href="http://www.w3.org/2009/cheatsheet/">веб-сервис</a>, а также в виде андроид <a href="http://dev.w3.org/2009/cheatsheet/doc/android">приложения</a>.</p>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/59Xcm5ciM8c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/w3c-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/w3c-cheatsheet/</feedburner:origLink></item>
		<item>
		<title>Альтернативный текст изображений при копировании</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/XuKhe--c80s/</link>
		<comments>http://www.alexilin.ru/browsers-alt-text-copy-support/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 08:22:05 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Доступность]]></category>
		<category><![CDATA[Альтернативный текст]]></category>
		<category><![CDATA[Браузеры]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1782</guid>
		<description><![CDATA[Все мы хорошо знаем, что у изображений необходимо указывать альтернативный текст в атрибуте alt. Однако что будет, если пользователь скопирует текст с таким изображением. Попробуем: 1 &#60;p&#62;Я люблю &#60;img src=&#34;soccer.png&#34; width=&#34;16&#34; height=&#34;16&#34; alt=&#34;Футбол&#34; /&#62;&#60;/p&#62; Скопируйте и вставьте следующую строчку в какой-либо текстовый редактор. Я люблю Как видите на данный момент полноценное копирование есть только в [...]]]></description>
			<content:encoded><![CDATA[<p>Все мы хорошо знаем, что у изображений необходимо указывать альтернативный текст в атрибуте <code>alt</code>. Однако что будет, если пользователь скопирует текст с таким изображением.</p>
<p>Попробуем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Я люблю <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;soccer.png&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Футбол&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span></pre></td></tr></table></div>

<p>Скопируйте и вставьте следующую строчку в какой-либо текстовый редактор.</p>
<div style="text-align:center;font-size:1.2em;padding:40px 0 30px 0;margin:0 0 15px 0;border:10px solid #eee">
<p>Я люблю <img src="http://www.alexilin.ru/wp-content/uploads/2010/06/soccer.png" width="16" height="16" alt="Футбол" style="vertical-align:middle" /></p>
</div>
<p>Как видите на данный момент полноценное копирование есть только в FF. Остальные основные браузеры не копируют альтернативный текст.</p>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/XuKhe--c80s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/browsers-alt-text-copy-support/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/browsers-alt-text-copy-support/</feedburner:origLink></item>
		<item>
		<title>CSS для разных IE в общей таблице стилей</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/6sX6Ybljs2I/</link>
		<comments>http://www.alexilin.ru/css-for-every-version-of-ie-from-a-single-stylesheet/#comments</comments>
		<pubDate>Wed, 26 May 2010 10:09:27 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Условные комментарии]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1758</guid>
		<description><![CDATA[Если вы используете условные комментарии для IE и вам не хотелось бы подключать несколько файлов, есть простой способ, позволяющий использовать одну таблицу стилей, в т.ч. для разных версий IE. Вместо того, чтобы подключать дополнительные таблицы стилей, необходимо с помощью условных комментариев обернуть все содержимое body в блок с соответствующим id для каждой версии. 1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Если вы используете условные комментарии для IE и вам не хотелось бы подключать несколько файлов, есть простой способ, позволяющий использовать одну таблицу стилей, в т.ч. для разных версий IE.</p>
<p>Вместо того, чтобы подключать дополнительные таблицы стилей, необходимо с помощью условных комментариев обернуть все содержимое <code>body</code> в блок с соответствующим <code>id</code> для каждой версии.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--[if IE 6]&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;div id=&quot;ie6&quot;&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wrap&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!--[if IE 6]&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;/div&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span></pre></td></tr></table></div>

<p>Теперь, чтобы например переопределить какое-либо свойство для IE6, нужно добавить в селектор <code>#ie6</code>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrap</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* Общее правило */</span> 
<span style="color: #cc00cc;">#ie6</span> <span style="color: #cc00cc;">#wrap</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* Правило для IE6 */</span></pre></td></tr></table></div>

<img src="http://feeds.feedburner.com/~r/alexilin/~4/6sX6Ybljs2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/css-for-every-version-of-ie-from-a-single-stylesheet/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/css-for-every-version-of-ie-from-a-single-stylesheet/</feedburner:origLink></item>
		<item>
		<title>Шпаргалка по «безопасным» шрифтам</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/IWBawrNZClU/</link>
		<comments>http://www.alexilin.ru/web-safe-font-cheat-sheet/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 22:36:34 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Разное]]></category>
		<category><![CDATA[Дизайн]]></category>
		<category><![CDATA[Шпаргалки]]></category>
		<category><![CDATA[Шрифты]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1750</guid>
		<description><![CDATA[PNG (2.39Мб) PDF (9.76Мб)]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.alexilin.ru/wp-content/uploads/2010/04/web-safe-fonts-cheat-sheet.jpg" alt="Шпаргалка по «безопасным» шрифтам" title="Шпаргалка по «безопасным» шрифтам" width="580" height="250" class="aligncenter bordered" /></p>
<ul>
<li><a href="http://paulirish.com/lovesyou/web-safe-fonts-cheat-sheet-v1.png">PNG</a> (2.39Мб)</li>
<li><a href="http://paulirish.com/lovesyou/web-safe-fonts-cheat-sheet-v1.pdf">PDF</a> (9.76Мб)</li>
</ul>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/IWBawrNZClU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/web-safe-font-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/web-safe-font-cheat-sheet/</feedburner:origLink></item>
		<item>
		<title>CSS3 Media Queries</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/pCBnzSxX0pE/</link>
		<comments>http://www.alexilin.ru/css3-media-queries-2/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 12:49:36 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1735</guid>
		<description><![CDATA[Обычно, для того чтобы поменять что-либо на странице при различных разрешениях, используется js. С приходом CSS3 сделать это станет гораздо проще благодаря CSS3 Media Queries. Media Queries дают возможность применять различные CSS стили в зависимости от возможностей устройства на котором просматривается страница. Например, чтобы применить особое оформление в случае, если ширина экрана меньше или равна [...]]]></description>
			<content:encoded><![CDATA[<p>Обычно, для того чтобы поменять что-либо на странице при различных разрешениях, используется js. С приходом CSS3 сделать это станет гораздо проще благодаря <a href="http://www.w3.org/TR/css3-mediaqueries/#media0">CSS3 Media Queries</a>.</p>
<p>Media Queries дают возможность применять различные <abbr title="Cascading Style Sheets">CSS</abbr> стили в зависимости от возможностей устройства на котором просматривается страница.</p>
<p>Например, чтобы применить особое оформление в случае, если ширина экрана меньше или равна 1000px, нужно использовать следующую конструкцию:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media screen and (max-width:1000px) {</span>
    <span style="color: #808080; font-style: italic;">/* Стили при ширине экрана &lt;= 1000px */</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Для наглядности откройте демо и попробуйте изменить размер окна.</p>
<div class="buttons">
<div>
<ul>
<li>
<a href="http://alexilin.ru/web/media-queries/" class="demo"><span>Демо</span></a>
</li>
</ul>
</div>
</div>
<p>Media Queries поддерживаются Webkit-браузерами, Opera и Firefox начиная с версии 3.5. Internet Explorer к сожалению данную возможность не поддерживает <del datetime="2010-05-05T16:42:35+00:00">и не известно будет ли поддержка в 9-й версии</del>. В Internet Explorer 9 (Second Preview) <a href="http://ie.microsoft.com/testdrive/info/ReleaseNotes/Default.html">появилась</a> таки поддержка CSS3 Media Queries.</p>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/pCBnzSxX0pE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/css3-media-queries-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/css3-media-queries-2/</feedburner:origLink></item>
		<item>
		<title>jQuery: Сворачиваемые блоки</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/j_0jBuNRn2I/</link>
		<comments>http://www.alexilin.ru/jquery-sliding-blocks/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 13:13:41 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1719</guid>
		<description><![CDATA[Небольшой пример демонстрирующий эффект сворачивания однотипных блоков (например постов в блоге или виджетов в сайдбаре) с помощью jQuery. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 &#60;div class=&#34;post&#34;&#62; &#60;div class=&#34;title&#34;&#62; &#60;h3&#62;&#60;a href=&#34;&#34; title=&#34;&#34;&#62;Заголовок&#60;/a&#62;&#60;/h3&#62; &#60;p&#62;Автор, 12.02.2010&#60;/p&#62; &#60;/div&#62; &#60;div class=&#34;entry&#34;&#62; &#60;!-- Контент --&#62; &#60;/div&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Небольшой пример демонстрирующий эффект сворачивания однотипных блоков (например постов в блоге или виджетов в сайдбаре) с помощью jQuery.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Заголовок<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Автор, 12.02.2010<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;entry&quot;</span>&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Контент --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Заголовок<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Автор, 12.02.2010<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;entry&quot;</span>&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Контент --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
…</pre></td></tr></table></div>

<p>В данном примере присутствуют несколько постов. Сворачиваться будет их содержимое.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.post</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.inactive</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#bbb</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.title</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">1%</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.title</span> h3 <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.4em</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.title</span> h3 a <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.inactive</span> <span style="color: #6666ff;">.title</span> h3 a <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#bbb</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.title</span> p <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">0.7em</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.title</span> span <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">30%</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">trigger.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#content</span> <span style="color: #6666ff;">.inactive</span> <span style="color: #6666ff;">.title</span> span <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#content</span> <span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.entry</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><code>Span</code> служит кнопкой для сворачивания и разворачивания блоков и добавляется с помощью JS. Поэтому пользователи с отключенным JS его не увидят.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.title'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;span&gt;&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.post span'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> trigger <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> state <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> el <span style="color: #339933;">=</span> trigger.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.entry'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   trigger.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      state <span style="color: #339933;">=</span> <span style="color: #339933;">!</span>state<span style="color: #339933;">;</span>
      el.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      trigger.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggleClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'inactive'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<div class="buttons">
<div>
<ul>
<li>
<a class="demo" href="http://www.alexilin.ru/web/sliding-blocks"><span>Демо</span></a>
</li>
<li>
<a href="http://www.box.net/shared/3vybmba1xn" class="download"><span>Cкачать</span></a>
</li>
</ul>
</div>
</div>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/j_0jBuNRn2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/jquery-sliding-blocks/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/jquery-sliding-blocks/</feedburner:origLink></item>
		<item>
		<title>Смещение фонa у input в IE6 и 7</title>
		<link>http://feedproxy.google.com/~r/alexilin/~3/vUAewCSZvMs/</link>
		<comments>http://www.alexilin.ru/input-background-scroll-ie-bug/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:19:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Баги]]></category>

		<guid isPermaLink="false">http://www.alexilin.ru/?p=1502</guid>
		<description><![CDATA[Зачастую многие дизайнеры в своих работах используют отличные от стандартных элементы форм. К сожалению, в процессе вёрстки подобных элементов иногда возникают те или иные трудности. Например, Dimox недавно поднял вопрос вертикального выравнивания у кнопок в FF. Я же хочу обратить ваше внимание на баг, который присутствует в IE6, 7 у текстовых полей с фоновым изображением. [...]]]></description>
			<content:encoded><![CDATA[<p>Зачастую многие дизайнеры в своих работах используют отличные от стандартных элементы форм. К сожалению, в процессе вёрстки подобных элементов иногда возникают те или иные трудности. Например, Dimox недавно <a href="http://dimox.name/input-submit-vertical-align-in-firefox/">поднял</a> вопрос вертикального выравнивания у кнопок в FF.</p>
<p>Я же хочу обратить ваше внимание на баг, который присутствует в IE6, 7 у текстовых полей с фоновым изображением.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">19px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/input-bg.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">1em</span> Arial<span style="color: #00AA00;">,</span>Helvetica<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p> В том случае, если введенный текст превышает ширину элемента, фоновое изображение в IE6, 7 начинает смещаться.</p>
<p><img src="http://www.alexilin.ru/wp-content/uploads/2009/12/input-bg-scroll-ie-bug.png" alt="Смещение фона у полей ввода текста в IE6 и 7" title="Смещение фона у полей ввода текста в IE6 и 7" width="500" height="150" class="aligncenter size-full wp-image-1503" /></p>
<div class="buttons">
<div>
<ul>
<li>
<a href="http://alexilin.ru/web/input-bg-ie-bug/" class="demo"><span>Демо</span></a>
</li>
</ul>
</div>
</div>
<p>Использование <code>background-attachment: fixed</code> работает только в IE6, в 7-ке проблема остаётся.</p>
<p>Можно указывать <code>background-position: right bottom</code> для фона. В этом случае изображение смещается в противоположную сторону, и смещения не видно, если не перемещать курсор обратно, в начало текста.</p>
<p>Наиболее универсальным способом является использование дополнительного элемента, например <code>span</code>, с необходимым фоном.</p>
<p>Жду ваших комментариев.</p>
<img src="http://feeds.feedburner.com/~r/alexilin/~4/vUAewCSZvMs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.alexilin.ru/input-background-scroll-ie-bug/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		<feedburner:origLink>http://www.alexilin.ru/input-background-scroll-ie-bug/</feedburner:origLink></item>
	</channel>
</rss>

