<?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>@blog.justoneplanet.info &#187; CSS</title>
	<atom:link href="http://blog.justoneplanet.info/category/computer-language/css-cascading-style-sheets/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.justoneplanet.info</link>
	<description>日々勉強</description>
	<lastBuildDate>Sat, 04 Feb 2012 11:10:47 +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>Google font api(directory)を使ってみる</title>
		<link>http://blog.justoneplanet.info/2010/05/22/google-font-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		<comments>http://blog.justoneplanet.info/2010/05/22/google-font-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/#comments</comments>
		<pubDate>Sat, 22 May 2010 09:40:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.justoneplanet.info/?p=2566</guid>
		<description><![CDATA[ヘッダに以下を追加する。 &#60;link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'&#038;g [...]]]></description>
			<content:encoded><![CDATA[<p>ヘッダに以下を追加する。</p>
<pre class="brush: xml;">
&lt;link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'&gt;
</pre>
<p>cssに以下を追加する。</p>
<pre class="brush: xml;">
p {
    font-family: 'Lobster', arial, serif;
}
</pre>
<p>そうすると以下のように表示される。</p>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<p style="font-family:'Lobster'">Hello, world.</p>
<h3>■探究</h3>
<p>http://fonts.googleapis.com/css?family=Lobsterをブラウザ別で比較する。</p>
<div class="kakomi">
<h5>Google Chrome</h5>
<p>どうやらスクリーンに絞ってるらしい。</p>
<pre class="brush: css;">
@media screen {
@font-face {
  font-family: 'Cantarell';
  font-style: normal;
  font-weight: normal;
  src: local('Cantarell'), url('http://themes.googleusercontent.com/font?kit=tGao7ZPoloMxQHxq-2oxNA') format('truetype');
}
}
</pre>
<p>いわゆるCSS3のWeb Fontsだ。</p>
</div>
<div class="kakomi">
<h5>Firefox</h5>
<p>@mediaが無い以外は大体chromeと同じだ。</p>
<pre class="brush: css;">
@font-face {
  font-family: 'Cantarell';
  font-style: normal;
  font-weight: normal;
  src: local('Cantarell'), url('http://themes.googleusercontent.com/font?kit=tGao7ZPoloMxQHxq-2oxNA') format('truetype');
}
</pre>
<p>CSS3のWeb Fontsだ。</p>
</div>
<div class="kakomi">
<h5>IE6～8（かわいそうなブラウザ）</h5>
<p>なんか読み込んでるファイルが違う。</p>
<pre class="brush: css;">
@font-face {
  font-family: 'Cantarell';
  src: url('http://themes.googleusercontent.com/font?kit=tGao7ZPoloMxQHxq-2oxNA');
}
</pre>
<p><a href="http://ascii.jp/elem/000/000/465/465458/index-2.html">http://ascii.jp/elem/000/000/465/465458/index-2.html</a></p>
<blockquote><p>IEでWebフォントを使うには、一般的なTTF／OTF形式ではなく、独自のEOT（Embedded Open Type）形式のフォントを用意する必要がある。</p></blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2010/05/22/google-font-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendFrameworkビュースクリプトでのbodyタグ</title>
		<link>http://blog.justoneplanet.info/2010/01/12/zendframework%e3%83%93%e3%83%a5%e3%83%bc%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%a7%e3%81%aebody%e3%82%bf%e3%82%b0/</link>
		<comments>http://blog.justoneplanet.info/2010/01/12/zendframework%e3%83%93%e3%83%a5%e3%83%bc%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%a7%e3%81%aebody%e3%82%bf%e3%82%b0/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 17:19:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ZendFramework]]></category>

		<guid isPermaLink="false">http://blog.justoneplanet.info/?p=2321</guid>
		<description><![CDATA[以下のように記述するとcssで装飾しやすい気がする。 ■コントローラ public function init(){ $this-&#62;_view-&#62;module = $this-&#62;_getParam('m [...]]]></description>
			<content:encoded><![CDATA[<p>以下のように記述するとcssで装飾しやすい気がする。</p>
<h3>■コントローラ</h3>
<pre class="brush: php;">
public function init(){
    $this-&gt;_view-&gt;module     = $this-&gt;_getParam('module');
    $this-&gt;_view-&gt;controller = $this-&gt;_getParam('controller');
    $this-&gt;_view-&gt;action     = $this-&gt;_getParam('action');
}
</pre>
<h3>■ビュー</h3>
<pre class="brush: php;">
&lt;body class=&quot;&lt;?php print($this-&gt;controller); ?&gt;&quot; id=&quot;&lt;?php print($this-&gt;controller); ?&gt;_&lt;?php print($this-&gt;action); ?&gt;&quot;&gt;
</pre>
<p>ちなみに以下のようになっている。</p>
<pre class="brush: php;">
print($this-&gt;module);//モジュール名
print($this-&gt;controller);//コントローラ名
print($this-&gt;action);//アクション名
</pre>
<h4>出力例</h4>
<pre class="brush: xml;">
&lt;body class=&quot;category&quot; id=&quot;category_register&quot;&gt;
</pre>
<div class="kakomi">
<h4>参考</h4>
<p>以下の例の場合を考えてみる。</p>
<pre class="brush: php;">
&lt;body class=&quot;&lt;?php print($this-&gt;module); ?&gt; &lt;?php print($this-&gt;controller); ?&gt; &lt;?php print($this-&gt;action); ?&gt;&quot;&gt;
</pre>
<h5>出力例</h5>
<pre class="brush: xml;">
&lt;body class=&quot;category&quot; id=&quot;category_register&quot;&gt;
</pre>
<p>一見素晴らしいが、IEが以下のセレクタに対応していないため使用できない。</p>
<pre class="brush: css;">
body.admin.category.register {
	background-color: red;
}
body.register {
	background-color: blue;
}
</pre>
<p>上述のように記述するとIE6のみbodyの背景色がblueになるはずだ。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2010/01/12/zendframework%e3%83%93%e3%83%a5%e3%83%bc%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%a7%e3%81%aebody%e3%82%bf%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modernizrにjsを追記して簡単にHTML5やCSS3の対応を確認する</title>
		<link>http://blog.justoneplanet.info/2009/11/22/modernizr%e3%81%abjs%e3%82%92%e8%bf%bd%e8%a8%98%e3%81%97%e3%81%a6%e7%b0%a1%e5%8d%98%e3%81%abhtml5%e3%82%84css3%e3%81%ae%e5%af%be%e5%bf%9c%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b/</link>
		<comments>http://blog.justoneplanet.info/2009/11/22/modernizr%e3%81%abjs%e3%82%92%e8%bf%bd%e8%a8%98%e3%81%97%e3%81%a6%e7%b0%a1%e5%8d%98%e3%81%abhtml5%e3%82%84css3%e3%81%ae%e5%af%be%e5%bf%9c%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 14:54:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML(XHTML)]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://blog.justoneplanet.info/?p=2144</guid>
		<description><![CDATA[以下を先頭に書く。 javascript: Modernizrのソースを次にペーストしたら以下のソースを書く。 (function(obj){ var txt = ''; for(var i in obj){ txt + [...]]]></description>
			<content:encoded><![CDATA[<p>以下を先頭に書く。</p>
<pre class="brush: xml;">
javascript:
</pre>
<p>Modernizrのソースを次にペーストしたら以下のソースを書く。</p>
<pre class="brush: jscript;">
(function(obj){
	var txt = '';
	for(var i in obj){
		txt += i + ' : ' + obj[i] + '\n';
	}
	alert(txt);
})(window.Modernizr);
</pre>
<p>そうするとHTML5への対応やCSS3への対応がアラートされる。</p>
<p class="ta-center"><a href="http://blog.justoneplanet.info/wp-content/uploads/2009/11/capture11.png" rel="lightbox[2144]"><img src="http://blog.justoneplanet.info/wp-content/uploads/2009/11/capture11-193x299.png" alt="Modernizr" title="Modernizr" width="193" height="299" /></a></p>
<p>頻繁に対応状況が変わるわけでないので無駄な作業な気がした。(´＿｀｡)</p>
<h3>■参考</h3>
<p><a href="http://www.modernizr.com/">http://www.modernizr.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2009/11/22/modernizr%e3%81%abjs%e3%82%92%e8%bf%bd%e8%a8%98%e3%81%97%e3%81%a6%e7%b0%a1%e5%8d%98%e3%81%abhtml5%e3%82%84css3%e3%81%ae%e5%af%be%e5%bf%9c%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefoxでフッター（footer）の下に隙間ができる</title>
		<link>http://blog.justoneplanet.info/2008/05/26/firefox%e3%81%a7%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%ef%bc%88footer%ef%bc%89%e3%81%ae%e4%b8%8b%e3%81%ab%e9%9a%99%e9%96%93%e3%81%8c%e3%81%a7%e3%81%8d%e3%82%8b/</link>
		<comments>http://blog.justoneplanet.info/2008/05/26/firefox%e3%81%a7%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%ef%bc%88footer%ef%bc%89%e3%81%ae%e4%b8%8b%e3%81%ab%e9%9a%99%e9%96%93%e3%81%8c%e3%81%a7%e3%81%8d%e3%82%8b/#comments</comments>
		<pubDate>Sun, 25 May 2008 16:12:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2008/05/26/firefox%e3%81%a7%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%ef%bc%88footer%ef%bc%89%e3%81%ae%e4%b8%8b%e3%81%ab%e9%9a%99%e9%96%93%e3%81%8c%e3%81%a7%e3%81%8d%e3%82%8b/</guid>
		<description><![CDATA[■原因として考えられるもの clearfixハック ■解決策（CSSソース） .clearfix:after { content: &#34;.&#34;; display: block; height: 0px;  [...]]]></description>
			<content:encoded><![CDATA[<h3>■原因として考えられるもの</h3>
<p>clearfixハック</p>
<h3>■解決策（CSSソース）</h3>
<pre class="brush: css;">
.clearfix:after {
    content: &quot;.&quot;;
    display: block;
    height: 0px;
    clear: both;
    visibility: hidden;
    font-size: 0;/*これで解決させる*/
}
</pre>
<p>とする</p>
<h3>■解説</h3>
<p>afterでコンテンツ（上記の場合は『.』）を追加した分、（hight:0であるが）内部的に高さが増す。フッターにclearfixハックを使っている、もしくは他の要素でclearfixを使い内部的に高さが増した量よりフッターの高さが小さい時にフッタの下に隙間が出来るが、上記のafterで追加した要素のフォントサイズを0にすることにより、追加した要素の高さを完全に０にする。</p>
<h3>■追記</h3>
<p>但し、スパムとみなされる可能性もある気がするので、フォントサイズはかなり小さめの0以外の値を設定した方がイイかもしれない。</p>
<pre class="brush: css;">
.clearfix:after {
    content: &quot;.&quot;;
    display: block;
    height: 0px;
    clear: both;
    visibility: hidden;
    font-size: 0.1em;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2008/05/26/firefox%e3%81%a7%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%ef%bc%88footer%ef%bc%89%e3%81%ae%e4%b8%8b%e3%81%ab%e9%9a%99%e9%96%93%e3%81%8c%e3%81%a7%e3%81%8d%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>透過PNGとIE6用CSS</title>
		<link>http://blog.justoneplanet.info/2008/03/27/%e9%80%8f%e9%81%8epng%e3%81%a8ie6%e7%94%a8css/</link>
		<comments>http://blog.justoneplanet.info/2008/03/27/%e9%80%8f%e9%81%8epng%e3%81%a8ie6%e7%94%a8css/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 03:25:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2008/03/27/%e9%80%8f%e9%81%8epng%e3%81%a8ie6%e7%94%a8css/</guid>
		<description><![CDATA[■問題点 透過PNGを使う為にIE6用のCSSを用意して、各ページから読み込むようにした。 しかし、トップページ以外の透過PNG以外が半透明にならなかった。 ■解決策 以下のようにfilterのsrc指定を絶対パスで指定 [...]]]></description>
			<content:encoded><![CDATA[<h3>■問題点</h3>
<p>透過PNGを使う為にIE6用のCSSを用意して、各ページから読み込むようにした。</p>
<p>しかし、トップページ以外の透過PNG以外が半透明にならなかった。</p>
<h3>■解決策</h3>
<p>以下のようにfilterのsrc指定を<strong>絶対パスで指定</strong>する。</p>
<pre class="brush: css;">
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&quot;/img/logo.png&quot;, sizingMethod=&quot;scale&quot;);
</pre>
<h3>■どうやら</h3>
<p>ここのsrc部分は読み込み元のHTMLファイルからのパスになるようだ。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2008/03/27/%e9%80%8f%e9%81%8epng%e3%81%a8ie6%e7%94%a8css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>画像を使わずCSSのみで丸角を表現しよう</title>
		<link>http://blog.justoneplanet.info/2008/01/13/%e7%94%bb%e5%83%8f%e3%82%92%e4%bd%bf%e3%82%8f%e3%81%9acss%e3%81%ae%e3%81%bf%e3%81%a7%e4%b8%b8%e8%a7%92%e3%82%92%e8%a1%a8%e7%8f%be%e3%81%97%e3%82%88%e3%81%86/</link>
		<comments>http://blog.justoneplanet.info/2008/01/13/%e7%94%bb%e5%83%8f%e3%82%92%e4%bd%bf%e3%82%8f%e3%81%9acss%e3%81%ae%e3%81%bf%e3%81%a7%e4%b8%b8%e8%a7%92%e3%82%92%e8%a1%a8%e7%8f%be%e3%81%97%e3%82%88%e3%81%86/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 09:38:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2008/01/13/%e7%94%bb%e5%83%8f%e3%82%92%e4%bd%bf%e3%82%8f%e3%81%9acss%e3%81%ae%e3%81%bf%e3%81%a7%e4%b8%b8%e8%a7%92%e3%82%92%e8%a1%a8%e7%8f%be%e3%81%97%e3%82%88%e3%81%86/</guid>
		<description><![CDATA[■サンプルソース &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#038;quot [...]]]></description>
			<content:encoded><![CDATA[<h4>■サンプルソース</h4>
<pre class="brush: xml;">
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;無題ドキュメント&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
#test {
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    background-color: #00FFCC;
    width: 200px;
    padding: 50px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;test&quot;&gt;
この丸角はFirefoxやSafari3では表示されるが、Internet ExplorerやOperaでは従来どおりの角ばった表示しかされない。
&lt;/div&gt;
&lt;/body&gt;
</pre>
<h4>■実際の表示</h4>
<p class="mb1em">対応ブラウザ（Firefox、Safari3）でご覧ください。その他のブラウザでは従来どおりの角ばった表示しかされません。</p>
<div class="kakomi" style="padding: 50px; -moz-border-radius: 20px;-webkit-border-radius: 20px;">
この丸角はFirefoxやSafari3では表示されるが、Internet ExplorerやOperaでは従来どおりの角ばった表示しかされない。
</div>
<h4>■注意</h4>
<ul>
<li>現在のところ大多数が使用しているIEでは未対応の為、IEユーザーへの配慮が必要である。</li>
</ul>
<h4>■Firefoxにおけるプロパティ名</h4>
<p><strong>-moz-border-radius</strong></p>
<h4>■Safari3におけるプロパティ名</h4>
<p><strong>-webkit-border-radius</strong></p>
<h4>■CSS3におけるプロパティ名</h4>
<p><strong>border-radius</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2008/01/13/%e7%94%bb%e5%83%8f%e3%82%92%e4%bd%bf%e3%82%8f%e3%81%9acss%e3%81%ae%e3%81%bf%e3%81%a7%e4%b8%b8%e8%a7%92%e3%82%92%e8%a1%a8%e7%8f%be%e3%81%97%e3%82%88%e3%81%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>画像置換がうまく出来ない（Netscape7.1バグ）</title>
		<link>http://blog.justoneplanet.info/2007/12/07/%e7%94%bb%e5%83%8f%e7%bd%ae%e6%8f%9b%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e5%87%ba%e6%9d%a5%e3%81%aa%e3%81%84%ef%bc%88netscape71%e3%83%90%e3%82%b0%ef%bc%89/</link>
		<comments>http://blog.justoneplanet.info/2007/12/07/%e7%94%bb%e5%83%8f%e7%bd%ae%e6%8f%9b%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e5%87%ba%e6%9d%a5%e3%81%aa%e3%81%84%ef%bc%88netscape71%e3%83%90%e3%82%b0%ef%bc%89/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 14:58:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/12/07/%e7%94%bb%e5%83%8f%e7%bd%ae%e6%8f%9b%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e5%87%ba%e6%9d%a5%e3%81%aa%e3%81%84%ef%bc%88netscape71%e3%83%90%e3%82%b0%ef%bc%89/</guid>
		<description><![CDATA[■結論 以下のように、バックグラウンドの指定はx軸指定、y軸指定ともにpxで指定しよう！ background-position: -100px -35px; ■理由 以下のような指定はNetscape7.1に認識されな [...]]]></description>
			<content:encoded><![CDATA[<h3>■結論</h3>
<p>以下のように、バックグラウンドの指定はx軸指定、y軸指定ともにpxで指定しよう！</p>
<pre class="brush: css;">
background-position: -100px -35px;
</pre>
<h3>■理由</h3>
<p>以下のような指定はNetscape7.1に認識されない為である。</p>
<pre class="brush: css;">
background-position: -100px bottom;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2007/12/07/%e7%94%bb%e5%83%8f%e7%bd%ae%e6%8f%9b%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e5%87%ba%e6%9d%a5%e3%81%aa%e3%81%84%ef%bc%88netscape71%e3%83%90%e3%82%b0%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSSで手軽に字の先頭を揃えよう！</title>
		<link>http://blog.justoneplanet.info/2007/11/12/css%e3%81%a7%e6%89%8b%e8%bb%bd%e3%81%ab%e5%ad%97%e3%81%ae%e5%85%88%e9%a0%ad%e3%82%92%e6%8f%83%e3%81%88%e3%82%88%e3%81%86%ef%bc%81/</link>
		<comments>http://blog.justoneplanet.info/2007/11/12/css%e3%81%a7%e6%89%8b%e8%bb%bd%e3%81%ab%e5%ad%97%e3%81%ae%e5%85%88%e9%a0%ad%e3%82%92%e6%8f%83%e3%81%88%e3%82%88%e3%81%86%ef%bc%81/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 07:07:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/11/12/css%e3%81%a7%e6%89%8b%e8%bb%bd%e3%81%ab%e5%ad%97%e3%81%ae%e5%85%88%e9%a0%ad%e3%82%92%e6%8f%83%e3%81%88%e3%82%88%e3%81%86%ef%bc%81/</guid>
		<description><![CDATA[■結論 h4 { padding-left:1em; text-indent:-1em; } とCSSに記述すればよい サンプル ☆例えば、このように長い文章の頭に『●』や『■』や『☆』の記号がある場合でも2行目以降が1 [...]]]></description>
			<content:encoded><![CDATA[<h4>■結論</h4>
<pre class="brush: css;">
h4 {
	padding-left:1em;
	text-indent:-1em;
}
</pre>
<p>とCSSに記述すればよい</p>
<h5>サンプル</h5>
<p style="padding-left: 1em; text-indent: -1em">☆例えば、このように長い文章の頭に『●』や『■』や『☆』の記号がある場合でも2行目以降が1行目の文章開始位置の頭に揃うようになり見栄えも綺麗でスッキリする。</p>
<h4>■駄作</h4>
<pre class="brush: css;">
dt {
	float:left;
	clear:left;
	width:1em;
}
dd {
	margin-left:1.5em;
}
</pre>
<p>のように記述しても同じ効果が得られるが無駄なタグが増える。それにfloatは使わないで済むならば、使わないにこしたことはない。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2007/11/12/css%e3%81%a7%e6%89%8b%e8%bb%bd%e3%81%ab%e5%ad%97%e3%81%ae%e5%85%88%e9%a0%ad%e3%82%92%e6%8f%83%e3%81%88%e3%82%88%e3%81%86%ef%bc%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>overflow-y（IE独自のプロパティ）</title>
		<link>http://blog.justoneplanet.info/2007/10/30/overflow-y%ef%bc%88ie%e7%8b%ac%e8%87%aa%e3%81%ae%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%ef%bc%89/</link>
		<comments>http://blog.justoneplanet.info/2007/10/30/overflow-y%ef%bc%88ie%e7%8b%ac%e8%87%aa%e3%81%ae%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%ef%bc%89/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 03:36:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/10/30/overflow-y%ef%bc%88ie%e7%8b%ac%e8%87%aa%e3%81%ae%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%ef%bc%89/</guid>
		<description><![CDATA[■結論 overflow:autoを使うべし ■要点 overflow-yはIEの独自プロパティなのでボックスの高さを固定してもOperaなどではスクロールバーが出ない。]]></description>
			<content:encoded><![CDATA[<h4>■結論</h4>
<p>overflow:autoを使うべし</p>
<h4>■要点</h4>
<p>overflow-yはIEの独自プロパティなのでボックスの高さを固定してもOperaなどではスクロールバーが出ない。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2007/10/30/overflow-y%ef%bc%88ie%e7%8b%ac%e8%87%aa%e3%81%ae%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基本的なスタイルのみを定義したCSSファイルを作ろう</title>
		<link>http://blog.justoneplanet.info/2007/10/23/%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%81%ae%e3%81%bf%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%9fcss%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e4%bd%9c/</link>
		<comments>http://blog.justoneplanet.info/2007/10/23/%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%81%ae%e3%81%bf%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%9fcss%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e4%bd%9c/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 08:37:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/10/23/%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%81%ae%e3%81%bf%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%9fcss%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e4%bd%9c/</guid>
		<description><![CDATA[■base.css このCSSはファイル名の通り、基本設定となる。 サンプルソース /******************************************************** * body */  [...]]]></description>
			<content:encoded><![CDATA[<h3>■base.css</h3>
<p>このCSSはファイル名の通り、基本設定となる。</p>
<h4>サンプルソース</h4>
<pre class="brush: css;">
/********************************************************
 * body
 */
body {
	text-align: center;
}
#container {
	width: 870px;
	margin: 0 auto;
	text-align: left;
	background-color: #FFFFFF;
}
/********************************************************
 * fundamental preferences
 */
* {
	margin: 0;
	padding: 0;
}
img {
	border: none;
}
h3 {
	clear: both;
}
/********************************************************
 * class for layout
 */
.mb0em {
	margin-bottom: 0px;
}
.mb05em {
	margin-bottom: 0.5em;
}
.mb1em {
	margin-bottom: 1em;
}
.mb2em {
	margin-bottom: 2em;
}
.mb3em {
	margin-bottom: 3em;
}
.ta-center {
	text-align: center;
}
.ta-left {
	text-align: left;
}
.ta-right {
	text-align: right;
}
.fwb{
	font-weight:bold;
}
.fs08em {
	font-size: 0.8em;
}
</pre>
<h3>■typeface.css</h3>
<p>このCSSファイルはファイル名の通り、活字づら（フォント）設定を定義したファイルである。フォントに関する設定はこにファイルで一元管理する。</p>
<p>※但し、下記はWindows用の設定（Macは入っているフォントが違うので異なった記述が必要となる）</p>
<h4>サンプルソース</h4>
<pre class="brush: css;">
@charset &quot;UTF-8&quot;;/*CSSドキュメントの文字コードを記述（フォント名にはマルチバイト文字が含まれるため）*/
/********************************************************
 * color, type face, line height
 */
h1,h2,h3,h4,h5,h6,p,dt,dd,table,address {
	font-family: &quot;メイリオ&quot;, &quot;ＭＳ Ｐゴシック&quot;, Osaka, &quot;ヒラギノ角ゴ Pro W3&quot;;
	line-height: 1.7;
	color: #444444;
}
h2 {
	font-size: 0.8em;
	line-height: 1.2;
}
h3 {
	font-size: 0.9em;
}
h4 {
	font-size: 0.8em;
	line-height: 1.2;
}
code {
	font-family: &quot;メイリオ&quot;, &quot;ＭＳ ゴシック&quot;, &quot;Osaka－等幅&quot;;
}
em {
	font-weight: bold;
	padding: 3px 3px;
}
address {
	font-style: normal
}
p {
	text-align: justify;
	text-justify: inter-ideograph;
	margin-bottom: 0.5em;
}
ul {
	list-style-type: none;
}
li {
	line-height: 1.2;
	color: #666666;
}
/********************************************************
 * font-size
 */
p,dt,dd,address {
	font-size: 0.8em;
}
th,td {
	font-size: 0.8em;
}
li {
	font-size: 0.8em;
}
li li {
	font-size: 1em;/*liが複数回入れ子になってる場合フォントサイズが小さくなってしまうのを防ぐ*/
}
</pre>
<h3>■mac.css（マッキントッシュ用フォント設定）</h3>
<p>正直macは良く分からん。</p>
<pre class="brush: css;">
/********************************************************
 * color, type face, line height
 */
h2,h3,h4,p,li,dt,dd,table,address {
　　　　font-family: &quot;ヒラギノ角ゴ Pro W3&quot;, Helvetica, sans-serif;
}
code{
　　　　font-family: &quot;Osaka－等幅&quot;;
}
</pre>
<h3>■link.css</h3>
<p>このファイルでリンクの設定を一元管理する。注意しなくてはいけないのは、疑似クラスを指定する順序だ。これを間違うと上手く反映されないことがある。</p>
<p>但し、定番といえる記述は少なくサイトに合わせたデザインに下記を変更する。</p>
<h4>サンプルソース</h4>
<pre class="brush: css;">
/********************************************************
 * link
 */
a:link {
	color:#5aa5de;
	text-decoration:underline;
}
a:visited {
	color:#5aa5de;
	text-decoration:underline;
}
a:active {
	color:#f96400;
	text-decoration:underline;
}
a:hover {
	color:#f96400;
	text-decoration:underline;
}
</pre>
<h3>■main.css</h3>
<p>このファイルにはサイトごとに特色のあるソースコードが書きこまれる。</p>
<h3>■ie6.css</h3>
<p>アウトローなIE6用のCSSを記述する。</p>
<hr />
<h3>■上述の設定したファイルをまとめて読み込むCSSファイル</h3>
<h4>include1.css</h4>
<p>CSSファイルを読み込むCSSファイルをを読み込む為のファイルである。</p>
<p>@importを使うとIE4には読み込まれないような処理となる。</p>
<h5>サンプルソース</h5>
<pre class="brush: css;">
@import &quot;include2.css&quot;;
</pre>
<h4>include2.css</h4>
<p>このCSSファイルはmac用以外を除く、上記CSSファイルを読み込む為のファイルである。</p>
<p>@import url(&#8220;/*ファイルのパス*/&#8221;);を使うとIE4.5には読み込まれないような処理となる。</p>
<h5>サンプルソース</h5>
<pre class="brush: css;">
@import url(&quot;base.css&quot;);
@import url(&quot;typeface.css&quot;);
@import url(&quot;link.css&quot;);
@import url(&quot;base.css&quot;);
</pre>
<hr />
<h3>■読み込み経路について</h3>
<p>以下のような順序で、HTMLファイルからCSSが読み込まれる。</p>
<ol>
<li>→include1.css</li>
<li>→include2.css
<ul>
<li>→base.css</li>
<li>→typeface.css</li>
<li>→link.css</li>
<li>→main.css</li>
</ul>
</ol>
<h4>HTMLファイル内での記述</h4>
<pre class="brush: xml;">
&lt;link href=&quot;css/part1.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt;&lt;!--外部CSSファイルの適用（NN4xをはじく）--&gt;
&lt;!--[if lt IE 7]&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/ie6.css&quot; /&gt;
&lt;![endif]--&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//macの場合はlinkタグが書き出される
if(navigator.userAgent.indexOf(&quot;Mac&quot;) &gt;= 0){
    document.write('&lt;link href=&quot;css/mac.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt;');
}
&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2007/10/23/%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%81%ae%e3%81%bf%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%9fcss%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e4%bd%9c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSSでレイアウトをする前に（CSSの基本）</title>
		<link>http://blog.justoneplanet.info/2007/10/23/css%e3%81%a7%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%82%92%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%ef%bc%88css%e3%81%ae%e5%9f%ba%e6%9c%ac%ef%bc%89/</link>
		<comments>http://blog.justoneplanet.info/2007/10/23/css%e3%81%a7%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%82%92%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%ef%bc%88css%e3%81%ae%e5%9f%ba%e6%9c%ac%ef%bc%89/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 04:06:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/10/23/css%e3%81%a7%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%82%92%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%ef%bc%88css%e3%81%ae%e5%9f%ba%e6%9c%ac%ef%bc%89/</guid>
		<description><![CDATA[■作業フロー 1.ワイヤーフレーム（orカンプ）を用意する ここで3カラムや2カラムレイアウトなど決定 ワイヤーフレームとは枠組みだけでデザインしたものは含まれない カンプとはphotoshopやfiireworksなど [...]]]></description>
			<content:encoded><![CDATA[<h4>■作業フロー</h4>
<dl>
<dt>1.<strong>ワイヤーフレーム（orカンプ）を用意する</strong></dt>
<dd>ここで3カラムや2カラムレイアウトなど決定</dd>
<dd>ワイヤーフレームとは枠組みだけでデザインしたものは含まれない</dd>
<dd>カンプとはphotoshopやfiireworksなどで作った静止画像で完成イメージ画像</dd>
<dt>2.<strong>XHTML制作</strong>（意味上のタグを中心）</dt>
<dd>ページに掲載する文字情報に見出しや段落といった意味づけをする（ここは経験が出る部分でもあり侮ってはいけない）</dd>
<dt>3.<strong>div要素を1番で用意した画像にidやclassとセットで書き込む</strong></dt>
<dd>いわゆる「まとまり（ヘッダー、フッター、メニューバー）」を画像上で括る</dd>
<dt>4.<strong>HTMLに</strong>3番の通りに反映</dt>
<dd>&lt;div id=&#8221;header&#8221;&gt;などとし、HTML上で括っていく</dd>
<dt>5.<strong>CSSを編集</strong></dt>
<dd>ページ内の部品ごとにCSSを分けるといった構築方針も決める</dd>
<dt>6.<strong>必要環境でレンダリング</strong></dt>
<dd>文字の大きさを変えたりして入念にチェック</dd>
<dt>7.<strong>表示の不具合が発生した箇所についてCSSを調整</strong></dt>
<dd>CSSハックはあくまでも最終手段とし、ハックの基準も決めておく</dd>
<dd>※但し、クロスブラウザ対策は思ったより面倒なので見捨てるブラウザも考慮する</dd>
</dl>
<h4>■CSSレイアウトのメリットとデメリット</h4>
<h5>メリット</h5>
<dl>
<dt>・スタイル管理の効率化</dt>
<dd>HTMLファイル内でなく<strong class="red">外部ファイル化</strong>されている場合、別個にファイルを開き修正しなくて良い</dd>
<dd>場合によっては1箇所の修正で全HTMLファイルに適応できる</dd>
<dt>・広範なユーザーへの適合</dt>
<dd>ハンドヘルドディスプレイやテレビなどメディアに応じたcssを別個に指定できる</dd>
<dt>・デザインクォリティの向上</dt>
<dd>各要素に背景が別個に指定できる</dd>
<dd>line-heightで行間を調整し読みやすくできる</dd>
</dl>
<h5>デメリット</h5>
<dl>
<dt>・コーディングにかかる作業時間の増加</dt>
<dd>ターゲットブラウザの個数による（web標準に準拠しているIE7、Safari、Firefoxなどは大きく問題にならないが、IE6などブラウザごとの表示の違いを吸収する時間は意外にかかる）</dd>
</dl>
<h4>■文章構造の整理について</h4>
<dl>
<dt>・構造化の重要性</dt>
<dd>機械処理が可能になり、大量の情報の選別、ユーザーに恩恵がある</dd>
<dt>・div等による要素のグループ化（ヘッダー、フッター等）</dt>
<dd>構造をより詳細に定義できる</dd>
<dd>段組レイアウトへの補助</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2007/10/23/css%e3%81%a7%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%82%92%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%ef%bc%88css%e3%81%ae%e5%9f%ba%e6%9c%ac%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>絶対的な位置にメニューなどを固定配置しよう</title>
		<link>http://blog.justoneplanet.info/2007/10/23/%e7%b5%b6%e5%af%be%e7%9a%84%e3%81%aa%e4%bd%8d%e7%bd%ae%e3%81%ab%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%aa%e3%81%a9%e3%82%92%e5%9b%ba%e5%ae%9a%e9%85%8d%e7%bd%ae%e3%81%97%e3%82%88%e3%81%86/</link>
		<comments>http://blog.justoneplanet.info/2007/10/23/%e7%b5%b6%e5%af%be%e7%9a%84%e3%81%aa%e4%bd%8d%e7%bd%ae%e3%81%ab%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%aa%e3%81%a9%e3%82%92%e5%9b%ba%e5%ae%9a%e9%85%8d%e7%bd%ae%e3%81%97%e3%82%88%e3%81%86/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 15:16:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/10/23/%e7%b5%b6%e5%af%be%e7%9a%84%e3%81%aa%e4%bd%8d%e7%bd%ae%e3%81%ab%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%aa%e3%81%a9%e3%82%92%e5%9b%ba%e5%ae%9a%e9%85%8d%e7%bd%ae%e3%81%97%e3%82%88%e3%81%86/</guid>
		<description><![CDATA[■サンプル サンプルファイルの表示 ■解説-基本編 #menu { position:fixed; top:100px; } と記述すればブラウザの内枠上から100pxで表示される 但し、IE6では全く効果が無い ■解説 [...]]]></description>
			<content:encoded><![CDATA[<h4>■サンプル</h4>
<p><a href="javascript:void(window.open('/wordpress/wp-content/themes/EasyAll/html_test/2007/1022.html','20071022subwin','height=400 ,width=620,scrollbars=yes'))">サンプルファイルの表示</a></p>
<h4>■解説-基本編</h4>
<pre class="brush: plain;">
#menu {
    position:fixed;
    top:100px;
}
</pre>
<p>と記述すればブラウザの内枠上から100pxで表示される</p>
<p>但し、IE6では全く効果が無い</p>
<h4>■解説-IE6ハック</h4>
<pre class="brush: plain;">
&lt;!--[if lt IE 7.0]&gt;
&lt;style type=&quot;text/css&quot;&gt;
body {
    filter:expression('');
}
#menu {
    position:expression('absolute');
    top:expression(document.documentElement &amp;&amp; document.documentElement.scrollTop || document.body &amp;&amp; body.scrollTop || 0 + 0 + 'px');
}
&lt;/style&gt;
&lt;![endif]--&gt;
</pre>
<p>とhead内へ追記する</p>
<h4>■長所</h4>
<ul>
<li>expressionを使用するとCSS内にJavaScriptを記述できる（但し、IE5.0以降の独自拡張）</li>
<li>IE6で未対応であったCSSプロパティを補完できる</li>
</ul>
<h4>■短所</h4>
<ul>
<li>当然ながら独自拡張であるのでIEのみ対応</li>
<li>IEを互換モードで動かさない場合は固定配置部分がちらつく</li>
<li>上記理由によりIEを互換モードで動かす場合、レイアウト用に全く別のCSSを用意しなければならない（BOXモデルの解釈が異なるため）</li>
<li>同じ画面のFirefoxよりもマシンパワーを必要とし重くなる可能性がある</li>
<li>expressionの使用は表示などを回数を重ね検証する必要がある</li>
<li><code>document.documentElement &amp;&amp; document.documentElement.scrollTop || document.body &amp;&amp; body.scrollTop</code>の部分は互換モードと標準モード時での違いを吸収するための記述である</li>
</ul>
<h4>■おまけ</h4>
<p>IE6を捨てるというのも立派な選択肢の一つとして取っておく事を勧める。</p>
<p>なぜならばクロスブラウザ対策は思ったよりもコストがかかり、それに見合った効果が得られるとは必ずしも言えないからである。</p>
<h4>■参考サイト</h4>
<p><a href="http://useyan.x0.com/s/html/expression/"> ダイナミックプロパティ expression() のまとめ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justoneplanet.info/2007/10/23/%e7%b5%b6%e5%af%be%e7%9a%84%e3%81%aa%e4%bd%8d%e7%bd%ae%e3%81%ab%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%aa%e3%81%a9%e3%82%92%e5%9b%ba%e5%ae%9a%e9%85%8d%e7%bd%ae%e3%81%97%e3%82%88%e3%81%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

