Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > Adobe Dreamweaver

Inside Dreamweaver MX Tables

This sample chapter looks at the various options you have to let Dreamweaver do table coding for you, including Layout view and the Convert Layers to Table command. It also covers rulers, grids, and tracing images—viewing aids that can help you create layouts in Design view regardless of how you approach your page layout tables.
This chapter is from the book

This chapter is from the book

Like ice cream, web designers come in all flavors. Some love their code and want nothing more than to be close to it. They can appreciate a visual design interface like Dreamweaver's because of the amount of time it saves, but feel compelled to keep an eagle eye on the Code view, monitoring every tag Dreamweaver writes. Others are happy to allow Dreamweaver to translate for them, instructing it to place this or that element on the page and trusting that the software will take care of things behind the scenes. The preceding chapter discussed using tables for page layout, and how to make the code work for you in designing. This chapter looks at the various options you have to let Dreamweaver do the table coding for you, including Layout view and the Convert Layers to Table command. It also covers rulers, grids, and tracing images—viewing aids that can help you create layouts in Design view regardless of how you approach your page layout tables.

Viewing Aids

Graphic designers are used to having certain tools at their disposal when they build their layouts. Rulers, guides, tracing images—most print-based page layout environments have at least some of these features. For those of you who sorely miss having such helpers as you work, Dreamweaver offers rulers, the grid, and tracing images. (Sorry, no ruler guides!)

Rulers

Dreamweaver rulers work similarly to rulers in most graphics programs. They display across the top and down the left side of the Document window; they can be set to display various measurement systems; they can be turned off and on; and they indicate the current cursor position with a dotted line. Figure 10.1 shows the rulers in action.

Figure 10.1Figure 10.1 Dreamweaver rulers and their options.

To configure and show or hide the rulers, use commands in the View > Rulers submenu:

  • Showing and hiding. The View > Rulers > Show command acts like a toggle, turning the rulers on and off. You can also use the Rulers toggle command in the View Options menu, in the Document toolbar, or right-click (Mac users Ctrl-click) on the ruler itself to access its contextual menu.

  • Choosing a unit of measurement. From the View > Rulers submenu, choose pixels, inches, or centimeters. You can also right-click (Ctrl-click) on the ruler in the Document window, to access its contextual menu. Pixels (the default) is definitely the most useful choice.

  • Changing and resetting the origin point. The origin is the zero-point, the location on the page where the horizontal and vertical ruler read 0. By default, this is the upper-left corner of the page. To change the origin point, position the cursor over the little square where the left and top rulers meet (see Figure 10.1), and drag out into the document area. To reset the origin back to the top-left corner, choose View > Rulers > Reset Origin, or right-click (Ctrl-click) on the ruler itself to access its contextual menu.

Grid

Dreamweaver might not have moveable rulers you can pull out from the rulers, but it does have a grid. The grid overlays the Design view display with horizontal and vertical rules at fixed intervals, and can be a helpful design aid if your layout is built on those fixed intervals (a column every 100 pixels, for instance). Figure 10.2 shows the grid being used in a document.

Figure 10.2Figure 10.2 The Dreamweaver grid set to its default of 50x50 pixels.

To configure and show or hide the grid, use commands in the View > Grid submenu:

  • Showing and hiding. The View > Grid > Show Grid command acts like a toggle, turning the grid on and off. You also can use the Grid toggle command in the View Options menu, in the Document toolbar.

  • Choosing grid size and appearance. The grid can be set to display rules at any fixed interval from 1 pixel on up, and measured in pixels, inches, or centimeters. It can display as solid lines or rows of dots, in any color you choose. To alter these settings, choose View > Grid > Grid Settings. (Okay, a 1-pixel grid is not very useful—but it's nice to know it's possible!)

  • NOTE

    The grid starts measuring in the upper-left corner of the document, not necessarily at the zero point but where the page content starts. If you haven't specified page margins for your document (using Modify > Page Properties), the grid will start about 8 pixels in from the top-left corner.

  • Snapping to the grid. When creating layouts using Layout View or Layers, or when dragging to resize tables, a snap-to feature can be helpful for accuracy. Toggle snapping on and off by choosing View > Grid > Snap to Grid.

