ทบทวน css แบ่งรายการ 3 คอลัมน์ อย่างง่าย
เขียนเมื่อ 9 ปีก่อน โดย Ninenik Narkdeecss
คำสั่ง การ กำหนด รูปแบบ ตัวอย่าง เทคนิค ลูกเล่น การประยุกต์ การใช้งาน เกี่ยวกับ css
คำเตือน! เนื้อหาต่อไปนี้ เป็นเนื้อหาเก่า อาจจะไม่เหมาะสำหรับนำไปใช้งาน
หรือไม่สามารถใช้งานได้แล้ว
ลองดูที่ใหม่กว่า http://niik.in/271 เป็นแนวทางแทน
ลองดูที่ใหม่กว่า http://niik.in/271 เป็นแนวทางแทน
ไปที่ Copy
มาทบทวน css การแบ่งข้อมูลออกเป็น 3 คอลัมน์อย่างง่ายกัน
สามารถนำไปประยุกต์ใช้งานได้
ตัวอย่าง
โค้ดทั้งหมด
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css"> .column1_div{ position:relative; float:left; width:33%; background-color:#FC6; } .column2_div{ position:relative; float:left; width:33%; margin:0px 0.5%; background-color:#C96; } .column3_div{ position:relative; float:right; width:33%; background-color:#69F; } </style> </head> <body> <div style="margin:auto;width:75%;background-color:#FCC;"> <div class="column1_div"> </div> <div class="column2_div"> </div> <div class="column3_div"> </div> </div> </body> </html>
กด Like หรือ Share เป็นกำลังใจ ให้มีบทความใหม่ๆ เรื่อยๆ น่ะครับ

Tags::
css
URL สำหรับอ้างอิง
Top
Copy
ขอบคุณทุกการสนับสนุน
![]()