Sign in and join ADC Newsletters Feedback. Creating your first website Part 2: Creating the page layout

Similar documents
Sign in and join ADC Newsletters Feedback. Creating your first website Part 3: Adding content to pages

Creating your first website Part 4: Formatting your page with CSS

How to lay out a web page with CSS

How to lay out a web page with CSS

How to lay out a web page with CSS

Dreamweaver Basics. Planning your website Organize site structure Plan site design & navigation Gather your assets

How to set up a local root folder and site structure

Dear Candidate, Thank you, Adobe Education

Section 1: How The Internet Works

Table Basics. The structure of an table

Dreamweaver CS6. Level 3. Topics Working with Text, List, and tables Working with Images

Dreamweaver Basics Outline

Taking Fireworks Template and Applying it to Dreamweaver

< building websites with dreamweaver mx >

Client Interview. Interview Topics. Goals and Target Audience. Activity 3.1 Worksheet. Client Name:

Introduction to Dreamweaver CS3

CS Multimedia and Communications. Lab 06: Webpage Tables and Image Links (Website Design part 3 of 3)

ADOBE Dreamweaver CS3 Basics

Dazzle the Web with Dynamic Dreamweaver, Part II

Dreamweaver Domain 4: Adding Content by Using Dreamweaver CS5

Page Content. Inserting Text To add text to your document, you can type the text directly or use Cut or Copy and Paste or Paste Special.

Building TPS Web Pages with Dreamweaver

Dreamweaver CS3 Lab 2

Project 1: Creating a Web Site from Scratch. Skills and Tools: Use Expression Web tools to create a Web site

Section 6: Dreamweaver

Creating Web Pages with SeaMonkey Composer

Adobe Dreamweaver CS5 Tutorial

Dreamweaver CS3 Concepts and Techniques

Adobe Dreamweaver CC 17 Tutorial

Dreamweaver 8. Project 5. Templates and Style Sheets

COMSC-031 Web Site Development- Part 2

Dreamweaver CS 5.5. University Information Technology Services. Training, Outreach, Learning Technologies, and Video Production

Electronic Portfolios in the Classroom

Working with Images and Multimedia

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

ADOBE DREAMWEAVER CS4 BASICS

ICT IGCSE Practical Revision Presentation Web Authoring

IT153 Midterm Study Guide

Lesson 1 using Dreamweaver CS3. To get started on your web page select the link below and copy (Save Picture As) the images to your image folder.

Dreamweaver Tutorials Working with Tables

Objective % Select and utilize tools to design and develop websites.

Creating Web Pages with a Template

Adobe Dreamweaver CS5/6: Learning the Tools

ORB Education Quality Teaching Resources

Dynamic Web Templates

ITEC185. Introduction to Digital Media

A Dreamweaver Tutorial. Contents Page

For detailed instructions, click the links below. To ask questions, request features, or report problems, visit feedback.photoshop.com.

FRONTPAGE STEP BY STEP GUIDE

Unit 8. Lesson 8.1. Microsoft FrontPage. Introduction. Microsoft FrontPage-1. Microsoft FrontPage

Layout with Layers and CSS

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

Fish Eye Menu DMXzone.com Fish Eye Menu Manual

Overview of the Adobe Dreamweaver CS5 workspace

How to create a prototype

The figure below shows the Dreamweaver Interface.

Creating consistent content pages

Maria A. Cordell CS 6763 Assignment One. September 21, 2004

Drupal Cloud Getting Started Guide Creating a Lab site with the MIT DLC Theme

Introducing Cascading Style Sheets. Cascading Style Sheet Basics Creating Styles Using Styles Manipulating Styles Text Formatting with CSS

Dreamweaver. Links and Tables

HO-1: INTRODUCTION TO FIREWORKS

JSN Sun Framework User's Guide

Dreamweaver CS5 Lab 2

COMSC-031 Web Site Development- Part 2. Part-Time Instructor: Joenil Mistal

Creating Forms. Starting the Page. another way of applying a template to a page.

ENGL 323: Writing for New Media Building a Blog Reader Using Links, Tables, Images, and Frames

m ac romed ia D r e a mw e av e r Curriculum Guide

ADOBE 9A Adobe Dreamweaver CS4 ACE.

USING STYLESHEETS TO DESIGN A WEB SITE IN DREAMWEAVER MX 2004

Locate it inside of your Class/DreamWeaver folders and open it up.

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

Step 1 Download and Install KompoZer Step by step instructions to build your first web page using KompoZer web editor.

ENGL 323: Writing for New Media Repurposing Content for the Web Part Two

