<?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>Tue, 07 Feb 2012 00:32:12 +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>jQueryのトグル式スライドメニュー</title>
		<link>http://blog.appling.jp/archives/2377</link>
		<comments>http://blog.appling.jp/archives/2377#comments</comments>
		<pubDate>Fri, 28 Jan 2011 13:46:28 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2377</guid>
		<description><![CDATA[「jQueryを使ってトグルスイッチ」をメンテナンスしました。 デモを見る サンプルをダウンロードする 主な変更は、スタイルプロパティの見直しです。]]></description>
			<content:encoded><![CDATA[<p>「<a href="http://blog.appling.jp/archives/2039" title="jQueryを使ってトグルスイッチ | appling weblog">jQueryを使ってトグルスイッチ</a>」をメンテナンスしました。</p>

<ul>
<li><a href="http://appling.jp/docs/toggle-switch/" title="デモを見る">デモを見る</a></li>
<li><a href="https://github.com/Pafuxu/jquery-toggle-switch" title="サンプルをダウンロードする">サンプルをダウンロードする</a></li>
</ul>

<p>主な変更は、スタイルプロパティの見直しです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2377/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 BOX STYLE</title>
		<link>http://blog.appling.jp/archives/2364</link>
		<comments>http://blog.appling.jp/archives/2364#comments</comments>
		<pubDate>Wed, 26 Jan 2011 22:56:37 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2364</guid>
		<description><![CDATA[AUGM in OITA のウェブページを無事に公開できたので、今回使用したボックススタイルをまとめてみました。なにかのお役に立てればいいなあ&#8230;。 ライブデモ サンプルファイル (DMG) サンプルファイル  [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.appling.jp/wp-content/uploads/2011/01/css3-box-style.png" alt="css3-box-style.png" border="0" width="968" height="598" /></p>

<p><a href="http://augm.onsenringo.org/">AUGM in OITA のウェブページ</a>を無事に公開できたので、今回使用したボックススタイルをまとめてみました。なにかのお役に立てればいいなあ&#8230;。</p>

<p><a href="http://appling.sakura.ne.jp/home/docs/css3-box-style/css3-box.html">ライブデモ</a></p>

<p><a href="http://appling.sakura.ne.jp/home/docs/css3-box-style/css3-box-style.dmg">サンプルファイル (DMG)</a></p>

<p><a href="http://appling.sakura.ne.jp/home/docs/css3-box-style/css3-box-style.zip">サンプルファイル (ZIP)</a></p>

<p>ご意見、ご感想をお待ちしております！ <img src='http://blog.appling.jp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2364/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>font-smoothingで見た目を変えてみる</title>
		<link>http://blog.appling.jp/archives/2357</link>
		<comments>http://blog.appling.jp/archives/2357#comments</comments>
		<pubDate>Fri, 21 Jan 2011 10:54:56 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[Font Smoothing]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2357</guid>
		<description><![CDATA[スタイルシートでアプリケーションのフォントの見た目を変えるのが流行りかな。今回は、-webkit-font-smoothing プロパティを使ってフォントスムージング具合を変更してみましょう。 -webkit-font- [...]]]></description>
			<content:encoded><![CDATA[<p>スタイルシートでアプリケーションのフォントの見た目を変えるのが流行りかな。今回は、<code>-webkit-font-smoothing</code> プロパティを使ってフォントスムージング具合を変更してみましょう。</p>

<pre><code>-webkit-font-smoothing: none;
-webkit-font-smoothing: subpixel-antialiased; \* Standard *\
-webkit-font-smoothing: antialiased;
</code></pre>

<p>フォント比較の参考サイト: <a href="http://files.christophzillgens.com/webkit-font-smoothing.html" title="Test page for -webkit-font-smoothing | Christoph Zillgens">Test page for -webkit-font-smoothing | Christoph Zillgens</a></p>

<p><img src="http://blog.appling.jp/wp-content/uploads/2011/01/font-smooshing.png" alt="font-smooshing.png" border="0" width="611" height="468" /></p>

<p>Safari でスタイルシートを指定してウェブページの見た目を変えてみましょう。<code>~/Documents/user.css</code> を作って以下のように記述します。</p>

<pre><code>    html {-webkit-font-smoothing: antialiased;}
</code></pre>

<p>Safari 環境設定から「詳細」パネルを表示して「スタイルシート:」で先ほど作成したスタイルシートを選択します。ウェブページを表示して、プルダウンメニューで切り替えながら違いが確認できます。</p>

<p>Safari だけじゃなく App Store や iTunes でも使いたい場合は、</p>

<pre><code>defaults write com.apple.iTunes WebKitUserStyleSheetEnabledPreferenceKey -bool true
defaults write com.apple.iTunes WebKitUserStyleSheetLocationPreferenceKey "~/Documents/user.css"

defaults write com.apple.appstore WebKitUserStyleSheetEnabledPreferenceKey -bool true
defaults write com.apple.appstore WebKitUserStyleSheetLocationPreferenceKey "~/Documents/user.css"
</code></pre>

<p>のように <code>defaults</code> コマンドを利用します。また、気に入らなければ</p>

<pre><code>defaults write com.apple.iTunes WebKitUserStyleSheetEnabledPreferenceKey -bool false
defaults write com.apple.appstore WebKitUserStyleSheetEnabledPreferenceKey -bool false
</code></pre>

<p>とすれば無効になります。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2357/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>viewport について</title>
		<link>http://blog.appling.jp/archives/2300</link>
		<comments>http://blog.appling.jp/archives/2300#comments</comments>
		<pubDate>Sun, 05 Dec 2010 11:08:15 +0000</pubDate>
		<dc:creator>Pafuxu</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[viewport]]></category>

		<guid isPermaLink="false">http://blog.appling.jp/?p=2300</guid>
		<description><![CDATA[ウェブページを iPhone などの iOS デバイスで描画する際に関係してくる meta 要素の viewport 属性について考えてみる。この viewport 属性は、iPhone などウインドウという概念を持たな [...]]]></description>
			<content:encoded><![CDATA[<p>ウェブページを iPhone などの iOS デバイスで描画する際に関係してくる meta 要素の viewport 属性について考えてみる。この viewport 属性は、iPhone などウインドウという概念を持たないデバイスが仮想的なウインドウでウェブページを表示させる方法です。viewport 属性を持った meta 要素がない場合は、viewport 属性のデフォルト値が使われます。</p>

<pre><code>&lt;meta name="viewport" content="width=980, initial-scale=1, user-scalable=yes, minimum-scale=0.25, maximum-scale=1.6" /&gt;
</code></pre>

<p>参考: <a href="http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html" title="Safari HTML Reference: Supported Meta Tags">Safari HTML Reference: Supported Meta Tags</a></p>

<p>この属性値が自動的に付与されるので、980px 以下の 640px 固定幅ウェブページは相対値 340px (980px &#8211; 640px) の余白を持ったページとなります。しかし、980px 以上 1280px 以下の場合は設定する必要はありません。</p>

<p>詳しく掘り下げていくと、却って分かりにくくなるので結論から申しますと</p>

<pre><code>&lt;meta name="viewoirt" content="width=640" /&gt;
</code></pre>

<p>と固定幅を指定するか、</p>

<pre><code>&lt;meta name="viewport" content="width=device-width" /&gt;
</code></pre>

<p>個々のデバイス幅でよろしく、とするかです。</p>

<p>両方を試してみて JavaScript 動作などに問題がなければ、きれいに表示される &#8220;width=device-width&#8221; がオススメ!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.appling.jp/archives/2300/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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; -webki [...]]]></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="https://github.com/Pafuxu/jquery-toggle-switch">サンプルをダウンロードする</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 > 540 ? [...]]]></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>
	</channel>
</rss>

