<?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>Snippet-Editor.com</title>
	<atom:link href="http://snippet-editor.com/feed" rel="self" type="application/rss+xml" />
	<link>http://snippet-editor.com</link>
	<description>仕事で使えるHTML5・CSS3などのナイスなアイデアを収集しています。（一緒に投稿していただける方を募集中です）</description>
	<lastBuildDate>Sun, 10 Jul 2011 02:57:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>アスキー・メディアワークスより『HTML5読本』を出版します</title>
		<link>http://snippet-editor.com/2011/01/html5-book.html</link>
		<comments>http://snippet-editor.com/2011/01/html5-book.html#comments</comments>
		<pubDate>Thu, 20 Jan 2011 19:01:26 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[書籍]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1422</guid>
		<description><![CDATA[来る1月25日に（株）ニューズフロントの植木皓氏と筆者（春日）の共著で『仕事にすぐ効く！ HTML5読本』が（株）アスキー・メディアワークスさまより出版する運びとなりましたので、ご報告いたします。]]></description>
			<content:encoded><![CDATA[<div style="text-align: center; padding: 1em 0;"><a href="/2011/01/html5-book.html"><img src="http://media.snippet-editor.com/2011/01/html5-book.png" alt="HTML5 Logo" class="png" /></a></div>
<p>1月25日に<a href="http://www.newsfront.jp/html5/" target="_blank">（株）ニューズフロントの植木氏</a>と筆者の共著で『<a href="http://www.amazon.co.jp/gp/product/4048702203" target="_blank">仕事にすぐ効く！ HTML5読本</a>』を、（株）アスキー・メディアワークスさまより出版する運びとなりましたので、ご報告いたします。</p>
<p><span id="more-1422"></span></p>
<p>本書はウェブ制作に直接関わらない方にも読んでいただけることを目標とし、</p>
<ul>
<li>第1章：HTML5で大きく変わるウェブの世界</li>
<li>第2章：HTMLの歴史からHTML5へ</li>
<li>第3章：コードで分かるHTML5の新機能</li>
<li>第4章：HTML5とともに使うCSS3の最新技術</li>
</ul>
<p>の4部構成になっています。</p>
<p>第1章は近年のHTML5をとりまく企業の思惑と攻防について、ビジネス書的なスタイルで展開してあります。（担当・植木氏）</p>
<p>第2章はティム・バーナーズ＝リーやイアン・ヒクソンといった主要人物に触れながら、HTMLの歴史的経緯を解説。（以降、担当・春日）</p>
<p>第3章と第4章ではHTML5とCSS3を<b>今日から使う</b>ためのコードを解説。編集方針から用語も難解なものは避けてあります。</p>
<p>前半と後半で営業畑の方から制作畑の方へと読み回していただけると、内容的にはちょうどいいかもしれません。（電子書籍でも販売されるそうなので、そちらをお求めいただけるとなお嬉しいです）</p>
<p>執筆時にはまさか<a href="http://www.w3.org/html/logo/" target="_blank">W3Cからロゴが登場</a>したり、「<a href="http://twitter.com/futomi/status/27862631226281985" target="_blank">HTML5と呼ぶのをやめてHTMLにしよう</a>」なんて話が出るとは夢にも思いませんでしたので、もう既にネタが古いとか言われそうですが、なるべく風化しなさそうな部分を選んで書籍化いたしましたので、ぜひご一読いただけると幸いです。</p>
<p>お求めは<a href="http://www.amazon.co.jp/gp/product/4048702203" target="_blank">こちらから</a>どうぞ。</p>
<ol class="note">
<li>HTML5 Logo is attributed to the W3C.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2011/01/html5-book.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTMLの骨組みが見える、デバッグ用CSS</title>
		<link>http://snippet-editor.com/2010/10/xray-debug-css.html</link>
		<comments>http://snippet-editor.com/2010/10/xray-debug-css.html#comments</comments>
		<pubDate>Tue, 05 Oct 2010 15:37:44 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[RGBA]]></category>
		<category><![CDATA[デバッグ]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1412</guid>
		<description><![CDATA[HTMLの骨組みが見える、デバッグ用CSSです。RGBAを使って色を指定しているので、重なっているところはより濃く見えます。]]></description>
			<content:encoded><![CDATA[<pre class="brush: css;">
* { outline: 2px solid rgba(255, 0, 0, 0.1) !important; }
</pre>
<p><span id="more-1412"></span></p>
<p>あまり実用的でないかもしれませんが、かっこよかったのでポスト。</p>
<p>RGBAを使って色を指定しているので、重なっているところはより濃く見えます<sup>[<a href="#note">1</a>]</sup>。</p>
<p>全称セレクタをやめれば、特定の部位にだけ線を引くこともできます。</p>
<pre class="brush: css;">
YOUR-ELEMENT { outline: 2px solid rgba(255, 0, 0, 0.1) !important; }
</pre>
<ol class="note" id="note">
<li>IE6で見ても何も起こりませんのであしからず…</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/10/xray-debug-css.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ブログのサイドバーをHTML5流のセマンティクスにする</title>
		<link>http://snippet-editor.com/2010/10/html5-semantic-sidebar.html</link>
		<comments>http://snippet-editor.com/2010/10/html5-semantic-sidebar.html#comments</comments>
		<pubDate>Sun, 03 Oct 2010 17:35:19 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[aside]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[section]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1399</guid>
		<description><![CDATA[ブログのサイドバーをHTML5流のセマンティクスにする方法をご紹介します。あらかじめDoctypeをHTML5用にしておく必要があります。]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml;">
&lt;aside&gt;
&lt;div class=&quot;aside&quot;&gt;

&lt;section&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;h1&gt;SIDEBAR TITLE HERE&lt;/h1&gt;
&lt;ul&gt;
	&lt;li&gt;LIST ITEM&lt;/li&gt;
	&lt;li&gt;LIST ITEM&lt;/li&gt;
	&lt;li&gt;LIST ITEM&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- /section --&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;h1&gt;SIDEBAR TITLE HERE&lt;/h1&gt;
&lt;ul&gt;
	&lt;li&gt;LIST ITEM&lt;/li&gt;
	&lt;li&gt;LIST ITEM&lt;/li&gt;
	&lt;li&gt;LIST ITEM&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;!-- /section --&gt;
&lt;/section&gt;

&lt;/div&gt;&lt;!-- /aside --&gt;
&lt;/aside&gt;
</pre>
<p><span id="more-1399"></span></p>
<p>セマンティクスと横文字で攻めて見ましたが、要するに「意味」という意味です。</p>
<p>HTML5では、サイドバーはasideタグ。見出しを含む一塊はsectionタグで記述します。</p>
<p>各sectionタグの内側はh1から始めることができるので、サイドバーの見出しレベル論争（そういうものがあるとしたら）も終焉を迎えそうです。</p>
<p>現在は過渡期にあるので、CSSは全て冗長気味に書いてあるdivタグ（div.aside, div.section）の方に当てました。</p>
<p>なお、asideタグやsectionタグを使用するためには、DoctypeをHTML5にする必要がありますので、下をご参考までに。CSSもお忘れなく。</p>
<pre class="brush: xml; highlight: [6];">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;title&gt;&lt;/title&gt;
&lt;style&gt;aside, section { display: block; }&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>表示させるだけなら、IE6でも特に問題はありませんでした。その他、Firefox 3以降、Safari 4以降、ChromeとOperaの最新版で確認してあります。</p>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/10/html5-semantic-sidebar.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>等幅フォントが小さく表示されるのを防ぐ</title>
		<link>http://snippet-editor.com/2010/09/fix-monospace-font-size.html</link>
		<comments>http://snippet-editor.com/2010/09/fix-monospace-font-size.html#comments</comments>
		<pubDate>Wed, 29 Sep 2010 16:15:19 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[font-size]]></category>
		<category><![CDATA[等幅フォント]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1376</guid>
		<description><![CDATA[CSSで等幅フォントを指定すると一部のブラウザが文字を小さめにレンダリングするのを防ぐ方法をご紹介。]]></description>
			<content:encoded><![CDATA[<pre class="brush: css;">
YOUR-ELEMENT { font-family: &quot;Courier New&quot;, Courier, sans-serif; }
</pre>
<p><span id="more-1376"></span></p>
<p>CSSで等幅フォントを指定すると一部のブラウザが文字を小さめにレンダリングしてしまうのを防ぐ方法をご紹介します。</p>
<p>通常は下のようにお尻に&quot;monospace&quot;と書きますが、これを&quot;sans-serif&quot;にするだけです<sup>[<a href="#note">1</a>]</sup>。</p>
<pre class="brush: css;">
YOUR-ELEMENT { font-family: &quot;Courier New&quot;, Courier, monospace; }
</pre>
<p>&quot;Courier New&quot;や&quot;Courier&quot;はかなり昔のコンピュータにもインストールされているので、&quot;sans-serif&quot;の記述に関わらず、実際には等幅フォントが当たり、かつ文字が小さくなる問題も解消することができます。</p>
<p>等幅フォントの追加はお好みで。当サイトでは先頭に&quot;<a href="http://www.google.com/search?q=フォント+Menlo" target="_blank">Menlo</a>&quot;を追加しています。</p>
<pre class="brush: css;">
code { font-family: Menlo, &quot;Courier New&quot;, Courier, sans-serif; }
</pre>
<ol class="note" id="note">
<li>原理的には間違った記述ですが、現実的には問題解決していますので、後はご判断ください…。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/fix-monospace-font-size.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3で書いて、スクリーンショットを取って、ボタンにする</title>
		<link>http://snippet-editor.com/2010/09/button-image-made-with-css3.html</link>
		<comments>http://snippet-editor.com/2010/09/button-image-made-with-css3.html#comments</comments>
		<pubDate>Tue, 28 Sep 2010 13:19:48 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[CSS画像置換]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1357</guid>
		<description><![CDATA[CSS3を使えばPhotoshopやFireworksでやるような作業を代行できます。後はスクリーンショットを取るだけです。]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml;">
&lt;!DOCTYPE html&gt;
&lt;html dir=&quot;ltr&quot; lang=&quot;ja&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;title&gt;Safari CSS3 Button&lt;/title&gt;
&lt;style&gt;
body { font-size: 12px; font-family: &quot;Lucida Grande&quot;, sans-serif; -webkit-text-stroke: 1px transparent; background: #aaa; padding: 20px; margin: 0; }
ul { clear: both; float: left; width: 100%; padding: 0; margin: 0; }
ul li { clear: both; float: left; list-style-position: outside; list-style-type: none; background: #fff; padding: 2px; margin: 0 3px; }

a:link,
a:visited { color: #fff; font-weight: bold; text-decoration: none; text-align: center; line-height: 1.1; background: #1f5c99; float: left; -webkit-border-radius: 5px; padding: 1px; margin: 0; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); }
a:link span,
a:visited span { text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4); float: left; border: 1px solid hsla(0, 0%, 100%, 0.33); border-top-color: hsla(0, 0%, 100%, 0.66); border-bottom: none; -webkit-border-radius: 4px; padding: 0.2em 1.4em 0.3em; margin: 0;}

a:hover,
a.hover,
a.active { -webkit-box-shadow: none; }
a.hover,
a.active { cursor: default; }

a.link:link span,
a.link:visited span { background: -webkit-gradient(linear, left top, left bottom, from( hsla(0, 0%, 100%, 0.4)), color-stop(0.5, hsla(0, 0%, 100%, 0.2)), color-stop(0.5, hsla(0, 0%, 100%, 0.1)), to( hsla(0, 0%, 100%, 0.2))); }
a.hover span,
a.link:hover span { background: -webkit-gradient(linear, left top, left bottom, from( hsla(0, 0%, 100%, 0.5)), color-stop(0.5, hsla(0, 0%, 100%, 0.25)), color-stop(0.5, hsla(0, 0%, 100%, 0.25)), to( hsla(0, 0%, 100%, 0.2))); }
a.active,
a.link:active { background: -webkit-gradient(linear, left top, left bottom, from( hsl(0, 0%, 10%)), color-stop(0.25, hsl(0, 0%, 20%)), to( hsl(0, 0%, 33%))); }
a.active span,
a.link:active span { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); background: none; border-color: transparent; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;#null&quot; class=&quot;link&quot;&gt;&lt;span&gt;Download&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#null&quot; class=&quot;hover&quot;&gt;&lt;span&gt;Download&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#null&quot; class=&quot;active&quot;&gt;&lt;span&gt;Download&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><span id="more-1357"></span></p>
<p>上のコードをSafariで実行する<sup>[<a href="#note">1</a>]</sup>と以下のようなスクリーンショットが撮れます。</p>
<p class="center"><img src="http://media.snippet-editor.com/2010/09/button-image-made-with-css3-screenshot.png" alt="Screenshot" /></p>
<p>これをフォトショップで開いて、「イメージ」メニューから「トリミング…」を実行します。</p>
<p class="center"><img src="http://media.snippet-editor.com/2010/09/button-image-made-with-css3-triming.png" alt="「トリミング…」" class="png" /></p>
<p>これでボタン用画像の完成です。</p>
<p class="center"><img src="http://media.snippet-editor.com/2010/09/button-image-made-with-css3-download.png" alt="Download" /></p>
<p>実際にアプライするとこうなります。</p>
<div class="center" style="width: 102px;"><a href="#null" class="replace" style="width: 102px; height: 25px;">Download<span class="image active" style="background-image: url(http://media.snippet-editor.com/2010/09/button-image-made-with-css3-download.png);"></span></a></div>
<p>基本HTMLなので文字や色なども簡単に変更可能です。</p>
<ol class="note" id="note">
<li>開発メニューから「スニペットエディタ」を開いてコピペするのが簡単です。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/button-image-made-with-css3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bodyのclassにカテゴリー名を入れる</title>
		<link>http://snippet-editor.com/2010/09/category-into-body-class.html</link>
		<comments>http://snippet-editor.com/2010/09/category-into-body-class.html#comments</comments>
		<pubDate>Sun, 26 Sep 2010 04:45:32 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[body class]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1345</guid>
		<description><![CDATA[WordPressを使って、Bodyタグのclassにカテゴリー名を入れるスニペット。ナビをハイライトさせたり、カテゴリごとにデザインを切り替えたりするのに使えます。]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;body class=&quot;&lt;?php if ( is_category() || is_single() ) { ?&gt;&lt;?php $cat = get_the_category(); $cat = $cat[0]; { echo $cat -&gt; category_nicename; } ?&gt;&lt;?php } ?&gt;&quot;&gt;
</pre>
<p><span id="more-1345"></span></p>
<p>WordPressを使って、Bodyタグのclassにカテゴリー名<sup>[<a href="#note">※</a>]</sup>を入れるスニペット。</p>
<p>ナビをハイライトさせたり、カテゴリごとにデザインを切り替えたりするのに使えます。</p>
<ol class="note" id="note">
<li>正確にはカテゴリーのスラッグ</li>
<li>スラッグが数字から始まったり、日本語が混じる場合はclass名に向いてませんので、あしからず…。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/category-into-body-class.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>検索窓に検索語句を残す</title>
		<link>http://snippet-editor.com/2010/09/wordpress-search-form-improvement.html</link>
		<comments>http://snippet-editor.com/2010/09/wordpress-search-form-improvement.html#comments</comments>
		<pubDate>Fri, 24 Sep 2010 03:05:56 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[placeholder]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[検索窓]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1316</guid>
		<description><![CDATA[サイト内検索から検索して検索ページに行くと検索窓に検索語句が残ってないという残念な感じのWordPressテーマ向けスニペット。]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;form action=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot; method=&quot;get&quot;&gt;
&lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php the_search_query(); ?&gt;&quot; /&gt;
&lt;/form&gt;
</pre>
<p><span id="more-1316"></span></p>
<p>サイト内検索から検索ページに行くと検索窓に検索語句が残ってないという残念な感じのWordPressテーマに必要なスニペットです（上）。</p>
<p>当サイトではもう少し改良を加えました（下）。</p>
<pre class="brush: php;">
&lt;form action=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot; method=&quot;get&quot;&gt;
&lt;input type=&quot;text&quot; class=&quot;text&quot; name=&quot;s&quot;
&lt;?php if ( is_search() ): ?&gt;
value=&quot;&lt;?php the_search_query(); ?&gt;&quot;
&lt;?php else: ?&gt;
value=&quot;Search&quot; onfocus=&quot;if(this.value=='Search')this.value=''&quot; onblur=&quot;if(this.value=='')this.value='Search'&quot;
&lt;?php endif; ?&gt;
 /&gt;
&lt;/form&gt;
</pre>
<p>これで普段は「Search」と表示され、検索ページでは検索語句が表示されるように。カラーリングには下のCSSを当てています。</p>
<pre class="brush: css;">
input.text { color: #888; }
input.text:focus { color: #222; background-color: #ffe; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/wordpress-search-form-improvement.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>import.cssならぬ、import.js</title>
		<link>http://snippet-editor.com/2010/09/import-js.html</link>
		<comments>http://snippet-editor.com/2010/09/import-js.html#comments</comments>
		<pubDate>Thu, 23 Sep 2010 05:59:19 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[import.js]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1249</guid>
		<description><![CDATA[WordPressではあまりメリットがありませんが、静的生成をするCMSを使っている場合、JSの追加／削除が瞬時に反映されるようになります。]]></description>
			<content:encoded><![CDATA[<pre class="brush: jscript;">
function importJS() {
    if (! new Array().push) return false;
    var scripts = new Array(
         'YOUR-PATH/YOUR-SCRIPT1.js'
        ,'YOUR-PATH/YOUR-SCRIPT2.js'
        ,'YOUR-PATH/YOUR-SCRIPT3.js'
    );
    for (var i=0; i&lt;scripts.length; i++) {
        document.write('&lt;script type=&quot;text/javascript&quot; src=&quot;' +scripts[i] +'&quot;&gt;&lt;\/script&gt;');
    }
}
importJS();
</pre>
<p><span id="more-1249"></span></p>
<p>上の内容をimport.jsの名前で保存し、HTML側には下の一行を追記します。</p>
<pre class="brush: xml;">
&lt;script type=&quot;text/javascript&quot; src=&quot;YOUR-PATH/import.js&quot;&gt;&lt;/script&gt;
</pre>
<p>WordPressではあまりメリットがありませんが、静的生成を必要とするCMSを使っている場合、JSの追加／削除が瞬時に反映されるようになります。</p>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/import-js.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3のMedia Queryを使ってFollowバッジが被らないようにする</title>
		<link>http://snippet-editor.com/2010/09/media-query-max-width.html</link>
		<comments>http://snippet-editor.com/2010/09/media-query-max-width.html#comments</comments>
		<pubDate>Wed, 22 Sep 2010 09:26:46 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[media-query]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1230</guid>
		<description><![CDATA[CSS3のMedia Queryを使えば、ウィンドウが所定のサイズを下回った際に「Follow me」バッジを自動的に非表示にすることができます。]]></description>
			<content:encoded><![CDATA[<pre class="brush: css;">
@media only screen and (max-width: 960px) {
div#twitterFollowBadge { display: none; }
}
</pre>
<p><span id="more-1230"></span></p>
<p>遅ればせながら「Follow me」バッジを付けてみました。</p>
<p>で、多少気になるのがウィンドウサイズを狭めた際に、バッジがコンテンツにかぶること。</p>
<p>CSS3のMedia Queryを使えば、所定のサイズを下回った際に自動的に非表示にすることができます。</p>
<p>SafariやChromeなど対応ブラウザでご確認ください。</p>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/media-query-max-width.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ナビゲーションをolで書いて、accesskeyをプラス</title>
		<link>http://snippet-editor.com/2010/09/nav-ol-accesskey.html</link>
		<comments>http://snippet-editor.com/2010/09/nav-ol-accesskey.html#comments</comments>
		<pubDate>Tue, 21 Sep 2010 03:53:44 +0000</pubDate>
		<dc:creator>tomohiro_kasuga</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[accesskey]]></category>
		<category><![CDATA[nav]]></category>

		<guid isPermaLink="false">http://snippet-editor.com/?p=1184</guid>
		<description><![CDATA[スタイルシートを外されて「裸」を見られているような場合で、ナビゲーションをolで書いておくとアクセスキーが何なのかとても想像しやすくなります。]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml;">
&lt;div class=&quot;nav&quot;&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a accesskey=&quot;1&quot; href=&quot;/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a accesskey=&quot;2&quot; href=&quot;/html&quot;&gt;HTML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a accesskey=&quot;3&quot; href=&quot;/css&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a accesskey=&quot;4&quot; href=&quot;/javascript&quot;&gt;JavaScript&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a accesskey=&quot;5&quot; href=&quot;/jquery&quot;&gt;jQuery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a accesskey=&quot;6&quot; href=&quot;/wordpress&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a accesskey=&quot;7&quot; href=&quot;/feed&quot;&gt;RSS&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</pre>
<p><span id="more-1184"></span></p>
<p>サイトのナビゲーションをolタグで書いておくと、スタイルシートを無効にして「裸」にされた場合にちょっと素敵なことが起こります（アクセスキーが書いてある）。</p>
<p>かなり特殊なケースですが、喜んでいただける方がいないとも限りません<sup>[<a href="#note">1</a>]</sup>。</p>
<ol class="note" id="note">
<li>アクセスキーに2桁の数字は使えませんので、あしからず…</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://snippet-editor.com/2010/09/nav-ol-accesskey.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

