<?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>CSS liefde - CSSの使える!と思えるテクニックを紹介。</title>
	<atom:link href="http://css.colopixie.com/feed" rel="self" type="application/rss+xml" />
	<link>http://css.colopixie.com</link>
	<description>CSSの使える!と思えるテクニックを紹介。 モットーは全ブラウザで見られること。</description>
	<lastBuildDate>Sat, 28 May 2011 01:31:55 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>メニューの:active時に凹ませているように影をつける</title>
		<link>http://css.colopixie.com/css3/111</link>
		<comments>http://css.colopixie.com/css3/111#comments</comments>
		<pubDate>Sat, 28 May 2011 01:00:42 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[ul-menu]]></category>
		<category><![CDATA[box-shadow]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=111</guid>
		<description><![CDATA[よく見かけるマウスでクリックしたときに起きる(:active)の影をCSS3でやってみようということです。 対応ブラウザ◯ Google Chrome / Firefox / Opera× Safari / InternetExplorer HTML source &#60;ul&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;menu1&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;menu2&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;menu3&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;menu4&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;menu5&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; この場合は、簡単にul>li>aという感じにソースを書きます CSS source ul { width: 800px; margin: 20px auto; border: 2px solid #FF0; box-shadow: 0 0 3px #ccc; border-radius: 3px; overflow: hidden; font-family: 'Arvo', arial, serif; } ul li]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/a-active-so-that-put-a-shadow-on-the-recessed-at.jpg" alt="" title="a-active-so-that-put-a-shadow-on-the-recessed-at" width="400" height="200" class="aligncenter size-full wp-image-112" /><br />
よく見かけるマウスでクリックしたときに起きる(:active)の影をCSS3でやってみようということです。<br />
<span id="more-111"></span></p>
<div class="information">
<a href="http://css.colopixie.com/sample-html/a-active-so-that-put-a-shadow-on-the-recessed-at.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span> Google Chrome / Firefox / Opera<span class="batsu">×</span> Safari / InternetExplorer</div>
</div>
<h4>HTML source</h4>
<pre class="brush:xml">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;menu1&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;menu2&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;menu3&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;menu4&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;menu5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<ul>
<li>この場合は、簡単にul>li>aという感じにソースを書きます</li>
</ul>
<h4>CSS source</h4>
<pre class="brush:css">
ul {
	width: 800px;
	margin: 20px auto;
	border: 2px solid #FF0;
	box-shadow: 0 0 3px #ccc;
	border-radius: 3px;
	overflow: hidden;
	font-family: 'Arvo', arial, serif;
}
</pre>
<pre class="brush:css">
ul li {
	float: left;
}
ul li a {
	display:block;
	width: 158px;
	border-right: #F96 1px solid;
	border-left: #FF0 1px solid;
	background-image: -webkit-gradient(  linear,  left bottom,  left top,  color-stop(0.36, rgb(255,196,0)),  color-stop(0.84, rgb(255,217,0)) );
	background-image: -moz-linear-gradient(  center bottom,  rgb(255,196,0) 36%,  rgb(255,217,0) 84% );
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	line-height: 55px;
	text-align: center
}
</pre>
<ul>
<li>今回は画像を使わずにグラデーションで背景を表示しています</li>
</ul>
<pre class="brush:css">
ul li a:hover, ul li a:active {
	background-image: -webkit-gradient(  linear,  left bottom,  left top,  color-stop(0.36, rgb(255,128,0)),  color-stop(0.84, rgb(207,86,0)) );
	background-image: -moz-linear-gradient(  center bottom,  rgb(255,128,0) 36%,  rgb(207,86,0) 84% );
	box-shadow: 0px 0px 3px #888 inset;
	color: #fff;
}
</pre>
<ul>
<li>こちらもグラデーションを使っています。</li>
</ul>
<pre class="brush:css">
ul li a:active {
	box-shadow: 0px 0px 6px #444 inset
}
</pre>
<ul>
<li>こちらが押している感じにするCSSです。</li>
<li>CSS3のbox-shadowを記述し、最後のところに<strong>inset</strong>を入力してあげると内側への影がつきます。ただしinsetと付けないものとは併用できません</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/css3/111/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ボックスをスクロールしても固定する（IE6対応）</title>
		<link>http://css.colopixie.com/layout/81</link>
		<comments>http://css.colopixie.com/layout/81#comments</comments>
		<pubDate>Mon, 19 Apr 2010 14:10:40 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[Layout]]></category>
		<category><![CDATA[レイアウト]]></category>
		<category><![CDATA[実用]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=81</guid>
		<description><![CDATA[下にフッターを固定したり、右下などにページトップボタンを固定したりできます。 IE7からは、position:fixedに対応していますがIE6では対応していないので少し違うやり方でやります。 対応ブラウザ◯ Google Chrome / Safari / Firefox / Opera / InternetExplorer HTML &#60;div class=&#34;fixed&#34;&#62;固定部分&#60;/div&#62; &#60;div id=&#34;wrap&#34;&#62; &#60;div class=&#34;tit aa&#34;&#62; &#60;span&#62;Title:&#60;/span&#62; &#60;h1&#62;ボックスをスクロールしても固定する（IE6対応）&#60;/h1&#62; &#60;/div&#62; &#60;div class=&#34;browser aa&#34;&#62;&#60;span class=&#34;maru&#34;&#62;◯&#60;/span&#62; Google Chrome / Safari / Firefox / Opera / InternetExplorer&#60;/div&#62; &#60;div class=&#34;main aa&#34;&#62; &#60;div class=&#34;dummy&#34;&#62;&#60;img src=&#34;content-images/dummy.gif&#34; alt=&#34;&#34; /&#62;&#60;img src=&#34;content-images/dummy.gif&#34; alt=&#34;&#34; /&#62;&#60;/div&#62; &#60;/div&#62; &#60;/div&#62; &#60;div class=&#34;footer&#34;&#62;Copyright © 2009]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/Fixed-as-you-scroll-box_IE6-support.jpg" alt="" title="Fixed-as-you-scroll-box_IE6-support" width="400" height="200" class="alignnone size-full wp-image-95" /><br />
下にフッターを固定したり、右下などにページトップボタンを固定したりできます。<br />
IE7からは、position:fixedに対応していますがIE6では対応していないので少し違うやり方でやります。<br />
<span id="more-81"></span></p>
<div class="information">
<a href="http://css.colopixie.com/sample-html/Fixed-as-you-scroll-box_IE6-support.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span> Google Chrome / Safari / Firefox / Opera / InternetExplorer</div>
</div>
<h4>HTML</h4>
<pre class="brush:xml">
&lt;div class=&quot;fixed&quot;&gt;固定部分&lt;/div&gt;
&lt;div id=&quot;wrap&quot;&gt;
&lt;div class=&quot;tit aa&quot;&gt; &lt;span&gt;Title:&lt;/span&gt;
&lt;h1&gt;ボックスをスクロールしても固定する（IE6対応）&lt;/h1&gt;
&lt;/div&gt;
&lt;div class=&quot;browser aa&quot;&gt;&lt;span class=&quot;maru&quot;&gt;◯&lt;/span&gt; Google Chrome / Safari / Firefox / Opera / InternetExplorer&lt;/div&gt;
&lt;div class=&quot;main aa&quot;&gt;
&lt;div class=&quot;dummy&quot;&gt;&lt;img src=&quot;content-images/dummy.gif&quot; alt=&quot;&quot; /&gt;&lt;img src=&quot;content-images/dummy.gif&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;footer&quot;&gt;Copyright © 2009 &lt;a href=&quot;http://css.colopixie.com/&quot; title=&quot;CSS liefde&quot; target=&quot;_top&quot;&gt;CSS liefde&lt;/a&gt; All Rights Reserved.&lt;/div&gt;
</pre>
<p>コンテンツを入れる部分（スクロールする部分）を#wrap<br />
固定したい部分は、&lt;div class=&quot;fixed&quot;&gt;固定部分&lt;/div&gt;としています。</p>
<h4>CSS</h4>
<pre class="brush:css">
body {
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important
}
#wrap {
	position:absolute;
	width: 100%;
	height: 100%;
	overflow:auto;
	z-index: 1;
	margin: 0 !important;
	padding: 0 !important
}
.fixed {
	position:absolute;
	width: 200px;
	line-height: 80px;
	text-align:center;
	top: 30px;
	left: 50px;
	z-index: 11;
	background-color:#000;
	color: #ccc
}
.footer {
	position:absolute;
	width: 500px;
	line-height: 80px;
	text-align:center;
	bottom: 10px;
	left: 10px;
	z-index: 11;
}
.tit {
	margin-top: 100px;
}
.aa {
	margin-left: 100px;
}
</pre>
<ul>
<li>bodyは、MarginとPaddingを０にして、Overflow:hiddenにしてスクロールしないようにします。</li>
<li>#wrapにPosition:absoluteとWidth/Heightを100%にします。Z-index:1を指定します。Overflow:autoでスクロールが出てくるようにします。</li>
<li>.fixedには、#wrapと同じようにPosition:absoluteを指定。固定したいサイズを指定して、Z-index:11にします。そしてLeft:XXpxなどで場所をしいています。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/layout/81/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3でやる！マルチカラム</title>
		<link>http://css.colopixie.com/css3/72</link>
		<comments>http://css.colopixie.com/css3/72#comments</comments>
		<pubDate>Fri, 02 Apr 2010 12:14:42 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[レイアウト]]></category>
		<category><![CDATA[実用]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=72</guid>
		<description><![CDATA[float:leftでふつうはカラムを使ってやりますが、CSS3からは簡単にマルチカラムを作ることができます。 対応ブラウザ◯ Google Chrome / Safari / Firefox×Opera / InternetExplorer HTML &#60;h2&#62;3カラム&#60;/h2&#62; &#60;div class=&#34;columns&#34;&#62;&#60;p&#62;あああああああああああああああああああああ&#60;br /&#62;略&#60;/p&#62; &#60;p&#62;あああああああああああああ...略&#60;/div&#62; &#60;h2&#62;column-width&#60;/h2&#62; &#60;div class=&#34;columns&#34;&#62;&#60;p&#62;あああああああああああああああああああああ&#60;br /&#62;略&#60;/p&#62; &#60;p&#62;あああああああああああああ...略&#60;/div&#62; &#60;h2&#62;column-gap&#60;/h2&#62; &#60;div class=&#34;column width gap&#34;&#62;&#62;&#60;p&#62;あああああああああああああああああああああ&#60;br /&#62;略&#60;/p&#62; &#60;p&#62;あああああああああああああ...略&#60;/div&#62; &#60;h2&#62;column-rule&#60;/h2&#62; &#60;div class=&#34;column width gap rule&#34;&#62;&#60;p&#62;あああああああああああああああああああああ&#60;br /&#62;略&#60;/p&#62; &#60;p&#62;あああああああああああああ...略&#60;/div&#62; CSS .columns { -webkit-column-count: 3; -moz-column-count: 3; background-color:#FFF; padding: 10px; } .column { background-color:#FFF; padding: 10px; } .width {]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/css3_multi_column.jpg" alt="" title="css3_multi_column" width="400" height="200" class="alignnone size-full wp-image-98" /><br />
float:leftでふつうはカラムを使ってやりますが、CSS3からは簡単にマルチカラムを作ることができます。<br />
<span id="more-72"></span></p>
<div class="information">
<a href="http://css.colopixie.com/sample-html/css3_multi_column.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span> Google Chrome / Safari / Firefox<span class="batsu">×</span>Opera / InternetExplorer</div>
</div>
<h4>HTML</h4>
<pre class="brush:xml">
&lt;h2&gt;3カラム&lt;/h2&gt;
&lt;div class=&quot;columns&quot;&gt;&lt;p&gt;あああああああああああああああああああああ&lt;br /&gt;略&lt;/p&gt; &lt;p&gt;あああああああああああああ...略&lt;/div&gt;
&lt;h2&gt;column-width&lt;/h2&gt;
&lt;div class=&quot;columns&quot;&gt;&lt;p&gt;あああああああああああああああああああああ&lt;br /&gt;略&lt;/p&gt; &lt;p&gt;あああああああああああああ...略&lt;/div&gt;
&lt;h2&gt;column-gap&lt;/h2&gt;
&lt;div class=&quot;column width gap&quot;&gt;&gt;&lt;p&gt;あああああああああああああああああああああ&lt;br /&gt;略&lt;/p&gt; &lt;p&gt;あああああああああああああ...略&lt;/div&gt;
&lt;h2&gt;column-rule&lt;/h2&gt;
&lt;div class=&quot;column width gap rule&quot;&gt;&lt;p&gt;あああああああああああああああああああああ&lt;br /&gt;略&lt;/p&gt; &lt;p&gt;あああああああああああああ...略&lt;/div&gt;
</pre>
<h4>CSS</h4>
<pre class="brush:css">
.columns {
	-webkit-column-count: 3;
	-moz-column-count: 3;
	background-color:#FFF;
	padding: 10px;
}
.column {
	background-color:#FFF;
	padding: 10px;
}
.width {
	-moz-column-width: 145px;
	-webkit-column-width: 145px;
	width: 1
}
.gap {
	-webkit-column-gap: 5em;
	-moz-column-gap: 5em;
}
.rule {
	-webkit-column-rule: 4px solid pink;
	-moz-column-rule: 4px solid pink;
}
p {
	margin: 5px;
	padding: 5px;
	background-color:#ffd2ff;
}
</pre>
<ul>
<li>.columnsは　column-count: カラム数; Firefox様に-moz- Webkit用に-webkit-をつけます。</li>
<li>.columnは column-width を指定してサイズを決めます。CSSのWidthと殆ど同じです。-moz-/-webkit-/が必要</li>
<li>.gapは column-gap を指定してカラムの間の余白をつけることができます。Padding: x ここと同様; -moz-/-webkit-/が必要 </li>
<li>.ruleは column-rule を指定してカラムの間のボーダーを表示します。指定方法はCSSのBorderと同様です。 -moz-/-webkit-/が必要 </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/css3/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>半透明ボックス(CSS3/CSS)</title>
		<link>http://css.colopixie.com/css3/67</link>
		<comments>http://css.colopixie.com/css3/67#comments</comments>
		<pubDate>Fri, 02 Apr 2010 08:53:55 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[レイアウト]]></category>
		<category><![CDATA[実用]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=67</guid>
		<description><![CDATA[背景を透過したい時に使うのが opacity です。 これは、IE/Firefox/Opera/Safari/Google Choromeなどに対応しています。 CSS3では、背景にRGBaが使えるようになったのでこちらも紹介します。 対応ブラウザ◯Google Chrome / Safari / Firefox / Opera ▲ InternetExplorer HTML &#60;h2&#62;IE用&#60;/h2&#62; &#60;div class=&#34;background css ie&#34;&#62;&#60;p&#62;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&#60;/p&#62;&#60;/div&#62; &#60;h2&#62;Firefox&#60;/h2&#62; &#60;div class=&#34;background css fx&#34;&#62;&#60;p&#62;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&#60;/p&#62;&#60;/div&#62; &#60;h2&#62;Webkit&#60;/h2&#62; &#60;div class=&#34;background css wk&#34;&#62;&#60;p&#62;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&#60;/p&#62;&#60;/div&#62; &#60;h2&#62;CSS3&#60;/h2&#62; &#60;div class=&#34;background css3&#34;&#62;&#60;p&#62;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&#60;/p&#62;&#60;/div&#62; ここではわかりやすい様にブラウザごとに分けています。 CSS .background { background-image:url(http://art30.photozou.jp/pub/994/306994/photo/35227130.jpg); width: 400px; height: 250px; padding: 25px; } .background p { padding: 55px 10px; text-align:]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/opacity-box-css.jpg" alt="" title="opacity-box-css" width="400" height="200" class="alignnone size-full wp-image-100" /><br />
背景を透過したい時に使うのが opacity です。<br />
これは、IE/Firefox/Opera/Safari/Google Choromeなどに対応しています。<br />
CSS3では、背景にRGBaが使えるようになったのでこちらも紹介します。<br />
<span id="more-67"></span></p>
<div class="information">
<a href="http://css.colopixie.com/sample-html/opacity-box-css.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span>Google Chrome / Safari / Firefox / Opera<br />
<span class="sankaku">▲</span> InternetExplorer</div>
</div>
<h4>HTML</h4>
<pre class="brush:xml">
   &lt;h2&gt;IE用&lt;/h2&gt;
   &lt;div class=&quot;background css ie&quot;&gt;&lt;p&gt;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&lt;/p&gt;&lt;/div&gt;
   &lt;h2&gt;Firefox&lt;/h2&gt;
   &lt;div class=&quot;background css fx&quot;&gt;&lt;p&gt;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&lt;/p&gt;&lt;/div&gt;
   &lt;h2&gt;Webkit&lt;/h2&gt;
   &lt;div class=&quot;background css wk&quot;&gt;&lt;p&gt;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&lt;/p&gt;&lt;/div&gt;
   &lt;h2&gt;CSS3&lt;/h2&gt;
   &lt;div class=&quot;background css3&quot;&gt;&lt;p&gt;もじもじ文字もじもじ文字もじもじ文字もじもじ文字&lt;/p&gt;&lt;/div&gt;
</pre>
<ul>
<li>ここではわかりやすい様にブラウザごとに分けています。</li>
</ul>
<h4>CSS</h4>
<pre class="brush:css">
.background {
	background-image:url(http://art30.photozou.jp/pub/994/306994/photo/35227130.jpg);
	width: 400px;
	height: 250px;
	padding: 25px;
}
.background p {
	padding: 55px 10px;
	text-align: center;
	font-size: 1.6em;
	color: #000;
	height: 50px
}
.css p {
	background-color:#FFF;
}
.ie p {filter: alpha(opacity=50)}
.fx p {-moz-opacity:0.5;}
.wk p {opacity:0.5;}
.css3 p {
	background-color: rgba(255,255,255,0.5)
}
</pre>
<ul>
<li>.backgroundは、画像背景をしています。</li>
<li>IEは filter:alpha(opacity:数値) 0が透明になり、100が100％の背景色にります。IEはheightを指定しないとならないので指定しましょう。</li>
<li>FXは -moz-opacity:数値 0が透明になり、1が100％の背景色になります。 35％の場合は、0.35となります。</li>
<li>Webkitは、 opacity:数値　となります。Fxと同じ数値で指定できます。</li>
<li>CSS3ではRGBaが使えるようになったのでそれで指定します。 赤緑青　透明度を指定します。</li>
</ul>
<p>IE6/7ではRGBaが使えないのでRGBaのみ使用する場合ハック等を使って background-color: #fff などを指定して filterを使い半透明にすることができます。<br />
RGBaをつかう利点としてOpacity指定だと文字も半透明にならなくなるという利点があります。</p>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/css3/67/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>文章をはみ出さずに折り返す</title>
		<link>http://css.colopixie.com/layout/62</link>
		<comments>http://css.colopixie.com/layout/62#comments</comments>
		<pubDate>Mon, 29 Mar 2010 04:18:14 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[Layout]]></category>
		<category><![CDATA[PRE]]></category>
		<category><![CDATA[レイアウト]]></category>
		<category><![CDATA[実用]]></category>
		<category><![CDATA[文章]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=62</guid>
		<description><![CDATA[PREやコメント欄でURLや改行をしてない長い文章などがあると、欄のWidthを無視してはみ出してしまうということがおきます。 対応ブラウザ◯Google Chrome / Safari / Firefox / Opera/ InternetExplorer HTML &#60;pre class=&#34;wrap&#34;&#62;テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト&#60;/pre&#62; CSS pre { width: 300px; margin: 20px 30px; background-color:#d8d1cd; border: 3px solid #c0c0c0; padding: 5px; } .wrap { /* Mozilla */ white-space: -moz-pre-wrap; /* CSS3 */ white-space: pre-wrap; /* IE 5.5+ */ word-wrap: break-word; } PREにはWidthを指定 折り返したい物にはClassをつけて、Fx用CSS3用IE用と指定します。]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/wrap-to-go-over-the-text.jpg" alt="" title="wrap-to-go-over-the-text" width="400" height="200" class="alignnone size-full wp-image-102" /><br />
PREやコメント欄でURLや改行をしてない長い文章などがあると、欄のWidthを無視してはみ出してしまうということがおきます。<br />
<span id="more-62"></span></p>
<div class="information">
<a href="http://css.colopixie.com/sample-html/wrap-to-go-over-the-text.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span>Google Chrome / Safari / Firefox / Opera/ InternetExplorer</div>
</div>
<h4>HTML</h4>
<pre class="brush:xml">&lt;pre class=&quot;wrap&quot;&gt;テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト文字テスト&lt;/pre&gt;</pre>
<h4>CSS</h4>
<pre class="brush:css">
	pre {
	width: 300px;
	margin: 20px 30px;
	background-color:#d8d1cd;
	border: 3px solid #c0c0c0;
	padding: 5px;
}
.wrap {
	/* Mozilla */
	white-space: -moz-pre-wrap;
	/* CSS3 */
	white-space: pre-wrap;
	/* IE 5.5+ */
	word-wrap: break-word;
}
</pre>
<ol>
<li>PREにはWidthを指定</li>
<li>折り返したい物にはClassをつけて、Fx用CSS3用IE用と指定します。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/layout/62/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1つのCSSファイルで複数のCSSファイルを読み込ませる</title>
		<link>http://css.colopixie.com/layout/58</link>
		<comments>http://css.colopixie.com/layout/58#comments</comments>
		<pubDate>Mon, 29 Mar 2010 02:16:51 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[Layout]]></category>
		<category><![CDATA[実用]]></category>
		<category><![CDATA[読み込み]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=58</guid>
		<description><![CDATA[Head部分に &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34; filename1.css &#34; /&#62; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34; filename2.css &#34; /&#62; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34; filename3.css &#34; /&#62; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34; filename4.css &#34; /&#62; 複数のCSSファイルを呼び出していますが、コードの見栄えや読み込みの事を考えると1つのファイルに纏めるのが見やすく管理しやすいのでおすすめです。 読み込み方は簡単でCSSファイル(ここではimport.css)にCSSファイルを記述するだけです。 @import url(" *.css "); @import url(" *.css "); @import url(" *.css "); これを記述して保存しHeadにimport.cssを読み込ませるだけです。]]></description>
			<content:encoded><![CDATA[<p>Head部分に</p>
<pre class="brush:xml">
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot; filename1.css &quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot; filename2.css &quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot; filename3.css &quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot; filename4.css &quot; /&gt;
</pre>
<p>複数のCSSファイルを呼び出していますが、コードの見栄えや読み込みの事を考えると1つのファイルに纏めるのが見やすく管理しやすいのでおすすめです。<br />
<span id="more-58"></span><br />
読み込み方は簡単でCSSファイル(ここではimport.css)にCSSファイルを記述するだけです。</p>
<pre class="brush:css">
@import url(" *.css ");
@import url(" *.css ");
@import url(" *.css ");
</pre>
<p>これを記述して保存しHeadにimport.cssを読み込ませるだけです。</p>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/layout/58/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>img(画像)を正方形に切り取って表示させる</title>
		<link>http://css.colopixie.com/image/53</link>
		<comments>http://css.colopixie.com/image/53#comments</comments>
		<pubDate>Mon, 29 Mar 2010 02:06:47 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[Image]]></category>
		<category><![CDATA[裏技的]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=53</guid>
		<description><![CDATA[普通の長方形の画像を表示させるのではなく、正方形にｷﾘﾄﾘ（overflow:hiddenを使って)します。(16:9の縦長には未対応) 対応ブラウザ◯Google Chrome / Safari / Firefox / Opera/ InternetExplorer HTML &#60;h2&#62;正方形に切り取る(w:h=100px)&#60;/h2&#62; &#60;div class="sqimgageview"&#62; &#60;span class="cut"&#62;&#60;img src="http://art27.photozou.jp/pub/994/306994/photo/34967559.jpg" alt="sample" class="cut_image" /&#62;&#60;/span&#62; &#60;span class="cut"&#62;&#60;img src="http://art19.photozou.jp/pub/994/306994/photo/33486834.jpg" alt="sample" class="cut_image" /&#62;&#60;/span&#62; &#60;span class="cut"&#62;&#60;img src="http://art29.photozou.jp/pub/994/306994/photo/34967517.jpg" alt="sample" class="cut_image" /&#62;&#60;/span&#62; &#60;span class="cut"&#62;&#60;img src="http://art26.photozou.jp/pub/994/306994/photo/34957495.jpg" alt="sample" class="cut_image" /&#62;&#60;/span&#62; &#60;span class="cut"&#62;&#60;img src="http://art20.photozou.jp/pub/994/306994/photo/34120818.jpg" alt="sample" class="cut_image" /&#62;&#60;/span&#62; &#60;/div&#62; 切り取るためのSpanの中に画像を入れます。 SpanとImgには別のClassをしておきます。 CSS .cut { position:relative; float: left; overflow: hidden;]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/img-to-display-a-square-cut.jpg" alt="" title="img-to-display-a-square-cut" width="400" height="200" class="alignnone size-full wp-image-104" /><br />
普通の長方形の画像を表示させるのではなく、正方形にｷﾘﾄﾘ（overflow:hiddenを使って)します。(16:9の縦長には未対応)<br />
<span id="more-53"></span></p>
<div class="information">
<p><a href="http://css.colopixie.com/sample-html/img-to-display-a-square-cut.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span>Google Chrome / Safari / Firefox / Opera/ InternetExplorer</div>
</div>
<h4>HTML</h4>
<pre class="brush:xml">   &lt;h2&gt;正方形に切り取る(w:h=100px)&lt;/h2&gt;
   &lt;div class="sqimgageview"&gt;
   &lt;span class="cut"&gt;&lt;img src="http://art27.photozou.jp/pub/994/306994/photo/34967559.jpg" alt="sample" class="cut_image" /&gt;&lt;/span&gt;
   &lt;span class="cut"&gt;&lt;img src="http://art19.photozou.jp/pub/994/306994/photo/33486834.jpg" alt="sample" class="cut_image" /&gt;&lt;/span&gt;
   &lt;span class="cut"&gt;&lt;img src="http://art29.photozou.jp/pub/994/306994/photo/34967517.jpg" alt="sample" class="cut_image" /&gt;&lt;/span&gt;
   &lt;span class="cut"&gt;&lt;img src="http://art26.photozou.jp/pub/994/306994/photo/34957495.jpg" alt="sample" class="cut_image" /&gt;&lt;/span&gt;
   &lt;span class="cut"&gt;&lt;img src="http://art20.photozou.jp/pub/994/306994/photo/34120818.jpg" alt="sample" class="cut_image" /&gt;&lt;/span&gt;
   &lt;/div&gt;</pre>
<ol>
<li>切り取るためのSpanの中に画像を入れます。</li>
<li>SpanとImgには別のClassをしておきます。</li>
</ol>
<h4>CSS</h4>
<pre class="brush:css">
.cut {
	position:relative;
	float: left;
	overflow: hidden; /*不要部分ｷﾘﾄﾘ*/
	height: 100px; /*正方形にしたいサイズ*/
	width: 100px; /*正方形にしたいサイズ*/
	display: block; /*SPANなのでブロック要素に*/
}
.cut_image /*縦・横の画像でも一応見れるように微妙に調整されています*/ {
	display: block;
	height: 160px;
	position: absolute;
	left: -65px;
	top: -25px;
}
</pre>
<ol>
<li>Span(.cut)はブロック要素にしてからサイズを決めます。並べたかったのでFloat:leftを指定しました。<br />
重要なものはOverflow:hiddenです。これによりTopやLeftではみ出た物を見えなくしてくれます。</li>
<li>Img(.cut_image)は、w/h:100pxにしたいときはheightを160pxにして、Leftに-65pxとTopに-25pxぐらいを切り取っています。<br />
これくらいで丁度中央になると思います。Top/Leftを有効にするためにPosition:absoluteを指定。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/image/53/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>imgで全画面にして背景にする</title>
		<link>http://css.colopixie.com/background/30</link>
		<comments>http://css.colopixie.com/background/30#comments</comments>
		<pubDate>Sat, 20 Mar 2010 09:14:30 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[Background]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[裏技的]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=30</guid>
		<description><![CDATA[Flashだと、画面のサイズが変わっても背景の画像がきちんとぴったし表示されますが（例：YUI-NET)、CSSではできません。 そこで、を使って画像いっぱいに表示されるCSSの紹介。 対応ブラウザ◯ Google Chrome / Safari / Firefox / Opera / InternetExplorer HTML &#60;!--*画像のDIV*--&#62; &#60;div id="img"&#62; &#60;img class="image" src="content-images/css_all_background_large.JPG" alt="画像が表示されます。" /&#62;&#60;/div&#62; &#60;!--*コンテンツ*--&#62; &#60;div id="content"&#62; &#60;h1&#62;imgで全画面にして背景にする&#60;/h1&#62; &#60;p&#62;簡単にできますが、ファイルサイズが大きいので注意です。&#60;br /&#62; また、Internet Explorer6はブラウザ上での画像縮小がとても汚いので&#60;br /&#62; あまりおすすめしません。&#60;br /&#62;写真は&#60;a href="http://photo.v-colors.com/760.html" target="_blank"&#62;こちら&#60;/a&#62;からお借りしました。&#60;/p&#62; &#60;/div&#62; CSS body,td,th { font-family: Meiryo, ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3; font-size: 12px; margin: 0px; padding: 0px; color: #ccc]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/background-full-screen.jpg" alt="" title="background-full-screen" width="400" height="200" class="alignnone size-full wp-image-106" /><br />
Flashだと、画面のサイズが変わっても背景の画像がきちんとぴったし表示されますが（例：<a href="http://www.yui-net.com/index.html" target="new">YUI-NET</a>)、CSSではできません。<br />
そこで、<img alt="" />を使って画像いっぱいに表示されるCSSの紹介。<br />
<span id="more-30"></span></p>
<div class="information"><a href="http://css.colopixie.com/sample-html/background-full-screen.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span> Google Chrome / Safari / Firefox / Opera<br />
/ InternetExplorer</div>
</div>
<h4>HTML</h4>
<pre class="brush:xml">&lt;!--*画像のDIV*--&gt;
&lt;div id="img"&gt;
&lt;img class="image" src="content-images/css_all_background_large.JPG" alt="画像が表示されます。" /&gt;&lt;/div&gt;
&lt;!--*コンテンツ*--&gt;
&lt;div id="content"&gt;
&lt;h1&gt;imgで全画面にして背景にする&lt;/h1&gt;
&lt;p&gt;簡単にできますが、ファイルサイズが大きいので注意です。&lt;br /&gt;
また、Internet Explorer6はブラウザ上での画像縮小がとても汚いので&lt;br /&gt;
あまりおすすめしません。&lt;br /&gt;写真は&lt;a href="http://photo.v-colors.com/760.html" target="_blank"&gt;こちら&lt;/a&gt;からお借りしました。&lt;/p&gt;
&lt;/div&gt;</pre>
<h4>CSS</h4>
<pre class="brush:css">body,td,th {
	font-family: Meiryo, ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3;
	font-size: 12px;
	margin: 0px;
	padding: 0px;
	color: #ccc
}
body {
	background-image: url(content-images/css_all_background_small.jpg); /*回線が遅い人用の低画質画像*/
	background-position: center center;
}
/*画像を切り取る*/
#img {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0px;
	overflow: hidden;
}
/*横幅のみ100%*/
#img .image {
	width: 100%;
}
/*コンテンツ*/
#content {
	height: 300px;
	width: 600px;
	margin-top: -150px;
	margin-left: -300px;
	position: absolute;
	left: 50%;
	top: 50%;
	background-color: #000;
	border: 1px solid #000000;
	filter:alpha(opacity=95);
	opacity:0.5
}
#content h1 {
	text-align: center;
	margin: 0px;
	padding: 50px;
	font-size: 25px;
	letter-spacing: .1em;
}
#content p {
	line-height: 2em;
	margin: 0px;
	padding: 20px;
	letter-spacing: .1em;
}</pre>
<ol>
<li>bodyに、サイズの小さい画像(css_all_background_small.jpg)を元々設定しています。なかなかimgの画像が表示されないときにこれが表示されるはずです。サイズは1440ぐらいにしています。</li>
<li>#imgにはwidthとheightで全画面にするようして、overflow: hidden;は中のimgがはみ出てもスクロールバーが出ない用にする</li>
<li>.imageはwidthを100%にするだけ。</li>
<li>#contentに関しては、left,topとネガティブマージンを使って上下中央にしています。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/background/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>実際に使ってよさそうなCSS3</title>
		<link>http://css.colopixie.com/css3/17</link>
		<comments>http://css.colopixie.com/css3/17#comments</comments>
		<pubDate>Sat, 20 Mar 2010 05:51:31 +0000</pubDate>
		<dc:creator>fukuchi</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[実用]]></category>

		<guid isPermaLink="false">http://css.colopixie.com/?p=17</guid>
		<description><![CDATA[CSS3を実装するサイトもすこしずつ増えてきていますが、やはり問題は対応しているブラウザでみているかです。 非対応なら、何も変化が起きないのでアニメーションなど使っている場合は「なんだろうこれは・・・」となってしまうかと思います。 しかし、飾り程度のCSS3なら非対応のブラウザで見てもほとんど支障がない筈です。 Menu Border-radius Text-shadow Box Shadow Web Fonts Gradient 対応ブラウザ◯ Google Chrome / Safari / Firefox▲ Opera× InternetExplorer 1.Border-radius できること ボックスの角を丸くできる &#8211; IEで表示しても、見た目のみ変わる border-radius: サイズを指定; また上下左右に指定したい場合は、border-上下(top/bottom)-左右(left/right)-radius: サイズ;を指定すると上下左右で違うものができる。（Fx -moz-border-radius-場所 / Webkit -webkit-border-上か下-左か右-radius) -moz-border-radius: 10px; /* Firefox */ -webkit-border-radius: 10px; /* Safari */ border-radius: 10px; /* CSS3 */ 上下左右変える場合 /*firefox*/ -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft:]]></description>
			<content:encoded><![CDATA[<p><img src="http://css.colopixie.com/wp-content/uploads/http-_css.colopixie.com_sample-html_really-good-for-using-css3.jpg" alt="" title="http-_css.colopixie.com_sample-html_really-good-for-using-css3" width="400" height="200" class="alignnone size-full wp-image-108" /><br />
CSS3を実装するサイトもすこしずつ増えてきていますが、やはり問題は対応しているブラウザでみているかです。<br />
非対応なら、何も変化が起きないのでアニメーションなど使っている場合は「なんだろうこれは・・・」となってしまうかと思います。<br />
しかし、飾り程度のCSS3なら非対応のブラウザで見てもほとんど支障がない筈です。<br />
<strong>Menu</strong></p>
<ol>
<li>Border-radius</li>
<li>Text-shadow</li>
<li>Box Shadow</li>
<li>Web Fonts</li>
<li>Gradient</li>
</ol>
<p><span id="more-17"></span></p>
<div class="information">
<a href="http://css.colopixie.com/sample-html/really-good-for-using-css3.html" target="_blank"><img class="sv" src="http://css.colopixie.com/wp-content/themes/wsc5_0_b3/images/sample_view.png" alt="sample View" /></a></p>
<div class="browser"><span class="brow">対応ブラウザ</span><span class="maru">◯</span> Google Chrome / Safari / Firefox<br /><span class="sankaku">▲</span> Opera<br /><span class="batsu">×</span> InternetExplorer</div>
</div>
<h4>1.Border-radius</h4>
<p>できること ボックスの角を丸くできる &#8211; IEで表示しても、見た目のみ変わる<br />
border-radius: サイズを指定;  また上下左右に指定したい場合は、border-上下(top/bottom)-左右(left/right)-radius: サイズ;を指定すると上下左右で違うものができる。（Fx -moz-border-radius-場所 / Webkit -webkit-border-上か下-左か右-radius)</p>
<pre class="brush:css">-moz-border-radius: 10px;  /* Firefox */
-webkit-border-radius: 10px;  /* Safari */
border-radius: 10px; /* CSS3 */</pre>
<p> 上下左右変える場合</p>
<pre class="brush:css">
/*firefox*/
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
/*Webkit*/
-webkit-border-top-right-radius: 10px;
-webkit-border-top-left-radius: 10px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
 </pre>
<h4>2.Text-shadow</h4>
<p>できること 文字に影をつけることができる &#8211; IEで表示しても、通常の文字になるだけです。　横へのオフセット 縦へのオフセット ぼかしの大きさ　と成っています。</p>
<pre class="brush:css">text-shadow: 1px 1px 2px #000;</pre>
<h4>3.Box-Shadow</h4>
<p>できること ボックス（DIV要素)などに影をつけることができる。 &#8211; IEで表示しても、影がない普通の要素になるだけです。　　横へのオフセット 縦へのオフセット ぼかしの大きさ　と成っています。</p>
<pre class="brush:css">-webkit-box-shadow: 1px 1px 5px #ddd;  /* safari */
-moz-box-shadow: 1px 1px 5px #ddd;   /* firefox */
box-shadow: 1px 1px 5px #ddd;  /* CSS3 */</pre>
<h4>4.Web Fonts</h4>
<p>できること パソコンにインストールされていないフォントがサイトで表示できる &#8211; IEで表示しても、<em>font-family: Webfont,メイリオ</em>な具合だったらメイリオが表示される &#8211; 注意！日本語のフォントは読み込みに時間がかかるのであまり使わない方がいいかもしれません。</p>
<pre class="brush:css">@font-face {
	font-family: フォント名;
	src: url(TTFファイル) format("truetype");
}
body {
        font-family: フォント名;
}
フォントを呼び出してから、フォントを指定します</pre>
<h4>5.Gradient</h4>
<p>できること 画像を使わずにグラデーションが実現可能 &#8211; IEで表示しても、<em>background-color: #000;</em>としていたら、黒くなる</p>
<pre class="brush:css">background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#111), to(#333)); /* Safari */
background: -moz-linear-gradient(top, #111,#333); /* FireFox */</pre>
<p>FirefoxとSafariのソースが異なります。<br />
それほどレイアウトが崩れないものをピックアップしてみました。 IEは本当に何も対応していないので、アクセス解析などでIEの利用者さんが多いサイトなどはまだ使わない方がいいかもしれません。</p>
]]></content:encoded>
			<wfw:commentRss>http://css.colopixie.com/css3/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: css.colopixie.com @ 2012-05-20 08:55:19 -->
