Web design advance #4 (DW)

DreamWeaver

การเขียน Web ด้วย Dreamweaver CS6
เปิดไฟล์ด้วย  File-New-Page Type-HTML-DocType-HTML5-Create
ทดลองเขียนคำสั่งดังภาพ แล้ว run ด้วยกด F12

Picture 2014-01-02 13_30_50

Result from coding DW

Picture 2014-01-02 13_32_46

ทดสอบเขียนคำสั่ง เพื่อให้ได้ผลลัพธ์ดังภาพ การแบ่งหน้าจอเป็น 4 ส่วน คือ ส่วน header, sidebar,  content และ footer

Picture 2014-01-02 13_34_10

<!doctype html>

<html>
<head>
<meta charset="utf-8">
<title>css-id</title>
<link href="css/reset.css" rel="stylesheet" type="text/css">
<style type="text/css">
#header {
background-color: #999;
height: 200px;
width: 800px;
}
#footer {
background-color: #666;
height: 100px;
width: 800px;
clear: both;
}
#side-bar {
background-color: #CCC;
height: 700px;
width: 200px;
float: left;
}
#content {
background-color: #EDEDED;
height: 700px;
width: 600px;
float: left;
}
</style>
</head>
<body>
<div id="header">header</div>
<div id="side-bar">side-bar</div>
<div id="content">content</div>
<div id="footer">footer</div>
</body>
</html>

Picture 2014-01-02 13_50_20 Picture 2014-01-02 13_50_48 Picture 2014-01-02 13_51_33