Introduction to Dreamweaver

About Freeway. Freeway s Tools and Palettes

ADOBE VISUAL COMMUNICATION USING DREAMWEAVER CS5 Curriculum/Certification Mapping in MyGraphicsLab

Dreamweaver 101. Here s the desktop icon for Dreamweaver CS5: Click it open. From the top menu options, choose Site and New Site

P3e REPORT WRITER CREATING A BLANK REPORT

Dreamweaver Website 1: Managing a Website with Dreamweaver

Creating and Publishing Faculty Webpages

Using Adobe Contribute 4 A guide for new website authors

Getting Started with CSS Sculptor 3

ITP 101 Project 2 - Photoshop

MP5: Hypermedia Integration- Dreamweaver

FrontPage 2000 Tutorial -- Advanced

1. Which three information fields are the most commonly used fields in a user profile? (Choose three.) A. Disabilities B. Gender C.

How to create and edit a CSS rule

Architectural Engineering Senior Thesis CPEP Webpage Guidelines and Instructions

Dreamweaver Basics Workshop

Shape Cluster Photo Written by Steve Patterson

Netscape Composer Tutorial

Learn Dreamweaver CS5 in a Day

UTAS CMS. Easy Edit Suite Workshop V3 UNIVERSITY OF TASMANIA. Web Services Service Delivery & Support

Page Layout Using Tables

CAL 9-2: Café Soylent Green Chapter 12

Microsoft Office Training Skills 2010

Adobe Flash CS4 Part 1: Introduction to Flash

The Domino Designer QuickStart Tutorial

Transcription:

1 of 14 2/14/2008 2:31 PM Adobe Dreamweaver Article Adobe Developer Connection Sign in and join ADC Newsletters Feedback RSS Creating your first website Part 2: Creating the page layout Jon Varese Adobe Welcome to the second part of this tutorial series on creating your first website. This tutorial explains how to create a table-based page layout in Adobe Dreamweaver CS3. A page layout determines how your page will appear in the browser, showing, for example, the placement of menus, images, and Adobe Flash content. If you've heard anything about web page layouts lately, it probably was something about CSS layouts, and how they have become the standard for page layouts on the web. Although this is true and although CSS layouts offer a great deal of flexibility and control over your layout CSS layouts can be very difficult to learn as a beginner. For this reason I'm going to show you how to do a layout with HTML tables first, so that you can get your web page up and running. Although not as fashionable these days for layouts, tables are still a powerful tool for presenting tabular data and for laying out text and graphics on an HTML page. More importantly, with Dreamweaver CS3 they are super easy to create. In this tutorial you'll create a number of tables in a new Dreamweaver document. The rows and cells of the tables effectively act as container boxes for the content you add later. Dreamweaver now comes with many wonderful pre-designed CSS layouts that you can use as the starting point for your web pages. I didn't want to start you off with these layouts, because I think it's important for people to experience what it's like to build a page layout completely from scratch. After you've completed this tutorial series, however, you will probably want to investigate CSS layouts. You can start by reading CSS page layout basics, which is an overview of how CSS layouts work. Then move on to Stephanie Sullivan's article, Understanding the new Dreamweaver CS3 CSS layouts. Requirements To complete this tutorial you will need to install the following software: Dreamweaver CS3 Try Buy Prerequisite knowledge: Creating your first website Part 1: Setting up your site and project files Examine the design comp Typically, you don't begin building a website by opening Dreamweaver and laying out pages. The first steps to creating a website begin on a piece of paper or in a graphics-editing application like Adobe Fireworks or Adobe Photoshop. Graphic designers usually sketch out a piece of comprehensive artwork (also known as a comp) for the website to show it to the client and make sure that the initial ideas for the site meet with their client's approval. A comp consists of any number of page elements that the client has requested for a website. For example, the client might say, "I want to have a logo at the top of the page, a navigation that links to these other pages, a section for an online store, and a place where I can insert video clips." Based on that discussion, the designer begins planning the layout of the site and

