<?xml version="1.0" encoding="utf-8"?><feed version="0.3"
  xmlns="http://purl.org/atom/ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
	<title>CSSSEOニュース</title>
	<link rel="alternate" type="text/html" href="http://fukuoka.mipuyu.com/css_seo/index.php" />
	<tagline>ウェブ制作に関する話題を掲載</tagline>
	<modified>2008-05-09T12:39:48+9:00</modified>
	<copyright>Copyright 2006</copyright>
	
		<entry>
	  	<author>
			<name>fukuoka</name>
		</author>
		<title>CSS プロパティ短縮術 (Shorthand Properties)</title>
		<link rel="alternate" type="text/html" href="http://fukuoka.mipuyu.com/css_seo/2006-07-05/css-shorthand-properties/" />
		<id>http://fukuoka.mipuyu.com/css_seo/index.php?p=2</id>
		<modified>2006-07-05T01:12:51+9:00</modified>
		<issued>2006-07-05T01:12:51+9:00</issued>
		
	<dc:subject>CSS</dc:subject>		<summary type="text/html">	表示速度を短縮するため、 CSS と日々葛藤する人々が多い昨今。どうせやるなら、とことんやりましょう。CSSもサイズダウンしてより高速化。
	background
短縮しましょう
	background-color: #000000;
background-image: url(image.gif);
background-repeat: no-repeat;
background-position: top left;
	短縮書き換え例：
background: #000000 url(image.gif) no-repeat top left
	list-style
短縮しましょう
	list-style: #ffffff;
list-style-type: disc;
list-style-position: outside;
list-style-image: url(image.gif)
	短縮書き換え例：
list-style: #ffffff disc outside url(image.gif)
	margin と padding
	CSS では、margin と padding プロパティの短縮方法は多数あります。
	上、右、下、左が全て違う値の場合
短縮しましょう
	margin-top: 2px;
margin-right: 1px;
margin-bottom: 3px;
margin-left: 4px
	短縮書き換え例：
margin: 2px 1px 3px 4px (上、右、下、左)
	右と左が同一で、上と下の値が違う場合
短縮しましょう
	margin-top: 10em;
margin-right: 1em;
margin-bottom: 5em;
margin-left: 1em
	短縮書き換え例：
margin: 10em 1em 5em (上、左右、下)
	上と下、右と左が同じ場合（対称同一）
短縮しましょう
	margin-top: 3%;
margin-right: 1%;
margin-bottom: 3%;
margin-left: 1%
	短縮書き換え例：
margin: 3% 1% ...</summary>
		<content type="text/html" mode="escaped" xml:base="http://fukuoka.mipuyu.com/css_seo/2006-07-05/css-shorthand-properties/"><![CDATA[	&lt;p&gt;表示速度を短縮するため、 &lt;acronym title=&quot;Cascading Stylesheets&quot;&gt;CSS&lt;/acronym&gt; と日々葛藤する人々が多い昨今。どうせやるなら、とことんやりましょう。&lt;acronym title=&quot;Cascading Stylesheets&quot;&gt;CSS&lt;/acronym&gt;もサイズダウンしてより高速化。&lt;/p&gt;
	&lt;p&gt;&lt;a id=&quot;more-2&quot;&gt;&lt;/a&gt;&lt;/p&gt;
	&lt;h2&gt;background&lt;/h2&gt;
	&lt;p&gt;短縮しましょう&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
background-color: #000000;&lt;br /&gt;
background-image: url(image.gif);&lt;br /&gt;
background-repeat: no-repeat;&lt;br /&gt;
background-position: top left;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;短縮書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;background: #000000 url(image.gif) no-repeat top left&lt;/code&gt;&lt;/p&gt;
	&lt;h2&gt;list-style&lt;/h2&gt;
	&lt;p&gt;短縮しましょう&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
list-style: #ffffff;&lt;br /&gt;
list-style-type: disc;&lt;br /&gt;
list-style-position: outside;&lt;br /&gt;
list-style-image: url(image.gif)&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;短縮書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;list-style: #ffffff disc outside url(image.gif)&lt;/code&gt;&lt;/p&gt;
	&lt;h2&gt;margin と padding&lt;/h2&gt;
	&lt;p&gt;&lt;acronym title=&quot;Cascading Stylesheets&quot;&gt;CSS&lt;/acronym&gt; では、&lt;code&gt;margin&lt;/code&gt; と &lt;code&gt;padding&lt;/code&gt; プロパティの短縮方法は多数あります。&lt;/p&gt;
	&lt;h3&gt;上、右、下、左が全て違う値の場合&lt;/h3&gt;
	&lt;p&gt;短縮しましょう&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
margin-top: 2px;&lt;br /&gt;
margin-right: 1px;&lt;br /&gt;
margin-bottom: 3px;&lt;br /&gt;
margin-left: 4px&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;短縮書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;margin: 2px 1px 3px 4px &lt;/code&gt;(&lt;em&gt;上、右、下、左&lt;/em&gt;)&lt;/p&gt;
	&lt;h3&gt;右と左が同一で、上と下の値が違う場合&lt;/h3&gt;
	&lt;p&gt;短縮しましょう&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
margin-top: 10em;&lt;br /&gt;
margin-right: 1em;&lt;br /&gt;
margin-bottom: 5em;&lt;br /&gt;
margin-left: 1em&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;短縮書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;margin: 10em 1em 5em&lt;/code&gt; (&lt;em&gt;上、左右、下&lt;/em&gt;)&lt;/p&gt;
	&lt;h3&gt;上と下、右と左が同じ場合（対称同一）&lt;/h3&gt;
	&lt;p&gt;短縮しましょう&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
margin-top: 3%;&lt;br /&gt;
margin-right: 1%;&lt;br /&gt;
margin-bottom: 3%;&lt;br /&gt;
margin-left: 1%&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;短縮書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;margin: 3% 1% &lt;/code&gt;(&lt;em&gt;上下、左右&lt;/em&gt;)&lt;/p&gt;
	&lt;h3&gt;全て同一の値の場合&lt;/h3&gt;
	&lt;p&gt;.一見すると分かりやすいのですが&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
margin-top: 0;&lt;br /&gt;
margin-right: 0;&lt;br /&gt;
margin-bottom: 0;&lt;br /&gt;
margin-left: 0&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;短縮書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;margin: 0 &lt;/code&gt;(&lt;em&gt;上下左右&lt;/em&gt;)&lt;/p&gt;
	&lt;h2&gt;Border&lt;/h2&gt;
	&lt;p&gt;短縮しましょう&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;&lt;br /&gt;
border-width: 1px;&lt;br /&gt;
border-color: #111111;&lt;br /&gt;
border-style: solid&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
	&lt;p&gt;書き換え例：&lt;/p&gt;
	&lt;p&gt;&lt;code&gt;border: 1px #111111 solid&lt;/code&gt;&lt;/p&gt;
]]></content>
	</entry>
	</feed>
