<?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>S i X h E a D { ? } &#187; css</title>
	<atom:link href="http://sixhead.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixhead.com</link>
	<description>เมื่อความรู้มีไว้แบ่งปัน</description>
	<lastBuildDate>Mon, 27 Feb 2012 06:23:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>css background อยู่กลางจอเสมอ</title>
		<link>http://sixhead.com/2010/01/15/css-background-center-top/</link>
		<comments>http://sixhead.com/2010/01/15/css-background-center-top/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 07:14:24 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=538</guid>
		<description><![CDATA[&#160; &#60;style&#62; body &#123; background:#000000 url&#40;images/bg_home.jpg&#41; no-repeat center top; &#125; &#60;/style&#62; &#160;]]></description>
			<content:encoded><![CDATA[<pre class="css">&nbsp;
&lt;style&gt;
body <span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span>:<span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span> <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">images/bg_home<span style="color: #6666ff;">.jpg</span></span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">top</span>;
<span style="color: #66cc66;">&#125;</span>
&lt;/style&gt;
&nbsp;</pre>
<p><map name='google_ad_map_538_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/538?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_538_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=538&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F01%2F15%2Fcss-background-center-top%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/01/15/css-background-center-top/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View Source Chart : ดู source code จาก FireFox แบบวิจิตรเทพ</title>
		<link>http://sixhead.com/2009/02/19/view-source-chart-the-most-accessible-dom-inspector/</link>
		<comments>http://sixhead.com/2009/02/19/view-source-chart-the-most-accessible-dom-inspector/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 14:13:01 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=337</guid>
		<description><![CDATA[Add-ons  FireFox ตัวโปรดอีกตัวนึงของผมเลยครับ หลังจากไม่ได้ใช้มานาน เพราะ upgrade FireFox เป็น v3 แล้วตัว add-ons มันไม่ support วันนี้นึกขึ้นได้ลองไป search ดูอีกครั้งปรากฏว่ามี experimental version ที่ใช้งานกับ FireFox 3 ได้แล้ว เลยรีบโหลดทันที ความสามารถของมันคือเอาไว้ view source code หน้า html ครับแต่ข้อดีสุดๆ ของมันก็คือ มันจะอ่าน html ออกมาในลักษณะ ของ DOM แสดงออกมาเป็น block แยกสีอย่างชัดเจนดูได้ง่าย และที่สุดยอดสุดๆ คืออะไรรู้ไหมครับ ถ้าคุณทำงานที่เกี่ยวข้องกับ ajax บ่อยหรือพวกสั่ง javascript write content เนี่ยะมันจะ view ออกมาให้เห็นพวก html ที่เราสั่ง write ออกมาให้ด้วยเลย (ใน [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-338 alignnone" style="margin-top: 2px; margin-bottom: 2px;" title="view-source-chart" src="http://sixhead.com/wp-content/uploads/2009/02/view-source-chart.png" alt="view-source-chart" width="304" height="239" /></p>
<p>Add-ons  FireFox ตัวโปรดอีกตัวนึงของผมเลยครับ หลังจากไม่ได้ใช้มานาน เพราะ upgrade FireFox เป็น v3 แล้วตัว add-ons มันไม่ support วันนี้นึกขึ้นได้ลองไป search ดูอีกครั้งปรากฏว่ามี experimental version ที่ใช้งานกับ FireFox 3 ได้แล้ว เลยรีบโหลดทันที ความสามารถของมันคือเอาไว้ view source code หน้า html ครับแต่ข้อดีสุดๆ ของมันก็คือ</p>
<p><span id="more-337"></span>มันจะอ่าน html ออกมาในลักษณะ ของ DOM แสดงออกมาเป็น block แยกสีอย่างชัดเจนดูได้ง่าย และที่สุดยอดสุดๆ คืออะไรรู้ไหมครับ ถ้าคุณทำงานที่เกี่ยวข้องกับ ajax บ่อยหรือพวกสั่ง javascript write content เนี่ยะมันจะ view ออกมาให้เห็นพวก html ที่เราสั่ง write ออกมาให้ด้วยเลย (ใน Web Developer extension ก็ทำได้แต่ก็ไม่สวยเท่าตัวนี้) เทียบกับสมัยเขียนโปรแกรมยุคแรกๆ คุณคิดดูใช้ IE + Notepad หรือ ขนาดใช้ EditPlus ก็เหอะ debug งานแต่ละทีเสียเวลามาก ยุคนี้มี tool ช่วยเยอะทำให้งานหลายอย่างเสร็จได้เร็ว อย่าเสียเวลาไปลงซะเดี๋ยวนี้เลย <a href="https://addons.mozilla.org/en-US/firefox/addons/versions/655">download ได้ที่นี่</a></p>
<p><map name='google_ad_map_337_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/337?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_337_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=337&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F02%2F19%2Fview-source-chart-the-most-accessible-dom-inspector%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/02/19/view-source-chart-the-most-accessible-dom-inspector/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ยกเลิกไม่ให้ DreamWeaver สร้าง CSS ให้อัตโนมัติ</title>
		<link>http://sixhead.com/2008/09/16/dreamweaver-no-css-instead/</link>
		<comments>http://sixhead.com/2008/09/16/dreamweaver-no-css-instead/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 11:16:13 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[DreamWeaver]]></category>
		<category><![CDATA[instead]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=149</guid>
		<description><![CDATA[ด้วยความที่ DreamWeaver พยายามทำตัวฉลาด เป็น Tool ที่แสนดี เสนอตัวใส่ CSS ให้แหลกลาน มันทำให้งาน CSS หรือทำเวปนี่เละเทะไปเลยเพราะ สร้าง style กันเต็มพรืดไปหมด และจะมีปัญหาตอนทำ program ส่งเมล์แบบ html อีกด้วย เนื่องจาก mail client หรือเวปเมล์ บางตัวไม่อ่าน CSS ถ้า view แบบ Code เห็นแบบนี้แสดงว่าโดนความฉลาดเข้าซะแล้ว หรือ click ที่ text แล้วดูตรง Properties แล้วเห็นแบบนี้ก็โดนความฉลาดของ dream เข้าแล้วเหมือนกัน วิธีแก้ก็ต้องไปยกเลิกโดยเข้าที่เมนู Edit -&#62; Preferences แล้วเลือกตามนี้ (รูปนี้เป็น DreamWeaver 2004 version อื่นๆ ก็จะคล้ายๆ กัน)]]></description>
			<content:encoded><![CDATA[<p>ด้วยความที่ DreamWeaver พยายามทำตัวฉลาด เป็น Tool ที่แสนดี เสนอตัวใส่ CSS ให้แหลกลาน มันทำให้งาน CSS หรือทำเวปนี่เละเทะไปเลยเพราะ สร้าง style กันเต็มพรืดไปหมด และจะมีปัญหาตอนทำ program ส่งเมล์แบบ html อีกด้วย เนื่องจาก mail client หรือเวปเมล์ บางตัวไม่อ่าน CSS<br/><span id="more-149"></span></p>
<p>ถ้า view แบบ Code เห็นแบบนี้แสดงว่าโดนความฉลาดเข้าซะแล้ว<br />
<img class="alignnone size-full wp-image-152" title="dreamweaver-no-css-instead-css" src="http://sixhead.com/wp-content/uploads/2008/09/dreamweaver-no-css-instead-css.png" alt="" /></p>
<p>หรือ click ที่ text แล้วดูตรง Properties แล้วเห็นแบบนี้ก็โดนความฉลาดของ dream เข้าแล้วเหมือนกัน<img class="alignnone size-full wp-image-153" title="dreamweaver-no-css-instead-properties" src="http://sixhead.com/wp-content/uploads/2008/09/dreamweaver-no-css-instead-properties.png" alt="" /></p>
<p>วิธีแก้ก็ต้องไปยกเลิกโดยเข้าที่เมนู Edit -&gt; Preferences แล้วเลือกตามนี้ (รูปนี้เป็น DreamWeaver 2004 version อื่นๆ ก็จะคล้ายๆ กัน)<br />
<img class="alignnone size-full wp-image-151" title="dreamweaver-no-css-instead" src="http://sixhead.com/wp-content/uploads/2008/09/dreamweaver-no-css-instead.png" alt="" /></p>
<p><map name='google_ad_map_149_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/149?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_149_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=149&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F09%2F16%2Fdreamweaver-no-css-instead%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/09/16/dreamweaver-no-css-instead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เปลี่ยน mouse cursor ใน เวปเพจได้ง่ายๆ ด้วย css</title>
		<link>http://sixhead.com/2008/03/03/custom-mouse-cursor-with-css/</link>
		<comments>http://sixhead.com/2008/03/03/custom-mouse-cursor-with-css/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 17:03:57 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[ico]]></category>
		<category><![CDATA[mouse]]></category>

		<guid isPermaLink="false">http://sixhead.com/2008/03/03/custom-mouse-cursor-with-css/</guid>
		<description><![CDATA[ในบางครั้ง mouse cursor เดิมๆ ที่ติดมากับ browser อาจจะน่าเบื่อเกินไป หรือบางเวปต้องการความสวยงาม อยากมี mouse cursor เป็นรูปที่ตัวเองชอบ ด้วยขั้นตอนดังต่อไปนี้ ทำให้เราสามารถที่จะทำการเปลี่ยน mouse cursor เป็นแบบที่ต้องการได้ี้ มาดูตัวอย่างจากของจริงกันเลย คลิกที่นี่ อธิบายการทำงานได้ดังนี้ &#160; body&#123; cursor: url&#40;miyuki.cur&#41; &#125; เป็นการสั่งให้หน้านี้มี mouse cursor เป็นไฟล์ ชื่อว่า miyuki.cur &#160; &#60;div style=&#34;cursor: help; width: 200px; height: 200px; background-color: rgb(204, 204, 204);&#34;&#62;&#38;nbsp;&#60;/div&#62; &#160; ส่วน div ด้านล่างแสดงให้ดูว่าเราสามารถเปลี่ยน mouse cursor ได้ใน div ใดๆ ก็ตามครับ โดยในตัวอย่างจะเป็น mouse [...]]]></description>
			<content:encoded><![CDATA[<p>ในบางครั้ง mouse cursor เดิมๆ ที่ติดมากับ browser อาจจะน่าเบื่อเกินไป หรือบางเวปต้องการความสวยงาม อยากมี mouse cursor เป็นรูปที่ตัวเองชอบ ด้วยขั้นตอนดังต่อไปนี้ ทำให้เราสามารถที่จะทำการเปลี่ยน mouse cursor เป็นแบบที่ต้องการได้ี้</p>
<p><span id="more-31"></span></p>
<p>มาดูตัวอย่างจากของจริงกันเลย <a href="http://sixhead.com/testrun/css/cursor/cursor.html">คลิกที่นี่</a> <br />
อธิบายการทำงานได้ดังนี้</p>
<pre class="css">&nbsp;
body<span style="color: #66cc66;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">cursor</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">miyuki<span style="color: #6666ff;">.cur</span></span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p>เป็นการสั่งให้หน้านี้มี mouse cursor เป็นไฟล์ ชื่อว่า miyuki.cur</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;cursor: help; width: 200px; height: 200px; background-color: rgb(204, 204, 204);&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<p>ส่วน div ด้านล่างแสดงให้ดูว่าเราสามารถเปลี่ยน mouse cursor ได้ใน div ใดๆ ก็ตามครับ  โดยในตัวอย่างจะเป็น mouse cursor ที่มีอยู่แล้วเลยไม่ต้องระบุไฟล์ .cur</p>
<p>เป็นไงขั้นตอนง่ายๆ เลยใช่ไหมครับ .cur จริงๆ แล้วก็ใช้ โปรแกรมทำ icon (.ico) ทำได้เลย ในตัวอย่างผมใช้ไฟล์ .ico มา rename เป็น .cur ครับ สามารถนำมาใช้งานได้ทันที แต่ว่าน่าเสียดาย css เรื่อง mouse นี้ใช้ได้เฉพาะ IE เท่านั้นครับ</p>
<p><map name='google_ad_map_31_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/31?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_31_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=31&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F03%2F03%2Fcustom-mouse-cursor-with-css%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/03/03/custom-mouse-cursor-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>div กับหน้าจอ กว้าง x ยาว เท่าไหร่ก็อยู่กลางหน้า</title>
		<link>http://sixhead.com/2008/02/13/css-div-center-screen/</link>
		<comments>http://sixhead.com/2008/02/13/css-div-center-screen/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 18:00:48 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>

		<guid isPermaLink="false">http://sixhead.com/2008/02/13/css-div-center-screen/</guid>
		<description><![CDATA[Code ของคุณ ท่่านอื่นๆ ง่ายกว่าครับ ขอบคุณมา​ ณ ที่นี้ด้วย scroll ลงไปดูล่างๆ]]></description>
			<content:encoded><![CDATA[<p>Code ของคุณ ท่่านอื่นๆ ง่ายกว่าครับ ขอบคุณมา​ ณ ที่นี้ด้วย</p>
<p>scroll ลงไปดูล่างๆ</p>
<p><map name='google_ad_map_21_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/21?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_21_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=21&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F02%2F13%2Fcss-div-center-screen%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/02/13/css-div-center-screen/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>link สวยด้วย css</title>
		<link>http://sixhead.com/2008/01/29/nice-link-with-css/</link>
		<comments>http://sixhead.com/2008/01/29/nice-link-with-css/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 16:03:21 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://sixhead.com/2008/01/29/link-%e0%b8%aa%e0%b8%a7%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-css/</guid>
		<description><![CDATA[เคยเห็น link ลักษณะนี้ไหม ไม่มีอะไรยากเลย ใช้ css และ div เข้ามาช่วย ลองมาดูตัวอย่างกัน ดูตัวอย่างที่นี่ &#160;&#60;style media=&#34;screen&#34; type=&#34;text/css&#34;&#62;.SiXhEaD_Link &#123; font: 12px Tahoma, Arial, sans-serif; padding: 10px 0; &#125;.SiXhEaD_Link a &#123; background: #F8FBFC; color: #069; text-decoration: none; padding: 2px 6px 3px 6px; border: 1px solid #E2EFF3; &#125;.SiXhEaD_Link a:hover &#123; border-color: #B7D7E1; &#125;.SiXhEaD_Link font &#123; font: 12px Tahoma, Arial, sans-serif; background: [...]]]></description>
			<content:encoded><![CDATA[<p>เคยเห็น link ลักษณะนี้ไหม<br />
<img width="370" height="57" border="0" src="http://sixhead.com/wp-content/uploads/image/css/link.color/link.color.png" alt="" /><br />
ไม่มีอะไรยากเลย ใช้ css และ div เข้ามาช่วย ลองมาดูตัวอย่างกัน<br />
<span id="more-13"></span><br />
<a href="http://sixhead.com/testrun/css/link.color/link.color.html">ดูตัวอย่างที่นี่</a><br/><br/></p>
<pre class="css"><ol start="5"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;style media=<span style="color: #ff0000;">&quot;screen&quot;</span> type=<span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Tahoma, Arial, <span style="color: #993333;">sans-serif</span>; <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">10px</span> <span style="color: #933;">0</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> a <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #cc00cc;">#F8FBFC</span>; <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">069</span></span>; <span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>; <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">2px</span> <span style="color: #933;">6px</span> <span style="color: #933;">3px</span> <span style="color: #933;">6px</span>; <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E2EFF3</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> a<span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-color</span>: <span style="color: #cc00cc;">#B7D7E1</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> <span style="color: #000000; font-weight: bold;">font</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Tahoma, Arial, <span style="color: #993333;">sans-serif</span>; <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #cc00cc;">#F8FBFC</span>; <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#CCCCCC</span>; <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">2px</span> <span style="color: #933;">6px</span> <span style="color: #933;">3px</span> <span style="color: #933;">6px</span>; <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E2EFF3</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/style&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>
จุดสังเกตุง่ายๆ ใน css ถ้า ขึ้นด้วย . คือชื่อ class แต่ถ้าขึ้นด้วย # คือ id ของ div หรือ span<br />
- บรรทัดที่ 7 เริ่มกำหนด class ชื่อ SiXhEaD_Link<br />
- บรรทัดที่ 8 ถ้าเป็น link<br />
- บรรทัดที่ 9 ถ้าเป็น link และถูก mouse over<br />
- บรรทัดที่ 10 tag font</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;SiXhEaD_Link&quot;</span> <span style="color: #000066;">align</span>=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/font.html"><span style="color: #000000; font-weight: bold;">&lt;font&gt;</span></a></span><span style="color: #ddbb00;">&amp;laquo;</span> First<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/font&gt;</span></span> <span style="color: #009900;"><a href="http://december.com/html/4/element/font.html"><span style="color: #000000; font-weight: bold;">&lt;font&gt;</span></a></span><span style="color: #ddbb00;">&amp;#8249;</span> Prev<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/font&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;javascript:void(0);&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
....
....
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<p>
ทีนี้เราก็ใส่ div ครอบ link ทั้งหมดที่เราต้องการ และใส่ class=&quot;SiXhEaD_Link&quot; เท่านั้นเป็นอันจบ </p>
<p><map name='google_ad_map_13_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/13?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_13_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=13&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F01%2F29%2Fnice-link-with-css%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/01/29/nice-link-with-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