2 of 14 2/14/2008 2:31 PM creates sketches of sample pages that fulfill the client's requirements. This tutorial provides you with the completed and approved comp for Café Townsend, a fictional restaurant that is in need of a website. As the web designer, your job is to transform the comp into a working web page (most likely with the help of other graphics designers and Flash developers). Figure 1 shows a comp of the Café Townsend page layout. Figure 1. A comp of the Café Townsend page layout You'll notice that the graphic designer has provided you with a web page comp that includes a number of content areas, as well as some graphic ideas. In the following sections, you'll use Dreamweaver to lay out this design. You can also open the original comp file if you want to see it on the computer screen. You can find the comp, homepage-mockup.jpg, in the images folder of the cafe_townsend folder that you copied to your hard drive in the first part of this article series, Setting up your site and project files. You might even want to print the comp so that you can have it in front of you as you build your page. Create and save a new page After you have set up a site and examined any comps, you are ready to begin building web pages. You'll start by creating a new page, and saving it in the cafe_townsend local root folder of your website. The page eventually becomes the home page for Café Townsend. If you haven't created the cafe_townsend local root folder, you must do so before you proceed. For instructions, see Setting up your site and project files. 1. In Dreamweaver, select File > New. 2. In the Blank Page category of the New Document dialog box, select HTML from the Page Type list, select <none> from

3 of 14 2/14/2008 2:31 PM the Layout list (these two options should already be selected by default), and click Create. In the Page Type list below the <none> option you'll see all of the CSS layouts that come with Dreamweaver. Later you can return to this dialog box to explore the different kinds of CSS layouts available. 3. Select File > Save As. 4. In the Save As dialog box, browse to and open the cafe_townsend folder that you defined as the site's local root folder. (In Part 1 of this tutorial series, you created this folder within a folder called local_sites.) 5. Enter index.html in the File Name text box and click Save. The file name now appears in the title bar at the top of the application window, as well as in the tab of your new document. 6. In the Document Title text box at the top of your new document, type Cafe Townsend (see Figure 2). 7. 8. Figure 2. Adding the page title This is the title of your page (different from the file name). Your site visitors will see this title in the browser window title bar when they view the page in a web browser. Click once on the page to move the insertion point out of the Document Title text box. You'll see that an asterisk (*) appears next to the file name in the document's tab. This asterisk indicates that a file has changed and that you need to save the file if you want to keep the changes. Select File > Save to save your page. Insert tables Next you'll add a table that will hold text, graphics, and Adobe Flash assets. 1. Click once on the page to ensure place the insertion point is in the upper-left corner of the page (see Figure 3). Figure 3. Placing the insertion point in the upper-left corner of the page 2. Select Insert > Table. 3. In the Insert Table dialog box, do the following (see Figure 4): Enter 3 in the Rows text box. Enter 1 in the Columns text box. Enter 700 in the Table Width text box. Select Pixels from the Table Width pop-up menu.

4 of 14 2/14/2008 2:31 PM Enter 0 in the Border Thickness text box. Enter 0 in the Cell Padding text box. Enter 0 in the Cell Spacing text box. Figure 4. Entering the initial table properties

5 of 14 2/14/2008 2:31 PM 4. Click OK. A table with three rows and one column appears in your document (see Figure 5). The table is 700 pixels wide with no border, cell padding, or cell spacing. Figure 5. A table with three rows and one column appears in your document Tables are a powerful tool for presenting tabular data and for laying out text and graphics on an HTML page. A table consists of one or more rows; each row consists of one or more cells. When you create multiple rows with multiple cells, the cells form columns. Technically, a cell is a division within a horizontal row, and a column is the vertical accumulation of those cell divisions. Dreamweaver displays the table width and the width for each table column in the Table selector (indicated by green lines) when the table is selected or when the insertion point is in the table (see Figure 6). Figure 6. Table width and column width in Dreamweaver Next to the widths are arrows for the table header menu and the column header menus. You can use the menus for quick access to common table-related commands. You can also enable or disable the display of the widths and menus by selecting View > Visual Aids > Table Widths. Tables can have borders, and the cells of a table can have padding, spacing, or both. Cell padding refers to the number of pixels between the cell's content and the cell's boundaries. Cell spacing refers to the number of pixels between adjacent table cells. If you don't explicitly assign values for cell padding and cell spacing, most browsers display the table as if cell padding were set to 1 and cell spacing were set to 2. If you want to ensure that browsers display the table with no padding or spacing, set cell padding and cell spacing to 0. For more information about tables, see Presenting content with tables in the Dreamweaver Help. 5. 6. Click once to the right of the table to deselect it. Select Insert > Table to insert another table. 7. In the Insert Table dialog box, do the following for the second table: Enter 1 in the Rows text box. Enter 3 in the Columns text box. Enter 700 in the Table Width text box. Select Pixels from the Table Width pop-up menu. Enter 0 in the Border Thickness text box. Enter 0 in the Cell Padding text box. Enter 0 in the Cell Spacing text box.

