<?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>ひろぽっぽれす &#187; CSS</title>
	<atom:link href="http://hiropo.co.uk/archives/category/css/feed" rel="self" type="application/rss+xml" />
	<link>http://hiropo.co.uk</link>
	<description>Web系エンジニアの適当なブログです。どうでも酔いものばかり作ってます。</description>
	<lastBuildDate>Mon, 12 Mar 2012 06:10:01 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>気になっちゃうシリーズ。 &#8211; youtube編</title>
		<link>http://hiropo.co.uk/archives/55</link>
		<comments>http://hiropo.co.uk/archives/55#comments</comments>
		<pubDate>Wed, 10 Dec 2008 17:05:25 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[(X)HTML+CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[気になっちゃう]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=55</guid>
		<description><![CDATA[↑の画像の「チャンネル登録」をクリックすると・・・、 はい崩れた！今クリックしたら崩れたよ！！]]></description>
			<content:encoded><![CDATA[<p><a href="http://hiropo.co.uk/wp-content/uploads/2008/12/a.jpg"><img class="alignnone size-medium wp-image-56" title="びふぉあ" src="http://hiropo.co.uk/wp-content/uploads/2008/12/a-300x196.jpg" alt="" width="300" height="196" /></a></p>
<p>↑の画像の「チャンネル登録」をクリックすると・・・、</p>
<p><a href="http://hiropo.co.uk/wp-content/uploads/2008/12/e784a1e9a18c.jpg"><img class="alignnone size-medium wp-image-57" title="あふたぁ" src="http://hiropo.co.uk/wp-content/uploads/2008/12/e784a1e9a18c-300x241.jpg" alt="" width="300" height="241" /></a></p>
<p>はい崩れた！今クリックしたら崩れたよ！！</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/55/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cssハック まとめ</title>
		<link>http://hiropo.co.uk/archives/39</link>
		<comments>http://hiropo.co.uk/archives/39#comments</comments>
		<pubDate>Wed, 11 Jun 2008 01:47:05 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/39</guid>
		<description><![CDATA[firefox div {} opera html:first-child div {} safari html* div {} Ie6 *html div {} Ie7 *+html div {} ※全部個別に指定して &#8230; <a href="http://hiropo.co.uk/archives/39">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>firefox</p>
<pre>
div {}
</pre>
<p>opera</p>
<pre>
html:first-child div {}
</pre>
<p>safari</p>
<pre>
html* div {}
</pre>
<p>Ie6</p>
<pre>
*html div {}
</pre>
<p>Ie7</p>
<pre>
*+html div {}
</pre>
<p>※全部個別に指定してあげないとズレるかもしれない。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/39/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clearfix &#8211; IE7対応</title>
		<link>http://hiropo.co.uk/archives/27</link>
		<comments>http://hiropo.co.uk/archives/27#comments</comments>
		<pubDate>Wed, 23 Jan 2008 10:48:49 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/27</guid>
		<description><![CDATA[.clearfix { zoom:1;/*for IE 5.5-7*/ } .clearfix:after {/*for modern browser*/ content: "."; display: block; he &#8230; <a href="http://hiropo.co.uk/archives/27">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>
.clearfix {
	zoom:1;/*for IE 5.5-7*/
}
.clearfix:after {/*for modern browser*/
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/27/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mixi wordpress テーマ ver.0.0.4（バグ取り完了っぽい）</title>
		<link>http://hiropo.co.uk/archives/18</link>
		<comments>http://hiropo.co.uk/archives/18#comments</comments>
		<pubDate>Fri, 21 Dec 2007 17:45:49 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ｦﾁらせ]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/18</guid>
		<description><![CDATA[僕が作ってるwordpress用のmixiっぽいテンプレートですが、最後のバグ取り（Safariでカレンダーのボーダーが正しく表示されない）が完了しました。 safariって、Web標準に一番近い挙動で動くブラウザですが &#8230; <a href="http://hiropo.co.uk/archives/18">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>僕が作ってるwordpress用のmixiっぽいテンプレートですが、最後のバグ取り（Safariでカレンダーのボーダーが正しく表示されない）が完了しました。</p>
<p>safariって、Web標準に一番近い挙動で動くブラウザですが、これが結構対応がわかんなかった。</p>
<p>厳格なのか何なのかわかんないんですが、tableのwidthが178pxなのに、captionのwidthが180pxになっていたので、caption分がtableの枠からはみ出して、 右ボーダーを正しく表示できてなかったようです。サイズ揃えたら、いとも簡単に表示されたお（´ω`）</p>
<p>そんな、最新版の<strong><a href="http://www.ikepo.com/" title="mixi風wordpressテーマ">mixi風wordpressテンプレートのダウンロードはこちら</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/18/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>デザインちょっちリニューアル</title>
		<link>http://hiropo.co.uk/archives/17</link>
		<comments>http://hiropo.co.uk/archives/17#comments</comments>
		<pubDate>Thu, 20 Dec 2007 08:38:17 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[ｦﾁらせ]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/17</guid>
		<description><![CDATA[ひろぽっぽれすのデザインをちょっちいじりました。ヘッダー部分をもちっといじっていこうと思います。]]></description>
			<content:encoded><![CDATA[<p>ひろぽっぽれすのデザインをちょっちいじりました。ヘッダー部分をもちっといじっていこうと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS画像置換について</title>
		<link>http://hiropo.co.uk/archives/16</link>
		<comments>http://hiropo.co.uk/archives/16#comments</comments>
		<pubDate>Thu, 20 Dec 2007 06:58:36 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/16</guid>
		<description><![CDATA[こんちゃす。海外のCSSデザインを見ていたら、text-indent: -9999px; とは違う画像置換方法を見つけました。（既出かも） 旧式では、CSS側で、text-indent: -9999px; などと指定して &#8230; <a href="http://hiropo.co.uk/archives/16">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>こんちゃす。海外のCSSデザインを見ていたら、text-indent: -9999px; とは違う画像置換方法を見つけました。（既出かも）</p>
<p>旧式では、CSS側で、text-indent: -9999px; などと指定して、テキストを飛ばして、バックグラウンドに画像を指定する下記のようなテクニックを使います。</p>
<p><strong>text-indent: -9999px を使ったテクニック</strong></p>
<pre>
&lt;div&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;テキスト&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</pre>
<pre>
div a {
	display: block;
	width: 45px;
	height: 45px;
	background: url(images/bg_off.gif) no-repeat 0 0;
	&lt;strong style=&quot;color: #ff0000&quot;&gt;text-indent: -9999px; /*ここでテキストを飛ばす*/&lt;/strong&gt;
}
div a:hover {
	background: url(images/bg_on.gif) no-repeat 0 0;
}
</pre>
<p>しかし、これでは、キーボードでのタブ移動の際に選択がわかりにくくなって、アクセシビリティ的によくないとのことから、display: none; を使った画像置換テクニックもあります。</p>
<p><strong>display: none; を使った画像置換テクニック</strong></p>
<pre>
&lt;div&gt;&lt;a href=&quot;#&quot;&gt;&lt;span&gt;テキスト&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</pre>
<pre>
div a {
	display: block;
	width: 45px;
	height: 45px;
	background: url(images/bg_off.gif) no-repeat 0 0;
}
div a:hover {
	background: url(images/bg_on.gif) no-repeat 0 0;
}
div span {
	display: none; /*テキストを表示させない。*/
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fontまわりのハックについて</title>
		<link>http://hiropo.co.uk/archives/15</link>
		<comments>http://hiropo.co.uk/archives/15#comments</comments>
		<pubDate>Wed, 19 Dec 2007 06:05:11 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/15</guid>
		<description><![CDATA[* （ユニバーサルセレクタ）ですべてのフォントサイズを100%に して、そこからタグごとの指定をするのが定石です。 * { font-size: 100%; } p { font-size: 80%; } この記述をハッ &#8230; <a href="http://hiropo.co.uk/archives/15">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>* （ユニバーサルセレクタ）ですべてのフォントサイズを100%に<br />
して、そこからタグごとの指定をするのが定石です。</p>
<pre>
* {
      font-size: 100%;
}
p {
      font-size: 80%;
}
</pre>
<p>この記述をハックを使用して記述するとこうなります。</p>
<pre>
body {
      font-size: 12px; /*モダンブラウザ*/
      _font-size: x-small; /*IE*/
}
</pre>
<p>でもこのハックはIE7では有効ではなくて、font-size: 12px; で<br />
絶対指定することになってしまいます。<br />
なので、「*（アスタリスク）ハック」を使用します。</p>
<pre>
body {
      font-size: 12px; /* モダンブラウザ */
      *font-size: small; /* IE 7 */
      *font: x-small; /* IE 6以下 */
}
</pre>
<p>ショートハンドのfont プロパティには、font-sizeとfont-familyの値が<br />
必須となります。なので、3行目の技術は不正なプロパティとなり、<br />
仕様に準拠しているブラウザでは無視され、IEだけ読み込んでしまいます（笑）</p>
<p>で、これらの文法違反をクリアしようとするとこうなります。</p>
<pre>
body {
      font-size: small !important; /* IE 7向け */
      font-size: x-small; /* IE 6以下 */
}
html&gt;/**/body {
      font-size: 13px; /* モダンブラウザ向け */
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自動改行されない</title>
		<link>http://hiropo.co.uk/archives/14</link>
		<comments>http://hiropo.co.uk/archives/14#comments</comments>
		<pubDate>Tue, 18 Dec 2007 09:06:05 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[バグ]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/14</guid>
		<description><![CDATA[FirefoxやNetscape 等、Geckoエンジンを用いたブラウザでは、連続した半角文字（長いURLや半角空白のないスクリプト等）を途中で折り返せない という既知のバグがあります。 【前提：連続する半角英数字が改行 &#8230; <a href="http://hiropo.co.uk/archives/14">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>FirefoxやNetscape 等、Geckoエンジンを用いたブラウザでは、連続した半角文字（長いURLや半角空白のないスクリプト等）を途中で折り返せない<br />
という既知のバグがあります。</p>
<blockquote><p>【前提：連続する半角英数字が改行されない】<br />
通常、テキストは右端で折り返しされるはずですが、URL (URI) 等の連続する半角文字は一つの単語と扱われ、折り返さない場合が多いです。</p>
<p>つまり、</p>
<p>&#8220;aaaaaaaaaaaaaaaaaaaaaaaaa&#8221;はコンピュータからみれば一つの単語で、途中に改行が入ることが許されません。</p>
<p>ということです。</p>
<p>参考資料：<br />
・半角文字列の折り返し（ブラウザ毎の比較があります）<br />
<a href="http://pinotan.blog15.fc2.com/file/word-break.html" target="_blank">http://pinotan.blog15.fc2.com/file/word-break.html</a></p></blockquote>
<blockquote><p>【通常の対処方法】</p>
<ol>
<li>htmlタグbrで強制改行。</li>
<li>はみ出し部分をCSS（overflow:hidden)で切り落とす。（IE6は親ボックスの幅が広がるバグがあるので、widthで直接的に幅を指定しないと効かない)</li>
<li>CSSにword-break:break-allを指定し、IEだけ右端で改行。（ボックス幅の広がりを防げるが、単語区切りにならず英数字が読み辛い)</li>
<li>CSSにword-break:keep-allを指定し、IEだけ右端で改行。（単語区切りのみで改行。区切りが無いと全角でも改行されない)</li>
<li>区切り記号を全角にする。（稀に折り返さないケースもある)</li>
<li>半角記号を空白(スペース)で挟む。</li>
<li>単語の区切りなどに&lt;wbr&gt;(&lt;wbr /&gt;)を入れる。</li>
</ol>
<p>参考資料：<br />
7以外は以下の引用です<br />
<a href="http://pinotan.blog15.fc2.com/blog-entry-106.html" target="_blank"> http://pinotan.blog15.fc2.com/blog-entry-106.html</a></p></blockquote>
<blockquote><p>Firefoxの場合、折り返すようにする拡張機能（url_breaker、url_breker_plusもしくはGreaseMonkeyを使う方法）があります</p>
<p>ただ、この場合、ユーザーにインストールしてもらわないといけないので、入れていない人にも効かせて欲しい場合は、これをjs化することで対応できます。</p>
<p>参考資料：<br />
Firefox・Netscapeで連続した半角文字を折り返す<br />
<a href="http://www.koikikukan.com/archives/2005/08/04-235647.php" target="_blank"> http://www.koikikukan.com/archives/2005/08/04-235647.php</a></p></blockquote>
<blockquote><p>NN7やmozillaでは、なんと全角数字も同じように扱われてしまいます。<br />
しかし記号もそうなのだとは知りませんでした。<br />
参考ページ。<br />
<a href="http://www.mozilla.gr.jp/forums/?mode=al2&amp;namber=6847&amp;rev=&amp;&amp;KLOG=47" target="_blank"> http://www.mozilla.gr.jp/forums/?mode=al2&amp;namber=6847&amp;rev=&amp;&amp;KLOG=47</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>funnythingz公式サイトについて</title>
		<link>http://hiropo.co.uk/archives/12</link>
		<comments>http://hiropo.co.uk/archives/12#comments</comments>
		<pubDate>Sat, 15 Dec 2007 11:26:03 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[つれDUれ]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/12</guid>
		<description><![CDATA[こんちゃす。ぴです。 自分、funnythingzというWeb屋の集まり集団の代表やってます。 その公式サイトでもあるhttp:/www.funnythingz.com/なんですが、 今日久しぶりにソースレベルでの更新を &#8230; <a href="http://hiropo.co.uk/archives/12">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>こんちゃす。ぴです。<br />
自分、funnythingzというWeb屋の集まり集団の代表やってます。</p>
<p>その公式サイトでもある<a href="http:/www.funnythingz.com/" title="funnythingz" target="_blank">http:/www.funnythingz.com/</a>なんですが、 今日久しぶりにソースレベルでの更新を行いました。どうってことないのですが、Web標準を謳っている割にクロスブラウザにちゃんと対応していなかったので、(X)HTML部分とCSSを改修しました。</p>
<p>これで、IE7,でもIE6以下でもFirefoxでも、Opera9でも、Netscape7.1でも、Safari3でもレイアウト崩れしてないんだぜ！というのを大きくアピールできます。（誰にｗｗｗｗｗｗｗｗ）</p>
<p>といっても、中身のないサイトなんであまり意味ないんですけどね。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clearfix</title>
		<link>http://hiropo.co.uk/archives/4</link>
		<comments>http://hiropo.co.uk/archives/4#comments</comments>
		<pubDate>Thu, 13 Dec 2007 16:56:55 +0000</pubDate>
		<dc:creator>hirohi</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/archives/4</guid>
		<description><![CDATA[.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix {displ &#8230; <a href="http://hiropo.co.uk/archives/4">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix {display: inline-table;}

/* Hides from IE-mac */
* html .clearfix {height: 1%;}
.clearfix {display: block;}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

