<?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>appling weblog &#187; HTML/CSS</title>
	<atom:link href="http://blog.appling.jp/archives/category/htmlcss/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.appling.jp</link>
	<description>appling comes from Apple and Playing.</description>
	<lastBuildDate>Thu, 22 Jul 2010 06:12:47 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>CSS3: グローテキスト</title>
		<link>http://blog.appling.jp/archives/2245</link>
		<comments>http://blog.appling.jp/archives/2245#comments</comments>
		<pubDate>Thu, 13 May 2010 04:19:46 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Glow]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2245</guid>
		<description><![CDATA[最近、ちょこちょこ見かけるようになったグローテキスト。

Glow Text (リンク先で実際の動きを見れます)

.glow {
    -webkit-animation-direction: alternate;
 [...]]]></description>
			<content:encoded><![CDATA[<p>最近、ちょこちょこ見かけるようになったグローテキスト。</p>

<p><a href="http://appling.sakura.ne.jp/home/docs/WebKit-GlowText.html">Glow Text</a> (リンク先で実際の動きを見れます)</p>

<pre><code>.glow {
    -webkit-animation-direction: alternate;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: glow;
}
@-webkit-keyframes glow {
    0% {
        color: black;
    }
    100% {
        color: red;
    }
}
</code></pre>

<p>ボタン周辺(box-shadow)を点滅させるのも同じ原理です。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2245/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneサイトでダイアログを表示する</title>
		<link>http://blog.appling.jp/archives/2062</link>
		<comments>http://blog.appling.jp/archives/2062#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:48:20 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2062</guid>
		<description><![CDATA[iPhone ウェブサイトを作成する際に、新規にウインドウを開いて外部サイトへ誘導する時やイベントを他のアプリに渡す場合にユーザにお知らせするユーザインターフェイスは大切ですよね。それも簡単に実装できるとなると使わない手 [...]]]></description>
			<content:encoded><![CDATA[<p>iPhone ウェブサイトを作成する際に、新規にウインドウを開いて外部サイトへ誘導する時やイベントを他のアプリに渡す場合にユーザにお知らせするユーザインターフェイスは大切ですよね。それも簡単に実装できるとなると使わない手はないです。</p>

<p><img src="http://blog.appling.jp/wp-content/uploads/2010/01/iphone-dialog.png" alt="iphone-dialog.png" border="0" width="320" height="480" /></p>

<pre><code>&lt;a 
  onclick="return confirm('メールソフトが起動します');" 
  href="mailto:email@example.com"
&gt;電子メール&lt;/a&gt;
</code></pre>

<p>ただ、あまり使いすぎるとうるさい仕様になるので程々に。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2062/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text Editor Actions for Coda v2.0b3</title>
		<link>http://blog.appling.jp/archives/2054</link>
		<comments>http://blog.appling.jp/archives/2054#comments</comments>
		<pubDate>Sat, 16 Jan 2010 07:29:57 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Coda]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2054</guid>
		<description><![CDATA[HTML 文章を書くのに Coda を使っています。ハンドコードする上で欠かせないプラグインが「Text Editor Actions for Coda」です。Espresso では標準でインストールされていますが Co [...]]]></description>
			<content:encoded><![CDATA[<p>HTML 文章を書くのに Coda を使っています。ハンドコードする上で欠かせないプラグインが「<a href="http://onecrayon.com/tea/coda/">Text Editor Actions for Coda</a>」です。<a href="http://macrabbit.com/espresso/">Espresso</a> では標準でインストールされていますが Coda では別途インストールしなければなりません。</p>

<p>何が便利かといいますと、<a href="http://code.google.com/p/zen-coding/">zen coding</a> が使えること。この構文を覚える手間がありますが、習得してしまえば作業効率が格段に向上しますよ。CSS セレクタを理解しているとすぐに使いこなせるようになります。</p>

<p>他にも、コンテンツや要素の選択が簡単にできたり、選択した要素に親要素を追加したり、とかが簡単にできるようになります。わざわざマウスに持ち替える手間がなくて入力できます。</p>

<p>一例として、箇条書きリストを ul 要素でマークアップしてみましょう。</p>

<pre><code>home
about
content
</code></pre>

<p>3行を選択した状態から Wrap With Abbreviation (control-shift-A) アクションを使います。コマンド実行シートが表示されるので</p>

<pre><code>ul&gt;li*&gt;a
</code></pre>

<p>と入力して実行します。すると</p>

<pre><code>&lt;ul&gt;
  &lt;li&gt;&lt;a href=""&gt;home&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=""&gt;about&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=""&gt;content&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>このように要素が補完された状態になります。ビデオを見るともっと理解が早まるかもしれません。</p>

<p><a href="http://vimeo.com/7405114" title="Demo video with current Zen Coding features">Demo video with current Zen Coding features</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2054/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQueryを使ってトグルスイッチ</title>
		<link>http://blog.appling.jp/archives/2039</link>
		<comments>http://blog.appling.jp/archives/2039#comments</comments>
		<pubDate>Wed, 16 Dec 2009 19:32:57 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[slidetoggle]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2039</guid>
		<description><![CDATA[久しぶりのエントリーとなりました。なんとか生きてます。

jQueryのslidetoggleメソッドを使ってスライドするメニューを作ってみました。ボタンを押すと下へメニューがするするっと降りてくるものです。言葉では伝え [...]]]></description>
			<content:encoded><![CDATA[<p>久しぶりのエントリーとなりました。なんとか生きてます。</p>

<p>jQueryのslidetoggleメソッドを使ってスライドするメニューを作ってみました。ボタンを押すと下へメニューがするするっと降りてくるものです。言葉では伝えにくいのでデモをご覧ください。また、サンプルファイルを用意してますのでご利用ください。</p>

<p><img src="http://blog.appling.jp/wp-content/uploads/2009/12/jquery-slidetoggle.png" alt="jquery-slidetoggle.png" border="0" width="316" height="169" /></p>

<ul>
<li><a href="http://appling.jp/docs/toggle-switch/">デモを見る</a></li>
<li><a href="http://dl.dropbox.com/u/136684/toggle-switch.zip">サンプルをダウンロードする</a></li>
</ul>

<p>これを作成しようと思ったきっかけは、コードエディタのEspressoがバージョンアップしたので、どのくらい機能向上したのかを確かめるためでもありました。印象は、いくぶんか安定性は増したもののまだまだ不安定な部分が見受けられます。かなり良い感じに仕上がってきているので残念です。</p>

<p>あと、コード補完を選択するショートカットキーに Control-N および Control-P が使えないのがすごく残念。これを変えられるだけでも印象はすごく変わってくるのになぁ。まだまだ、重要なドキュメントはCodaで編集することになりそうです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2039/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: max-widthをIE6で使う</title>
		<link>http://blog.appling.jp/archives/1927</link>
		<comments>http://blog.appling.jp/archives/1927#comments</comments>
		<pubDate>Wed, 07 Oct 2009 07:17:53 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[max-width]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=1927</guid>
		<description><![CDATA[私はこんな使い方をしてます。

img {
  max-width: 100% !important;
  height: auto !important;
  width: expression(this.width  [...]]]></description>
			<content:encoded><![CDATA[<p>私はこんな使い方をしてます。</p>

<pre><code>img {
  max-width: 100% !important;
  height: auto !important;
  width: expression(this.width > 540 ? 540: true); /*for ie6*/
}</code></pre>

<p>これはウェブログへ画像を配置するときに画像サイズがコンテンツボックスを上回る時はサイズを調整して収まるようにするものです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/1927/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSSで画像を裏返す</title>
		<link>http://blog.appling.jp/archives/1794</link>
		<comments>http://blog.appling.jp/archives/1794#comments</comments>
		<pubDate>Fri, 17 Jul 2009 00:42:36 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Flip]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=1794</guid>
		<description><![CDATA[スタイルシートだけでここまでできるようになるのですね。すばらしい!!

カーソルを画像の上に持っていくと画像が反転してテキストを表示してくれるという動作をします。ウィジェットの設定画面を表示する動作に似ています。ただ、こ [...]]]></description>
			<content:encoded><![CDATA[<p>スタイルシートだけでここまでできるようになるのですね。すばらしい!!</p>

<p>カーソルを画像の上に持っていくと画像が反転してテキストを表示してくれるという動作をします。ウィジェットの設定画面を表示する動作に似ています。ただ、このプロパティはここ最近リリースされた<a href="http://webkit.org">WebKit Nightly Build</a>でしか動作しません。Safari 4.0.2でも動作しないことを確認しております。</p>

<p><a href="http://appling.jp/docs/flip-image.html">http://appling.jp/docs/flip-image.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/1794/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TwitterBirdを設置</title>
		<link>http://blog.appling.jp/archives/1690</link>
		<comments>http://blog.appling.jp/archives/1690#comments</comments>
		<pubDate>Tue, 23 Jun 2009 16:51:47 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Child-theme]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://appling.sakura.ne.jp/wordpress/?p=1690</guid>
		<description><![CDATA[

電線にTwitterBirdが止まっているイメージでタイトルバナー右横に設置しました。いかがでしょう?   このアイコンをクリックすると、私のTwitterページへ移動するというものです。

さて、私のウェブログでは [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://appling.sakura.ne.jp/wordpress/wp-content/uploads/2009/06/twitter.png" alt="twitter.png" border="0" width="80" height="80" /></p>

<p>電線にTwitterBirdが止まっているイメージでタイトルバナー右横に設置しました。いかがでしょう? <img src='http://blog.appling.jp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  このアイコンをクリックすると、私のTwitterページへ移動するというものです。</p>

<p>さて、私のウェブログでは WordPress Child Theme を使っているのですが、設置方法をメモ代わりに書いておきます。</p>

<p>functions.php:</p>

<pre><code>// add a Twitter Bird
function childtheme_twitterbird() { ?&gt;
&lt;div id="twitterbird"&gt;
  &lt;a href="http://twitter.com/Pafuxu"&gt;
  &lt;img src="twitter.png" width="80" height="80" /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;?php }

add_action('thematic_header', 'childtheme_twitterbird');
</code></pre>

<p>style.css:</p>

<pre><code>#twitterbird {
    position: absolute;
    top: 135px; right: 150px;
    z-index: 1000;
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/1690/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS3でリスト要素のタイミングを取ってみる</title>
		<link>http://blog.appling.jp/archives/1669</link>
		<comments>http://blog.appling.jp/archives/1669#comments</comments>
		<pubDate>Fri, 19 Jun 2009 19:48:41 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Transition]]></category>

		<guid isPermaLink="false">http://appling.sakura.ne.jp/wordpress/?p=1669</guid>
		<description><![CDATA[-webkit-transition プロパティでいろいろ遊んでいる今日この頃。タイミングシリーズが続いてます。

一つ前のエントリーで『ばび』さんから「マウスカーソルでさーっとなぞると」とアドバイスをいただいて文字色を [...]]]></description>
			<content:encoded><![CDATA[<p><code>-webkit-transition</code> プロパティでいろいろ遊んでいる今日この頃。タイミングシリーズが続いてます。</p>

<p><a href="http://appling.sakura.ne.jp/wordpress/archives/1661" title="CSS3でリンク要素のタイミングを取ってみる">一つ前のエントリー</a>で『ばび』さんから「<q cite="http://appling.sakura.ne.jp/wordpress/archives/1661#comment-482">マウスカーソルでさーっとなぞると</q>」とアドバイスをいただいて文字色を変えるだけでは目立たないなぁと思えてきて、マウスオーバーすると文字を少しずらした方が目立つかもとやってみました。</p>

<pre><code>li a:hover { margin-left: -5px; }
li a { -webkit-transition: margin-left 0.25s linear; }</code></pre>

<p>右サイドメニューの「最近のエントリー」と「カテゴリー」に適用しているのでマウスオーバーして実際の動きを確かめてみてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/1669/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3でリンク要素のタイミングを取ってみる</title>
		<link>http://blog.appling.jp/archives/1661</link>
		<comments>http://blog.appling.jp/archives/1661#comments</comments>
		<pubDate>Thu, 18 Jun 2009 06:34:14 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Transition]]></category>

		<guid isPermaLink="false">http://appling.sakura.ne.jp/wordpress/?p=1661</guid>
		<description><![CDATA[HTMLの肝であるハイパーリンク。文章中にある場合はアンダーラインを入れたり、色を変えたりして目立たせるようにしていると思います。ハイパーリンクにカーソルを近づけると色を変えたりと方法はいろいろ。このウェブログでもハイパ [...]]]></description>
			<content:encoded><![CDATA[<p>HTMLの肝であるハイパーリンク。文章中にある場合はアンダーラインを入れたり、色を変えたりして目立たせるようにしていると思います。ハイパーリンクにカーソルを近づけると色を変えたりと方法はいろいろ。このウェブログでもハイパーリンクにアンダーラインを入れてマウスが近づけば色を変えるようにしてます。これに、<code>-webkit-transition</code> でタイミングを取ってゆっくり(0.5秒)と色が変わるようにしてみました。簡単にできるので試してみてください。ただ、WebKit レンダリングエンジンを利用するウェブブラウザしか動作しないのであしからず。それ以外のウェブブラウザでは、今まで通りに動作するので問題はないでしょう。</p>

<p>a:link, a:visited { -webkit-transition: color 0.25s ease-in-out; }</p>

<p><del datetime="2009-06-19T21:03:51+00:00" markdown='1'><code>a:hover</code> セレクタを設定しているのであればプロパティを追加すればいいし、利用してなければ文字色を指定してこのままを書き入れましょう。</del>上記をスタイルシートへ書き入れてください。</p>

<p>試しに、このウェブログのエントリー一覧でエントリータイトルやその他のハイパーリンクにマウスを近づけて動作を確認してみてください。</p>

<p>追記(2009-06-18): ばびさんからアドバイスをいただき、マウスイン/アウトで動作するように書き換えました。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/1661/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTML5に本腰を入れてみる</title>
		<link>http://blog.appling.jp/archives/1659</link>
		<comments>http://blog.appling.jp/archives/1659#comments</comments>
		<pubDate>Thu, 18 Jun 2009 06:02:11 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://appling.sakura.ne.jp/wordpress/?p=1659</guid>
		<description><![CDATA[先のWWDC2009で話題になっていたHTML5を本気になって調べてみた。でも、2011年勧告はあり得ないらしいので、ちょっと力が抜けた。まだ、草案の状態なのでどれが正しくてどれが間違っているのかがわからない。あのアップ [...]]]></description>
			<content:encoded><![CDATA[<p>先のWWDC2009で話題になっていたHTML5を本気になって調べてみた。でも、2011年勧告はあり得ないらしいので、ちょっと力が抜けた。まだ、草案の状態なのでどれが正しくてどれが間違っているのかがわからない。あのアップルがSafari4ベータで華々しくHTML5ウェブページを登場させたけど、検証してみると間違いが多かったようですね。なので、この時期は程々にしておいてお遊び程度にやっておくのがいいのかも。と、いうことで、お遊びをやってみました。</p>

<p>練習サイト: <a href="http://appling.jp/docs/html5-css3.html">実践 CSS3 のまとめ</a></p>

<p>骨格が出来上がった状態で小休止。一応 <a href="http://validator.w3.org/">W3C</a> でチェックしてもらったら合格点をいただきました。後は、見た目をどうするかです。そのうち、ぼちぼちやっていこうと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/1659/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