6 of 14 2/14/2008 2:31 PM 8. Click OK. A second table with one row and three columns appears below your first table (see Figure 7). Figure 7. A second table with one row and three columns appears below your first table. 9. Click to the right of the table to deselect it. 10. Insert a third table by selecting Insert > Table and entering the following values in the Insert Table dialog box: Enter 1 in the Rows text box. Enter 1 in the Columns text box. Enter 700 in the Table Width text box. Select Pixels from the Table Width pop-up menu. Enter 0 in the Border Thickness text box. Enter 0 in the Cell Padding text box. Enter 0 in the Cell Spacing text box. 11. Click OK. A third table, with one row and one column, appears below your second table (see Figure 8). Figure 8. A third table, with one row and one column, appears below your second table. 12. Click to the right of the table to deselect it. Your page should now look like Figure 9. Figure 9. How the table looks after deselecting it You may see the Table selector (indicated by green lines) after you insert a table. You can always make the Table selector disappear by clicking outside the table. You can also disable the Table selector by de-selecting View > Visual Aids > Table Widths. Set table properties Now you'll set precise table properties, using Expanded Tables mode, a feature that temporarily adds cell padding and spacing to tables and increases the borders of the tables to simplify editing. Specifically, it lets you position the insertion point precisely without accidentally selecting the wrong table or other table content. After you finish setting table properties in Expanded Tables mode, always return to Standard mode. Expanded Tables mode is not a WYSIWYG (what you see is what you get) environment, so some operations, such as resizing, do not display the expected results. 1. Select View > Table Mode > Expanded Table Mode (see Figure 10).

7 of 14 2/14/2008 2:31 PM Figure 10. Switching to Expanded Tables mode If you see the Getting Started with Expanded Tables Mode dialog box, click OK. 2. Click once inside the first row of the first table (see Figure 11). Figure 11. Clicking inside the first row of the first table

8 of 14 2/14/2008 2:31 PM 3. In the Property inspector (Window > Properties), enter 90 in the Cell Height (H) text box and press Enter (Windows) or Return (Macintosh). Figure 12. Setting the height of the table cell If you cannot see the Cell Height text box, click the expander arrow in the lower-right corner of the Property inspector. 4. Click once inside the second row of the first table (see Figure 13). Figure 13. Clicking inside the second row of the first table 5. 6. 7. In the Property inspector, enter 166 in the Cell Height text box and press Enter (Windows) or Return (Macintosh). Click once inside the third row of the first table. In the Property inspector, enter 24 in the Cell Height text box and press Enter (Windows) or Return (Macintosh). You should now have three rows of differing heights in the first table (see Figure 14). Figure 14. Three rows of differing heights Next you'll set properties for the second table (the table that contains three columns).

9 of 14 2/14/2008 2:31 PM 1. Click once inside the first column of the second table (see Figure 15). Figure 15. Clicking once inside the first column of the second table 2. In the Property inspector, enter 140 in the Cell Width (W) text box and press Enter (Windows) or Return (Macintosh). 3. Click once inside the second column of the second table. 4. In the Property inspector, enter 230 in the Cell Width text box and press Enter (Windows) or Return (Macintosh). Figure 16. Setting the cell width in the Property inspector

