คือ ทำเค้าโครงออกมาแล้ว มันจะอยู่ตรงกลางบราวเซอร์เลยครับ
แต่ความมุ่งหวังผม ต้องการ ให้แบล็กกราวด์ มัน เต็มทั้งหน้า แล้วให้ส่วนของชิ้นงานเรามาอยู่กลาง
ต้องทำอย่างไร
แต่ตามตัวอย่างนี้ มันกลายเป็นว่า แบล็คกราวไม่เต็มหน้า
ครับ
ทำไงครับ
<!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=iso-8859-1" />
<title>การใช้ DIV กับ CSS</title>
<style type="text/css">
#t-body {
background-image:url(.xx/xx.gif);/*พิ้นหลัง หรือแบบเป็นสี background-color:#000000;*/
background-repeat:repeat-y;/*ให้พื้นหลังรีพีตเฉพาะแกนY*/
width:800px;/*ขนาดความกว้างของเพจ*/
margin:0px auto;
}
#header{ margin:0 0 10px 0; padding:10px; height:100px;}/* margin:top right bottom left;*/
#left{ float:left; width:200px; margin:0 0 10px 0; height:200px;}
#content{ float:right; width:590px; margin:0 0 10px 10px; height:200px;}
#footer{clear:both; padding:20px; height:40px;}
</style>
</head>
<body>
<div id="t-body">
<div id="header">Head</div>
<div id="left">menu</div>
<div id="content">Content</div>
<div id="footer">footer</div>
</div>
</body>
</html>