<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: การจัดการกับความสูง</title>
	<atom:link href="http://www.divland.com/blog/2007/07/31/css-about-height/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.divland.com/blog/2007/07/31/css-about-height/</link>
	<description>The miracle land of inspiration</description>
	<pubDate>Mon, 06 Oct 2008 22:40:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: SexZero</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-317</link>
		<dc:creator>SexZero</dc:creator>
		<pubDate>Sun, 11 Nov 2007 16:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-317</guid>
		<description>เวรกำ ผมเขียนโค๊ดไปแล้วดันหายไปกะตา คิดว่ามันประมวลผลให้เสียอีก ไม่พิมพ์ใหม่แล้วนะคับ ขี้เกียจและ ลองค้นหาในกูเกิ้ลกันดูนะครับ รับรองมีแน่นอนคับ</description>
		<content:encoded><![CDATA[<p>เวรกำ ผมเขียนโค๊ดไปแล้วดันหายไปกะตา คิดว่ามันประมวลผลให้เสียอีก ไม่พิมพ์ใหม่แล้วนะคับ ขี้เกียจและ ลองค้นหาในกูเกิ้ลกันดูนะครับ รับรองมีแน่นอนคับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SexZero</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-316</link>
		<dc:creator>SexZero</dc:creator>
		<pubDate>Sun, 11 Nov 2007 16:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-316</guid>
		<description>จากตัวอย่างนี้ 

.aa{width:300px; background:#CCCC00;height:7px; font-size:1px} 

ถ้าเราใช้ขนาดฟอนด์ 1 พิเซลบางทีมันอาจจะมีปัญหาเรื่องการแสดงฟอนด์โดยเราไม่รู้ตัวได้คับ เพราะมันจะไปทำงานกับไฟล์ html แล้วถ้าเกิดเราเผลอลืมไปใช้ฟอนด์ตัวนั้นหรือจะจัดระบบของ css ในอนาคตลำบากคับ
ผมมีเทคนิคคิดว่าน่าจะใช้ได้แทนการใช้ font-size:1px ได้นะครับ

คือให้เราเขียนใน html โดยใช้ คำสั่ง div แล้วเว้นวรรคมันซะ 

 &#160;

ยกตัวอย่างเช่น 

         ©2007-2009 Divland.com all right reserved

&#160;
        


ลองทำดูนะคับ ผิดถูกยังไงบอกด้วยคับ</description>
		<content:encoded><![CDATA[<p>จากตัวอย่างนี้ </p>
<p>.aa{width:300px; background:#CCCC00;height:7px; font-size:1px} </p>
<p>ถ้าเราใช้ขนาดฟอนด์ 1 พิเซลบางทีมันอาจจะมีปัญหาเรื่องการแสดงฟอนด์โดยเราไม่รู้ตัวได้คับ เพราะมันจะไปทำงานกับไฟล์ html แล้วถ้าเกิดเราเผลอลืมไปใช้ฟอนด์ตัวนั้นหรือจะจัดระบบของ css ในอนาคตลำบากคับ<br />
ผมมีเทคนิคคิดว่าน่าจะใช้ได้แทนการใช้ font-size:1px ได้นะครับ</p>
<p>คือให้เราเขียนใน html โดยใช้ คำสั่ง div แล้วเว้นวรรคมันซะ </p>
<p> &nbsp;</p>
<p>ยกตัวอย่างเช่น </p>
<p>         ©2007-2009 Divland.com all right reserved</p>
<p>&nbsp;</p>
<p>ลองทำดูนะคับ ผิดถูกยังไงบอกด้วยคับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SexZero</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-315</link>
		<dc:creator>SexZero</dc:creator>
		<pubDate>Sun, 11 Nov 2007 15:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-315</guid>
		<description>ปีโป้ said,
August 17, 2007 @ 7:19 pm 

ขอถามหน่อยค่า แล้วถ้าหากเรามีกล่อง 1 กล่องใหญ่ แล้ว มีกล่องเล็ก ข้างใน 2 กล่อง กล่องซ้าย มีข้อมูลเพียบ แต่กล่องขวา มีข้อมูลน้อยนิด 

ความสูงของกล่องขวา มันไม่ยืดตามกล่องซ้าย ทำไงดีอ่ะ มีวิธีป่าว ถ้าอยากให้ความสูงของกล่องขวายืดตามกล่องซ้ายอ่ะ

ตอบ
ให้ลองทำแบบนี้นะครับ 
1. ให้เราสร้างกล่องใบใหญ่ขึ้นมาใบนึงใน css สมมุตยกตัวอย่างชื่อ #content-container-three-column โดยกำหนดให้ค่าของมันคลุมทั้งหมด
2. แล้วให้เราสร้างกล่องเล็กๆ ขึ้นมา 2 ใบ สมมุตตั้งชื่อว่า #content-left-three-column และ #content-right-three-column แล้วกำหนดให้อยู่แค่ ซ้าย กับ ขวา
3. แล้วให้ประกาศใน html ไปว่ากล่องเล็กๆ 2 ใบนี้เป็นลูกของกล่องใบใหญ่อีกทีนึง 

ตัวอย่าง css Code :

#content-container-two-column {
	margin-top:3px;
	margin-left:auto;
	margin-right:auto;
	padding:15px;
	width:600px;
	border:1px solid #818181;
	position:relative;
	}
#content-right-two-column,
#content-left-two-column {
	width:160px;
	}	
#content-right-two-column {
	float:right;
	}
#content-left-two-column {
	float:left;
	}


หลังจากนั้นก็ให้เขียนโค้ดใน html ดังนี้

    
        
        
        
        
    

ลองทำดูนะคับ ผมไม่แน่ใจเท่าไหร่ พอดีไม่ได้ลองคับคิดได้ก็เขียนเลย ผิดถูกยังไงบอกด้วยคับ</description>
		<content:encoded><![CDATA[<p>ปีโป้ said,<br />
August 17, 2007 @ 7:19 pm </p>
<p>ขอถามหน่อยค่า แล้วถ้าหากเรามีกล่อง 1 กล่องใหญ่ แล้ว มีกล่องเล็ก ข้างใน 2 กล่อง กล่องซ้าย มีข้อมูลเพียบ แต่กล่องขวา มีข้อมูลน้อยนิด </p>
<p>ความสูงของกล่องขวา มันไม่ยืดตามกล่องซ้าย ทำไงดีอ่ะ มีวิธีป่าว ถ้าอยากให้ความสูงของกล่องขวายืดตามกล่องซ้ายอ่ะ</p>
<p>ตอบ<br />
ให้ลองทำแบบนี้นะครับ<br />
1. ให้เราสร้างกล่องใบใหญ่ขึ้นมาใบนึงใน css สมมุตยกตัวอย่างชื่อ #content-container-three-column โดยกำหนดให้ค่าของมันคลุมทั้งหมด<br />
2. แล้วให้เราสร้างกล่องเล็กๆ ขึ้นมา 2 ใบ สมมุตตั้งชื่อว่า #content-left-three-column และ #content-right-three-column แล้วกำหนดให้อยู่แค่ ซ้าย กับ ขวา<br />
3. แล้วให้ประกาศใน html ไปว่ากล่องเล็กๆ 2 ใบนี้เป็นลูกของกล่องใบใหญ่อีกทีนึง </p>
<p>ตัวอย่าง css Code :</p>
<p>#content-container-two-column {<br />
	margin-top:3px;<br />
	margin-left:auto;<br />
	margin-right:auto;<br />
	padding:15px;<br />
	width:600px;<br />
	border:1px solid #818181;<br />
	position:relative;<br />
	}<br />
#content-right-two-column,<br />
#content-left-two-column {<br />
	width:160px;<br />
	}<br />
#content-right-two-column {<br />
	float:right;<br />
	}<br />
#content-left-two-column {<br />
	float:left;<br />
	}</p>