10 of 14 2/14/2008 2:31 PM 5. Set the width of the third column to 330 pixels. If you have the Table selector enabled (View > Visual Aids > Table Widths), you'll see all three of the pixel values you just entered above the respective table columns. You won't enter any height values for the cells in this table because the height of those cells will vary depending on the content you add later. 6. 7. Finally, click once inside the last table (the table with one row and one column). In the Property inspector, enter 24 in the Cell Height text box and press Enter (Windows) or Return (Macintosh). Your layout should now look like Figure 17. Figure 17. The table layout after setting the table properties 8. 9. Click the Exit Expanded Tables mode link at the top of the Document window to return to Standard mode. Save your page. Insert an image placeholder An image placeholder is a graphic that you use until final artwork is ready to be added to a web page. An image placeholder is useful when you lay out web pages because it allows you to position an image on a page before you actually create the image. 1. 2. In the Document window, click once inside the first row of the first table. Select Insert > Image Objects > Image Placeholder. 3. In the Image Placeholder dialog box, do the following: Type banner_graphic in the Name text box. Enter 700 in the Width text box. Enter 90 in the Height text box. Click the color box and select a color from the color picker. You can also type a hexadecimal color value into the Color text box to select a color. For this tutorial, select a reddish brown (#993300). Leave the Alternate Text text box blank. Alternative text is a textual description of an image on a web page. It is part of the HTML code and does not appear on the page. It's important to provide alternative text for most of your images so that people who use screen readers or text-only browsers can receive the information provided by the image. In the case of a banner graphic, which merely displays a logo for a website, it is not essential to provide alternative text. When you leave the Alternate Text text box

11 of 14 2/14/2008 2:31 PM blank in the Image Placeholder dialog box, Dreamweaver adds an alt="" attribute to the img tag. Later, if you want to add alternative text to an image, you can select the image and enter the alternative text in the Property inspector. For example, if you later change the logo to include a phone number or address, you would want to provide that information as alternative text. 4. Click OK. The image placeholder appears inside the first table (see Figure 18). The image placeholder displays a label and the size attributes of the image that you'll eventually place there. Figure 18. The Image placeholder When viewed in a browser the label and size text for an image placeholder do not appear. 5. Save your page. An image placeholder is a graphic you use until final artwork is ready to be added to a web page; it is not a graphic image that displays in a browser. Before you publish your site, replace any image placeholders you've added with web-friendly graphic files such as GIFs or JPEGs. Add color to the page Next, you'll add more color to the page by setting colors for some of the table cells and for the background of the page. 1. Click once inside the first cell of the three-columned table. 2. Click the <td> tag (cell tag) in the tag selector to select the cell.

12 of 14 2/14/2008 2:31 PM Figure 19. Using the tag selector to select the table cell 3. In the Property inspector (Window > Properties), click once inside the Background Color text box. The text box is located directly next to the Background Color (Bg) color box. If you cannot see the Background Color text box, click the expander arrow in the lower-right corner of the Property inspector. 4. In the Background Color text box, enter the hexadecimal value #993300 and press Enter (Windows) or Return (Macintosh). Figure 20. Setting the color of the table cell The color of the table cell turns to reddish-brown. 5. 6. Click once inside the second cell of the three-columned table. Click the <td> tag (cell tag) in the tag selector to select the cell. 7. In the Property inspector, click once inside the Background Color text box, enter the hexadecimal value #F7EEDF, and

13 of 14 2/14/2008 2:31 PM press Enter (Windows) or Return (Macintosh). The color of the table cell turns to light tan. 8. Repeat steps 5 through 7 to change the color of the third table cell to light tan as well. 9. After you have all three cell colors set, click once outside the table to deselect it. Next you'll change the background color for the entire page by modifying page properties. The Page Properties dialog box lets you set a number of page properties, including the size and color of page fonts, the colors of visited links, page margins, and much more. 10. Select Modify > Page Properties. 11. In the Appearance category of the Page Properties dialog box, click the Background Color color box and select black (#000000) from the color picker. Figure 21. Setting the page background color A note on picking colors: In HTML, colors are expressed either as hexadecimal values (for example, #FF0000) or as color names (red). A web-safe color is one that appears the same in Netscape Navigator and Microsoft Internet Explorer on both Windows and Macintosh systems when using 256-color mode. There are 216 common colors, and any hexadecimal value that combines the pairs 00, 33, 66, 99, CC, or FF (RGB values 0, 51, 102, 153, 204, and 255, respectively) represents a web-safe color. You can select colors in Dreamweaver by entering hexadecimal values in the appropriate text boxes, or by selecting a color from the color picker. The color picker uses the 216-color web-safe palette; selecting a color from this palette displays the color's hexadecimal value. To use the color picker, click on the color box and use the eyedropper to select a color. You can also use the color picker to match colors. For example, if an image on your page contains a certain shade of blue and you want the background color of a table cell to match it, you can select the table cell, click on the color box to open the color picker, move the eyedropper over the blue in the image, and click the mouse button. The color picker fills the selected area with the closest match possible to the color you clicked with the eyedropper. If you select colors by

14 of 14 2/14/2008 2:31 PM this method, however, the color that the color picker chooses for you may not be a web-safe color. 12. Click OK. Your page background turns to black (see Figure 22). Figure 22. The page background turned to black 13. Save your work. Your page layout is now complete. The layout contains a number of tables that can hold assets such as images, text, and Flash Video (FLV) files. In the next installment of this tutorial series, Part 3: Adding content to pages, you'll learn how to add assets to the page using the various insertion features that Dreamweaver provides. About the author Jon Michael Varese is a Senior Technical Writer at Adobe, and Lead Writer for Dreamweaver. He has written web and print documentation for Dreamweaver, Fireworks, FreeHand, Flash, and ColdFusion. In the past he has held such illustrious positions as baker, clown, and funeral attendant. In addition to writing web tutorials, he is currently at work on his Ph.D. in 19th-century British Literature.