153
9
CHAPTER 9
Tutorial: Creating a CSS-based
Page Layout
In
Chapter 4, “Tutorial: Creating a Table-based Page Layout,”
you learned
how to use Dreamweaver’s table design features to create a page layout. In
this tutorial, you’ll learn how to use Cascading Style Sheets (CSS) to create
a similar layout. Many designers prefer CSS-based layouts because CSS
gives you greater control over the positioning of elements, reduces the
amount of code you need, and lets you format layout blocks with margins,
borders, colors, and so on.
If you haven’t defined a Dreamweaver site and created the cafe_townsend
local root folder, you must do so before you proceed. For instructions, see
Chapter 3, “Tutorial: Setting Up Your Site and Project Files.”
In this tutorial you will complete the following tasks:
Learn about CSS-based page layout . . . . . . . . . . . . . . . . . . . . . . . 153
Examine the design comp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Create and save a new page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Insert layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Add color to the page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Learn about CSS-based page
layout
Many websites use table-based layouts to display information on their
pages. Tables are useful for presenting tabular data (such as rows and
columns of repeating elements) and are extremely easy to create on a page.
But tables also tend to generate a great deal of code that is difficult to read
and maintain. Additionally, because of the amount of tags required, and
the potential for “nesting,” tables can cause problems for disabled people
who are using screen readers to view web pages.
Summary of Contents for DREAMWEAVER 8-GETTING STARTED WITH...
Page 1: ...Getting Started with Dreamweaver...
Page 8: ...8 Contents...
Page 10: ......
Page 46: ...46 Dreamweaver Basics...
Page 48: ......
Page 128: ...128 Tutorial Formatting Your Page with CSS...
Page 136: ...136 Tutorial Publishing Your Site...
Page 138: ......
Page 189: ...Add a Repeat Region XSLT object 189 3 Select Insert XSLT Objects Repeat Region...
Page 196: ...196 Tutorial Displaying XML Data...
Page 216: ......
Page 230: ...230 Understanding Web Applications...
Page 236: ...236 Installing a Web Server...
Page 254: ...254 Setup for Sample ColdFusion Site...
Page 268: ...268 Setup for Sample ASP NET Site...
Page 284: ...284 Setup for Sample ASP Site...
Page 300: ...300 Setup for Sample JSP Site...
Page 320: ...320 Setup for Sample PHP Site...