<?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>Web制作 ウェブマジック &#187; 配置指定</title>
	<atom:link href="http://www.hp-webmagic.com/wordpress/archives/tag/position-css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hp-webmagic.com/wordpress</link>
	<description>高品質なのに低価格 Web標準hp制作・CMS・ネットショップ</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:27:49 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>min-width：最小幅指定</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/254</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/254#comments</comments>
		<pubDate>Tue, 28 Oct 2008 04:27:32 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[ボックス指定]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=254</guid>
		<description><![CDATA[min-widthプロパティは要素の最大の横幅を設定。IE6以前のバージョンは未対応な点に注意。 プロパティ min-width 値 em &#124; px &#124; % 対象 すべての要素(tableは除く) 継承の有無 なし 通常 [...]]]></description>
			<content:encoded><![CDATA[<p>min-widthプロパティは要素の最大の横幅を設定。IE6以前のバージョンは未対応な点に注意。</p>
<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>min-width</p>
</dd>
<dt>値</dt>
<dd>
<p>em | px | %</p>
</dd>
<dt>対象</dt>
<dd>
<p>すべての要素(tableは除く)</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
<p>通常は最小幅[max-width]と同時指定します。</p>
<pre>&lt;div id=&quot;box&quot;&gt;
&lt;div id=&quot;***&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;***&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;***&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
---- CSS ----
#box {
  min-width: 700px;
  max-width: 900px;
}</pre>
<p>IE6以前のブラウザ用にCSSファイルを作成するなどの対処が必要。</p>
<p>IE独自拡張スクリプトを記述</p>
<pre>#box {
  min-width: 700px;
  max-width: 900px;
  width: expression(document.body.clientWidth &lt; 701? &quot;700px&quot;:document.body.clientWidth &gt; 901? &quot;900px&quot; : &quot;100%&quot;);
  position: relative;
}</pre>
<p>IE用CSSファイルを読み込む</p>
<pre>&lt;head&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;

<span>&lt;!--[if gte IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;IE用.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
&lt;![endif]--&gt;</span>
&lt;/head&gt;</pre>
<p><span id="more-254"></span></p>
<h3>max-widthプロパティ</h3>
<p>min-widthプロパティは要素の最大の横幅を設定。</p>
<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>max-width</p>
</dd>
<dt>値</dt>
<dd>
<p>em | px | %</p>
</dd>
<dt>対象</dt>
<dd>
<p>すべての要素(tableは除く)</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>max-width：最大幅指定</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/253</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/253#comments</comments>
		<pubDate>Tue, 28 Oct 2008 04:23:23 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[ボックス指定]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=253</guid>
		<description><![CDATA[max-widthプロパティは要素の最大の横幅を設定。IE6以前のバージョンは未対応な点に注意。 プロパティ max-width 値 em &#124; px &#124; % 対象 すべての要素(tableは除く) 継承の有無 なし 通常 [...]]]></description>
			<content:encoded><![CDATA[<p>max-widthプロパティは要素の最大の横幅を設定。IE6以前のバージョンは未対応な点に注意。</p>
<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>max-width</p>
</dd>
<dt>値</dt>
<dd>
<p>em | px | %</p>
</dd>
<dt>対象</dt>
<dd>
<p>すべての要素(tableは除く)</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
<p>通常は最小幅[min-width]と同時指定します。</p>
<pre>&lt;div id=&quot;box&quot;&gt;
&lt;div id=&quot;***&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;***&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;***&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
---- CSS ----
#box {
  min-width: 700px;
  max-width: 900px;
}</pre>
<p>IE6以前のブラウザ用にCSSファイルを作成するなどの対処が必要。</p>
<p>IE独自拡張スクリプトを記述</p>
<pre>#box {
  min-width: 700px;
  max-width: 900px;
  width: expression(document.body.clientWidth &lt; 701? &quot;700px&quot;:document.body.clientWidth &gt; 901? &quot;900px&quot; : &quot;100%&quot;);
  position: relative;
}</pre>
<p>IE用CSSファイルを読み込む</p>
<pre>&lt;head&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;

<span>&lt;!--[if gte IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;IE用.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
&lt;![endif]--&gt;</span>
&lt;/head&gt;</pre>
<p><span id="more-253"></span></p>
<h3>min-widthプロパティ</h3>
<p>min-widthプロパティは要素の最小の横幅を設定。</p>
<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>min-width</p>
</dd>
<dt>値</dt>
<dd>
<p>em | px | %</p>
</dd>
<dt>対象</dt>
<dd>
<p>すべての要素(tableは除く)</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/253/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clearfix：floatの解除</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/252</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/252#comments</comments>
		<pubDate>Tue, 28 Oct 2008 03:26:47 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[CSSレイアウトサンプル]]></category>
		<category><![CDATA[CSSレイアウト]]></category>
		<category><![CDATA[ボックス指定]]></category>
		<category><![CDATA[背景指定]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=252</guid>
		<description><![CDATA[親ボックス内でfloatを解除する子ボックス[#footer{clear:both;}など]を設けない場合のfloat解除方法。 親ボックス内でfloatを解除しなかった場合、背景画像が表示されない、或いは親ボックスの下 [...]]]></description>
			<content:encoded><![CDATA[<p>親ボックス内でfloatを解除する子ボックス[#footer{clear:both;}など]を設けない場合のfloat解除方法。</p>
<p>親ボックス内でfloatを解除しなかった場合、背景画像が表示されない、或いは親ボックスの下まで表示されない場合などに有効だが、基本的には親ボックス内でfloatを解除した方がbetter。</p>
<pre>&lt;div id=&quot;box&quot;&gt;
&lt;div id=&quot;box-a&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;box-b&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
---- CSS ----
#box { width: 700px; margin: 0 auto; background: #******; }
#box-a { width: 500px; float: left; }
#box-b { width: 200px; float: right; }</pre>
<pre>&lt;div id=&quot;box&quot; class=&quot;clearfix&quot;&gt;
&lt;div id=&quot;box-a&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;box-b&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
---- CSS ----
#box { width: 700px; margin: 0 auto; background: #******; }

.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

 .clearfix { display: inline-block; } /* Hides from IE-mac \*/
* html .clearfix { height: 1%; }
 .clearfix { display: block; } /* End hide from IE-mac */

#box-a { width: 500px; float: left; }
#box-b { width: 200px; float: right; }</pre>
<p>参考：<a href="http://www.positioniseverything.net/easyclearing.html">Clearing a float container without source markup</a></p>
<p>和訳：<a href="http://www.kuroduction.com/doc/translation/position_is_everything/easyclearing.html">構造のマークアップなしでフロートをクリアする方法</a></p>
<p>とても参考になる記事：<a href="http://norisfactory.com/stylesheetlab/000038.php">clearfixの決定版を作る －モダンブラウザ編－</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>z-index：要素の重なり</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/61</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/61#comments</comments>
		<pubDate>Wed, 25 Jun 2008 02:55:36 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=61</guid>
		<description><![CDATA[プロパティ z-index 値 数値 対象 position指定要素 継承の有無 なし]]></description>
			<content:encoded><![CDATA[<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>z-index</p>
</dd>
<dt>値</dt>
<dd>
<p>数値</p>
</dd>
<dt>対象</dt>
<dd>
<p>position指定要素</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/61/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clear：回り込み解除</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/58</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/58#comments</comments>
		<pubDate>Wed, 25 Jun 2008 02:47:23 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=58</guid>
		<description><![CDATA[プロパティ clear 値 キーワード(下記参照) left &#124; right &#124; both &#124; none 対象 ブロックレベル要素 継承の有無 なし]]></description>
			<content:encoded><![CDATA[<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>clear</p>
</dd>
<dt>値</dt>
<dd>
<p>キーワード(下記参照)</p>
<p>left | right | both | none</p>
</dd>
<dt>対象</dt>
<dd>
<p>ブロックレベル要素</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/58/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>float：配置指定</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/55</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/55#comments</comments>
		<pubDate>Wed, 25 Jun 2008 02:40:52 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=55</guid>
		<description><![CDATA[プロパティ float 値 キーワード(下記参照) left &#124; right &#124; none 対象 すべての要素 継承の有無 なし]]></description>
			<content:encoded><![CDATA[<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>float</p>
</dd>
<dt>値</dt>
<dd>
<p>キーワード(下記参照)</p>
<p>left | right | none</p>
</dd>
<dt>対象</dt>
<dd>
<p>すべての要素</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/55/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>position：配置指定</title>
		<link>http://www.hp-webmagic.com/wordpress/archives/53</link>
		<comments>http://www.hp-webmagic.com/wordpress/archives/53#comments</comments>
		<pubDate>Wed, 25 Jun 2008 02:30:51 +0000</pubDate>
		<dc:creator>Web Magic</dc:creator>
				<category><![CDATA[CSSプロパティ一覧]]></category>
		<category><![CDATA[配置指定]]></category>

		<guid isPermaLink="false">http://www.hp-webmagic.com/?p=53</guid>
		<description><![CDATA[プロパティ position 値 キーワード(下記参照) static &#124; relative &#124; absolute &#124; fixed 対象 すべての要素 継承の有無 なし static &#124; 静的（デフォルト） relati [...]]]></description>
			<content:encoded><![CDATA[<dl class="css-property">
<dt>プロパティ</dt>
<dd>
<p>position</p>
</dd>
<dt>値</dt>
<dd>
<p>キーワード(下記参照)</p>
<p>static | relative | absolute | fixed</p>
</dd>
<dt>対象</dt>
<dd>
<p>すべての要素</p>
</dd>
<dt>継承の有無</dt>
<dd>
<p>なし</p>
</dd>
</dl>
<p>static | 静的（デフォルト）</p>
<p>relative | 相対配置（続くボックスに影響あり）</p>
<p>absolute | 絶対配置（続くボックスに影響を与えない）</p>
<p>fixed | 固定</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hp-webmagic.com/wordpress/archives/53/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

