Web Design

(Nancy Kaufman) #1

152


2 At the point at which you
want to create a section,
type <div id=”?”>,
replacing? with an identifier
for this section of the page.

1 In your editor, open a page
that you want to use for
layouts.

Set Up Your Page for CSS Layouts ............................


L


aying out your page using CSS involves applying styles to elements grouped together with <div>
tags, so before you can begin learning about the properties needed, you must create these groups

and give them appropriate ID attributes. Before you began coding the page, you should have planned


out the design of your site. Now, you will be referring back to that design. The site will likely have


several logical sections — most pages will at least have a header, a body, and a footer, and many


will also have one or more sidebars or additional columns. Each of these sections is represented by


one of the groups you are creating with the

tags.


Set Up Your Page for CSS Layouts


1


2

Free download pdf