<p>หลังจากนั้นก็ให้เขียนโค้ดใน html ดังนี้</p>
<p>ลองทำดูนะคับ ผมไม่แน่ใจเท่าไหร่ พอดีไม่ได้ลองคับคิดได้ก็เขียนเลย ผิดถูกยังไงบอกด้วยคับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sangsood7</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-253</link>
		<dc:creator>sangsood7</dc:creator>
		<pubDate>Mon, 03 Sep 2007 08:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-253</guid>
		<description>ขอบคุณมากครับ</description>
		<content:encoded><![CDATA[<p>ขอบคุณมากครับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: likhi1</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-247</link>
		<dc:creator>likhi1</dc:creator>
		<pubDate>Thu, 30 Aug 2007 17:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-247</guid>
		<description>"แปลเป็น ภาษามนุษย์ก็คือ กล่องนี้จะสูง auto ตามเนื้อหา แต่สูงอย่างน้อย 150px  ส่วน IE6 ก็กล่องนี้ สูง 150 px"

ขอบคุณท่านพี่ที่แปลเป็นภาษามนุษย์ให้ครับ .... 5555:d:d:d:d</description>
		<content:encoded><![CDATA[<p>&#8220;แปลเป็น ภาษามนุษย์ก็คือ กล่องนี้จะสูง auto ตามเนื้อหา แต่สูงอย่างน้อย 150px  ส่วน IE6 ก็กล่องนี้ สูง 150 px&#8221;</p>
<p>ขอบคุณท่านพี่ที่แปลเป็นภาษามนุษย์ให้ครับ &#8230;. 5555<img src='http://www.divland.com/blog/smilies/yahoo_bigsmile.gif' alt='&#58;&#100;' class='wp-smiley' width='18' height='18' title='&#58;&#100;' /><img src='http://www.divland.com/blog/smilies/yahoo_bigsmile.gif' alt='&#58;&#100;' class='wp-smiley' width='18' height='18' title='&#58;&#100;' /><img src='http://www.divland.com/blog/smilies/yahoo_bigsmile.gif' alt='&#58;&#100;' class='wp-smiley' width='18' height='18' title='&#58;&#100;' /><img src='http://www.divland.com/blog/smilies/yahoo_bigsmile.gif' alt='&#58;&#100;' class='wp-smiley' width='18' height='18' title='&#58;&#100;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-238</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 18 Aug 2007 17:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-238</guid>
		<description>เดิมที ปัญหานี้ จะมี javascript ตัวหนึ่ง เอาไว้แก้โดยเฉพาะ ซึ่งที่ทำงานผมใช้กันอยู่  แต่จากที่ผมลองใช้ css เพียงอย่างเดียว และค้นคว้าจากเว็บต่างๆ คิดว่าทำได้ครับ แต่ก็ต้องใช้ property expression คือ ฝัง จาวาสคริปลงไปใน css  แล้วจะเขียนเป็น tutorail อธิบายอีกทีละกันครับ คงจะยาวมาก ขอบคุณ ปีโป้ ที่จุดประกายความคิด ครับ :x</description>
		<content:encoded><![CDATA[<p>เดิมที ปัญหานี้ จะมี javascript ตัวหนึ่ง เอาไว้แก้โดยเฉพาะ ซึ่งที่ทำงานผมใช้กันอยู่  แต่จากที่ผมลองใช้ css เพียงอย่างเดียว และค้นคว้าจากเว็บต่างๆ คิดว่าทำได้ครับ แต่ก็ต้องใช้ property expression คือ ฝัง จาวาสคริปลงไปใน css  แล้วจะเขียนเป็น tutorail อธิบายอีกทีละกันครับ คงจะยาวมาก ขอบคุณ ปีโป้ ที่จุดประกายความคิด ครับ <img src='http://www.divland.com/blog/smilies/yahoo_love.gif' alt='&#58;&#120;' class='wp-smiley' width='18' height='18' title='&#58;&#120;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: utt</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-237</link>
		<dc:creator>utt</dc:creator>
		<pubDate>Fri, 17 Aug 2007 20:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-237</guid>
		<description>ทำไม่ได้ด้วย CSS ครับ กรณีนี้ต้องใช้ javascript ช่วยครับ คือคำนวณความสูงของกล่องที่สูงสุดแล้วใช้ innerhtml เขียนเข้าไปใน กล่องอีกอัน :)&gt;-</description>
		<content:encoded><![CDATA[<p>ทำไม่ได้ด้วย CSS ครับ กรณีนี้ต้องใช้ javascript ช่วยครับ คือคำนวณความสูงของกล่องที่สูงสุดแล้วใช้ innerhtml เขียนเข้าไปใน กล่องอีกอัน <img src='http://www.divland.com/blog/smilies/yahoo_peace.gif' alt='&#58;&#41;&#62;&#45;' class='wp-smiley' width='22' height='18' title='&#58;&#41;&#62;&#45;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ปีโป้</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-236</link>
		<dc:creator>ปีโป้</dc:creator>
		<pubDate>Fri, 17 Aug 2007 12:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-236</guid>
		<description>ขอถามหน่อยค่า แล้วถ้าหากเรามีกล่อง 1 กล่องใหญ่ แล้ว มีกล่องเล็ก ข้างใน 2 กล่อง กล่องซ้าย มีข้อมูลเพียบ แต่กล่องขวา มีข้อมูลน้อยนิด 

ความสูงของกล่องขวา มันไม่ยืดตามกล่องซ้าย ทำไงดีอ่ะ มีวิธีป่าว ถ้าอยากให้ความสูงของกล่องขวายืดตามกล่องซ้ายอ่ะ:-w</description>
		<content:encoded><![CDATA[<p>ขอถามหน่อยค่า แล้วถ้าหากเรามีกล่อง 1 กล่องใหญ่ แล้ว มีกล่องเล็ก ข้างใน 2 กล่อง กล่องซ้าย มีข้อมูลเพียบ แต่กล่องขวา มีข้อมูลน้อยนิด </p>
<p>ความสูงของกล่องขวา มันไม่ยืดตามกล่องซ้าย ทำไงดีอ่ะ มีวิธีป่าว ถ้าอยากให้ความสูงของกล่องขวายืดตามกล่องซ้ายอ่ะ<img src='http://www.divland.com/blog/smilies/yahoo_waiting.gif' alt='&#58;&#45;&#119;' class='wp-smiley' width='23' height='18' title='&#58;&#45;&#119;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: เมโกะ</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-227</link>
		<dc:creator>เมโกะ</dc:creator>
		<pubDate>Sat, 11 Aug 2007 13:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-227</guid>
		<description>วันนี้พาแขกมาเยี่ยมเว็ปพี่คนนึงค่ะ พี่มารน้อยอาจารย์สอนโอเทลโลของนู๋เอง  เค้าเคยเล่นกับพี่ด้วย  เขาบอกว่าหาเว็ปแบบนี้มานานแล้ว  เขาอยากรู้จักพี่ค่ะ  บอกว่าอยากรู้จักคนเก่งๆ    ขอชื่นชมๆ</description>
		<content:encoded><![CDATA[<p>วันนี้พาแขกมาเยี่ยมเว็ปพี่คนนึงค่ะ พี่มารน้อยอาจารย์สอนโอเทลโลของนู๋เอง  เค้าเคยเล่นกับพี่ด้วย  เขาบอกว่าหาเว็ปแบบนี้มานานแล้ว  เขาอยากรู้จักพี่ค่ะ  บอกว่าอยากรู้จักคนเก่งๆ    ขอชื่นชมๆ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: เมโกะ</title>
		<link>http://www.divland.com/blog/2007/07/31/css-about-height/#comment-226</link>
		<dc:creator>เมโกะ</dc:creator>
		<pubDate>Sat, 11 Aug 2007 13:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.divland.com/blog/2007/07/31/css-about-height/#comment-226</guid>
		<description>พยามโพสต์หลายครั้งแต่ไม่เข้า   ดูไปดูมาอ๋อเราโง่นี่เอง อิอิ   ทึ่งมากกับฝีมือของพี่  สีสวยและมากด้วยสาระ  อ่านสนุก   ขอเป้ฯกำลังใจให้ค่ะ</description>
		<content:encoded><![CDATA[<p>พยามโพสต์หลายครั้งแต่ไม่เข้า   ดูไปดูมาอ๋อเราโง่นี่เอง อิอิ   ทึ่งมากกับฝีมือของพี่  สีสวยและมากด้วยสาระ  อ่านสนุก   ขอเป้ฯกำลังใจให้ค่ะ</p>
]]></content:encoded>
	</item>
</channel>
</rss>