If you want, you can have your layout tables and cells automatically snap to the grid. The snapping behavior can be controlled by changing the grid settings.

To show the grid, choose View > Grid > Show Grid, or select Grid from the Options drop-down menu on the toolbar.

Tracing Images

If you're the kind of designer who creates your layouts first by sketching them with pencil and paper, or building prototypes in a graphics program, and then recreating the effect in Dreamweaver, you might find the Dreamweaver tracing image feature a great help. A tracing image is any GIF, JPEG, or PNG file that you choose, that will appear as a ghosted-back image in Design view—as if you were viewing it through tracing paper. The idea is, you place your layout sketch "behind" your Dreamweaver design and use it as a guide to construct the tables or layers that will create your HTML layout. When you're done, you remove the tracing image, and all is well with the world. Tracing images are configured and set using the commands in the View > Tracing Image submenu, or the Modify > Page Properties dialog box. Figure 10.3 shows a tracing image being used.

Figure 10.3Figure 10.3 A Dreamweaver document with tracing image in place.

Setting a Tracing Image

To put a tracing image "behind" your Dreamweaver Design view, do this:

  1. Create the GIF, JPEG, or PNG file any way you like—by scanning a sketch, saving a Fireworks or Photoshop file, taking a screenshot of a desired layout, and so on.

  2. In Dreamweaver, open your document and go to Modify > Page Properties (see Figure 10.4).

  3. Figure 10.4Figure 10.4 Using Modify > Page Properties to set the tracing image.

  4. From the Page Properties dialog box, find the tracing image options and click the Choose button. Browse to select your tracing image file.

  5. Still in the Page Properties dialog box, set the image opacity slider to around 30–50% (to create the faded-back, tracing paper effect). Click Apply to see how your tracing image looks, and adjust the opacity more until you like the effect.

  6. Click OK to close the Page Properties dialog box. There you go!

TIP

You can also use View > Tracing Image > Load to choose a tracing image, but you can't assign it an opacity value using that method.

To see how Dreamweaver creates the tracing image, go to Code view and examine the code for your <body> tag. You'll see several nonstandard attributes assigned (shown in bold):

<body bgcolor="#FFFFFF"text="#000000
"tracingsrc="images/myLayout.gif" tracingopacity="40">

The browser won't recognize these attributes, and so will ignore them. If you Preview in Browser with a tracing image in position, it won't show. But it will show in Dreamweaver Design view.

NOTE

If your page has a background image assigned, either as part of the <body> tag or in a Cascading Style Sheet, the tracing image won't be visible—it's hidden behind the other image. To see the tracing image, you'll have to temporarily remove your background image.

Adjusting Tracing Image Position

Your tracing image might not be positioned exactly where you need it—by default, it appears slightly offset from the top and left of the Document window.

To adjust the tracing image position manually, do this:

  1. Go to View > Tracing Image > Adjust Position. A dialog box will appear, displaying the current x (horizontal) and y (vertical) coordinates of the image, and allowing you to change these.

  2. You can change the image's position either by entering new values in these fields, or by using your arrow keys to nudge the image one pixel at a time in any direction.

  3. When you're done, click OK!

To adjust the tracing position to match a certain page element (such as a graphic, table or layer), do this:

  1. Select the element you want to align the image with.

  2. Go to View > Tracing Image > Align with Selection.

After you've done your repositioning, check your code, and you'll see that more attributes have been added to the <body> tag (shown in bold):

<body bgcolor="#FFFFFF" text="#000000"
tracingsrc="images/myLayout.gif" tracingopacity="40"
tracingx="-5" tracingy="150">

TIP

Don't use the tracing image to get pixel-perfect layouts in place—use it to get the overall positioning down, and then remove it. HTML layouts can't always perfectly match layouts created in graphics programs.

Removing a Tracing Image

Eventually, the tracing image will start getting in your way, and you'll want to remove it—either temporarily, by hiding it, or permanently, by removing its code from the <body> tag.

To temporarily hide the tracing image, go to View > Tracing Image > Show, to toggle the command off; or go to Modify > Page Properties, and set the opacity slider to 0%.

To remove the tracing image permanently, go to Modify > Page Properties, and delete it from the Tracing Image input field; or go to Code view and remove the tracing image attributes.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020