Getting Started with DreamweaverProfessionals use ItBecause Dreamweaver is a powerful editor program, you will want to learn it a little bit at a time. This page will give you a brief introduction to Dreamweaver and give you a few guidelines for using it. As you get experience with Dreamweaver, you'll develop additional skills, and soon you'll be a Dreamweaver guru.
The Menu BarThe Menu Bar contains the commands that Dreamweaver gives you for control of the program. Take a moment to briefly look at the menus to get an overview of the program.The Tool BarThe Tool Bar contains icons that allow you to switch between the design and HTML code views, specify the Title of your page, preview your page in your browser, obtain tutorial reference information about HTML (even though Dreamweaver is a WYSIWYG editor, it allows you to powerfully work with HTML), and control certain aspects of your view of the page.The Status BarAt the bottom of the window is the Status Bar. The bar has a Window Size field that allows you to reformat your view of your page for common browser resolutions. Next to that are download statistics so you can predict how long your page will take to download. At the right of the Status Bar is a mini-launcher for running certain functions provided by Dreamweaver.PanelsRather than having additional tool bars below the main tool bar, as most Windows programs have, Dreamweaver has "floatable panels" that can be moved to any desired position on your monitor screen.Notice that the Properties panel is visible on your screen (if it isn't visible, click on Window and then on Selection Properties). This panel contains the properties of the object that is selected on your screen. For example, it might be showing the properties of your XHTML page. If you were to click on a picture that has been inserted into your page, the panel would change and show the properties of the jpg file. This panel is a very useful feature of Dreamweaver. In the lower right corner of the panel is a small icon that looks like a triangle. That icon allows you to control how much information is displayed in the panel.Another useful panel is the Object Panel. This panel allows you to insert common objects, such as images and tables, into your page. If this panel isn't visible, click on Window and then on Objects.Defining Your SiteIn using Dreamweaver to complete your web project, the first thing you should do is define your site so Dreamweaver will know how to access it. Click on Site in the menu bar and then on Define Sites... and then on New. The Local Info tab should be selected; if not click on it to select it. Give your site a name of your choice and then put the hard-drive path to your project folder in the Local Root Folder field; do not use a http web address as the path.If you are using a Westminster College computer for your development, you will publish your pages on your W: drive by using Windows Explorer to drag your files from your project folder to your W: drive. You will not need to put any information in the Remote Info tab. However, if you will be using an off-campus web server, you will probably be using ftp to publish, and you will need to click on the Remote Info tab, select ftp and enter information about your server and your login account.Creating a New PageWhen you start Dreamweaver, it will come up with a blank page that you can use for one of your site pages. If you want to create another page, click on File and then on New. The Properties Panel will display the properties of the page. Do the following to prepare your new page for use in your web site.
Entering Text & Images Into Your PageThink of your new page as a blank sheet of paper. You can enter text into the page, and you can set the properties (such as a particular font) of particular words or phrases by highlighting that text and changing the properties in the Properties Panel. Similarly, you can insert images into the page and set the properties of the pictures and icons.Views of Your PageDreamweaver allows you to view a web page in two ways, Standard and Layout. The Standard View allows you to view a page from the perspective of a word processing program, while the Layout View lets you view a page from a desktop publishing viewpoint. The Standard View is easier to use than the Layout View, but it gives you less control over the positioning or layout of text and images. The two Views are selected via the icons at the bottom of the Objects panel. Standard ViewIn the Standard View, you begin with an empty page. You enter text and images into the page, but they are entered from the top to the bottom of the page. If, for example, you want to place an image in the middle of the page, you will have to enter enough text (either readable text or empty lines via the Enter key) to move the keyboard cursor down to the middle of the page. That is, you can not insert the graphic and then drag it to a desired position (use the Layout View to do that). The Standard View is convenient to use when your page has lots of text. You can enter the text without having to create "cells" to hold the text. Layout ViewThe Layout View allows you to enter text and images anywhere on the page. You can easily drag the text and images to new positions. When you select the Layout View, the two Layout icons that are immediately above the View icons are enable. These icons let you draw layout tables and layout cells. Layout tables consist of rows and columns, and the intersection of a row and a column is a layout cell. Layout cells contain the text and graphics that are in the page. In the Layout View, your page becomes a grid of cells. You can change the position and size of the cells, thus controlling the position and size of the images and blocks of text that you can place in your page. Layout TablesBy clicking on the Layout Table icon, you can draw or place layout tables in your page, either in empty portions of the page or inside other layout tables. Then you can place layout cells inside the tables. A common practice is to create one layout table that will be used as your page. All text and graphics that go into the page are placed in layout cells inside the layout table. Because you can control the width of the table, you can control the width of your page, thus eliminating the "stretching" and "contraction" of pages that occurs when browsers of different resolutions are used. The XHTML for a layout table that is being used as the page looks like the following.
The visible part of that page is all text and XHTML elements that are between the <body> and the </body> tags. Notice that only one object is in the visible part, a table that is delimited by the <table> and the </table> (the tr tag defines a row and the td tag defines a cell). Thus, as long as all text and graphics are placed in the table, the table will be the page because it contains everything. As shown in the XHTML, the width of the table (page) can be set to a desired value, in this case 765 pixels for use on a 800 x 600 resolution monitor. Layout CellsThe Layout Cells icon allows you to place layout cells inside layout tables. You can, in fact, skip the creation of layout tables and just draw the layout cells, and Dreamweaver will create a layout table for you. To place several cells in your page, hold the CTRL key down when you click on the icon and while you draw the cells. If you don't do this, you will have to click the icon before the next cell can be drawn. When you draw the first layout cell you will notice that the layout table is automatically divided into a network of rows and columns that intersect to create a network of cells. One of the cells will have the same position and size as your cell. You can change the size of your cell by clicking on an edge of the cell and dragging one of the handles; the network is automatically changed to create a cell having the new size and position of your cell. Similarly, you can drag your cell to a different position, and the network is changed to create a cell of the same position and size as your cell. Thus, you have quick and easy control over the layout of your page. Alignment TablesBesides being used as the structure for page layout, tables can be used to align groups of images and/or text. For example, a table consisting of one row of two cells could be used to align an icon in the right cell with text in the left cell. The table forces the two cells to be in a straight row. In the following example, the Border field is 1 so you can see the cell-structure of the table. CellPad (see below) is 10 to insure a small space between the text and the image.
Alignment Tables in Standard ViewTo insert a table in a page being viewed in Standard View, do the following.
To get the Table Properties right-click on either an empty cell or a cell containing text. Do not right-click on an image that is in a cell because you will get the image properties. You can align the table to be at a desired part of the screen, add color to the table, and add space between the cells and the edges of the table. To add the space, you can change the CellPad and CellSpace values. CellPad adds space between the cell and the border of the table. CellSpace adds a white-space border around the cells. If you have Border set to 0, the visual effect of CellPad and CellSpace is the same.To be continued ...
|