Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating and adding content to tables

From: Dreamweaver CS3 Essential Training

Video: Creating and adding content to tables

Alright, so let's get in here to {italic}Dreamweaver{plain} and start creating and adding content to our own tables. I've copied the folder 08_tables to my desktop. That's a new set of files we can work with for this chapter. So, we need to define that folder as our site again. Let's go ahead and choose New Site. Let's call this teacloud 08, because we're in the eighth chapter, and we'll browse to the desktop for that. And we'll click Choose, and OK. Now, you might notice there aren't a lot of HTML pages in this version of the teacloud site, because we're going to build a lot of the site from scratch. Starting right now, we're going to go ahead and right-click, or Ctrl + click, on the root folder in our Files panel, and I'm going to choose New File to create a new document. We're going to call this one teapots.html. And I'll double-click to open that up.

Creating and adding content to tables

Alright, so let's get in here to {italic}Dreamweaver{plain} and start creating and adding content to our own tables. I've copied the folder 08_tables to my desktop. That's a new set of files we can work with for this chapter. So, we need to define that folder as our site again. Let's go ahead and choose New Site. Let's call this teacloud 08, because we're in the eighth chapter, and we'll browse to the desktop for that. And we'll click Choose, and OK. Now, you might notice there aren't a lot of HTML pages in this version of the teacloud site, because we're going to build a lot of the site from scratch. Starting right now, we're going to go ahead and right-click, or Ctrl + click, on the root folder in our Files panel, and I'm going to choose New File to create a new document. We're going to call this one teapots.html. And I'll double-click to open that up.

And just because it's a good habit to get into, I'll come into the Title area and just title this document right away. I'll type in "Teacloud: Our Teapots." Let's go ahead and add a table to this page, where we're going to display some of the Teacloud teapots that are available for sale. Up in the Insert bar, I'm going make sure I'm in the Common tab, and right here we'll find our Table button. That opens up our Table dialog box. Using the table dialog box, you can create and format a table exactly how you want it from the very beginning. The most important sections are going to be the Table size and the Header area. They control how many rows and columns a table has, how wide it is, how thick the borders are, how table cell spacing is handled, and which rows, or columns, are actually going to be header cells. The Accessibility section lets you add a caption for the table, as well as a complete Summary of what the table contains, and that stuff is not actually displayed in the browser, but it is able to be read by audible readers, so people to have trouble seeing the table will be able to listen to a description of the table's contents. None of these options are going to be set in stone once you click on OK. You can always go back to the Properties inspector, or go into the XHTML code to change any of the table settings that you set up here. This table we're going to be creating will have the information for three of the Teacloud teapots, and each one is going to have a photo, a description, and a price.

So we're going to need four rows, because we're going to have a header row, and then each additional row is going to be for each one of the products, and we'll need three columns for the photo, description, and price. So we'll come up here the Rows field, and we'll type in 4. We're going to have 3 Columns. I'm going to delete the Table width for the moment. We'll get rid of the Border thickness, just because I want to show you that you are able to add or change these items later on. In the Header section let's make sure Top is selected because we want the first row to be the header for the table, and in the Caption area let's type in "Teacloud Teapots." Let's go ahead and click on OK and see what happens. And there's our table. You can see the caption up there.

We have a teeny, tiny collapsed table here. The reason it does this is because {italic}Dreamweaver{plain} automatically collapses the table to the smallest necessary size to fit its contents. Since this table doesn't have any contents yet, it's been completely collapsed, which can sometimes make it difficult to work with the table. You can see each one of the dotted lines represents each of the tables' cells. To make the table easier to work with, we're going to go to the View menu, to Table Mode, and we're going to choose Expanded Tables Mode. We'll see this dialog box that explains what Expanded Table Mode is, and this is important to read the first time.

Notice that says it makes it easier to select inside and around tables. But, this mode does not display tables the way a browser does. Before moving or resizing table elements, return to Standard mode by clicking the Standard mode button in the Layout category of the Insert bar. What the Expanded Tables Mode does is it increases the cell padding and the cell spacing of the table, which we'll learn about in a little bit. That makes it easier to select the table cells and insert content. As you can see, it's much easier to work with something like this than it is to work with that completely collapsed table. Click on OK. And you'll notice it alerts you up here at the top, Expanded Tables mode, and we can exit that mode if we need to.

It lets you know it as clearly as possible that you're in Expanded Tables mode, and your table will not necessarily look the way it looks right now. It just looks that way now because it's easier to work with it this way. You saw up here, under the View menu, that {italic}Dreamweaver{plain} actually has three table modes: Standard, Expanded, and Layout Mode. You can always come in here to switch among the various modes. We're currently working with the Expanded mode, but just be aware that most of the time we'll be working in the Standard mode. Let's go ahead into our table, and start adding some content. I'm going to click in the very top cell here in the upper left-hand corner. And this is our Header row so, this will be the photo of the teapot.

Notice that the table automatically expands as I type in my content. Just like working with tables in say, a spreadsheet program, or a word processor, you can press Tab on your keyboard to move the very next cell. You can see my cursor is now flashing in the top middle cell. This'll be the Description column. Press Tab again. This will be the column for the Price. You can see, very easy to add content that way, just press Tab to move forward. You may not know this, but if you press Shift + Tab, you can work backwards through the table. Now that we have some content to hold the table cells open, we can actually click the exit link up here to leave Expanded Tables Mode, and now we can actually click inside these cells a lot more easily than we could when we had no content in the table. Notice we have these dotted lines representing the table cells.

Those are only visible in {italic}Dreamweaver.{plain} When you have the dotted lines, those are there to show you where the cell borders are, but if we were to preview this in the browser, we would not see those dotted lines. Let's go ahead and start adding content. I'm going to place the cursor under the Photo column, in the first cell underneath it. And we'll add an image here of the first teapot. Again, there's lots of ways to add images. I'll just come up here and choose to add an Image. I'll go into our assets folder, into images, under products, and here we'll find our kettles. The first one we'll select is the teacloud-azul.jpg. We'll will click on Choose, and you can see that we've now added an image to our table cell. Very easy to do. With the image selected, you can still press tab to go into the very next cell, and in here we can type a brief description of the teapot.

So the name of the product. I'm going to put a line break here. Shift + Return. I'll keep typing some text here. Now, you can see that this is getting a little bit cramped in here. So, what I'm going to do is just click outside the table, and that forces {italic}Dreamweaver{plain} to refresh the table, and it lets the table expand a little bit so I'm not typing this incredibly tall column of text. Let's come in here and keep typing. There's our text description. I'm going to click outside and let it expand again. The reason that the table expands like that when I click is because we do not specify a width for this table. We'll take care of that in a little bit. But, you can see how flexible and fluid tables can be.

I'm going to go ahead and tab over into the Price field, and for the price we'll type in $49.95. Now we've will finished editing our very first row of table data. Now it's time to complete the information for the next two teapots. I'm going to press tab to move to the next photo. This time, we can also come into our Files panel, look inside images, look inside products. I should expand this so I can see it a little bit better. The next one we want is earls-grey. So, I'm just going to grab that and drag that into the table cell. There it is.

I can just click to the next one, and type a description. The price of this teapot is $69.95. We've got one more to add here. Just as another review, we can go to our Assets panel here, find our third teapot image. In this case, we want the simple-elegance.jpg file here. We'll drag that into our table. I'll come in here and type a description. In terms of content, our table is complete. We've got our images, our descriptions, and our prices. The table doesn't look all that great right now. In fact, if I go and preview this in my browser, you can see it's still kind of hard to tell, without those borders, it's kind of not the easiest thing to read.

We'll continue modifying this table in the next couple of movies to make it look a little bit better. And, as we do so we'll learn more about some of the options we have when it comes to styling our tables.

Show transcript

This video is part of

Image for Dreamweaver CS3 Essential Training
Dreamweaver CS3 Essential Training

129 video lessons · 86987 viewers

Garrick Chow
Author

 
Expand all | Collapse all
  1. 1m 12s
    1. Welcome
      1m 12s
  2. 21m 0s
    1. HTML vs. XHTML
      3m 4s
    2. What is CSS?
      3m 48s
    3. What is XML?
      2m 11s
    4. What is DHTML?
      1m 9s
    5. What is JavaScript?
      1m 23s
    6. File naming conventions
      3m 22s
    7. What is an index page?
      6m 3s
  3. 46m 18s
    1. Setting up your workspace
      2m 39s
    2. The Welcome screen
      4m 11s
    3. Windows and Mac differences
      3m 18s
    4. The Insert bar
      4m 38s
    5. The Property Inspector
      1m 50s
    6. The Document toolbar
      6m 6s
    7. The Document window
      9m 11s
    8. Panels and panel groups
      6m 58s
    9. Saving workspace layouts
      2m 22s
    10. Defining a default browser
      5m 5s
  4. 24m 59s
    1. Defining a site
      9m 5s
    2. File and folder management
      3m 11s
    3. Understanding path structure
      3m 17s
    4. Adding content to a site
      6m 6s
    5. Creating a site map
      3m 20s
  5. 38m 39s
    1. Creating a new blank site
      6m 0s
    2. Creating and saving a new document
      7m 54s
    3. About DOCTYPE
      3m 59s
    4. Inserting images
      9m 26s
    5. Inserting text
      3m 35s
    6. Aligning text and images
      4m 9s
    7. Inserting meta tags
      3m 36s
  6. 45m 58s
    1. Link basics
      6m 4s
    2. Linking with Point to File
      5m 18s
    3. External links
      4m 15s
    4. Creating email links
      5m 49s
    5. Named anchors
      7m 37s
    6. Linking to a file
      7m 35s
    7. Image maps
      9m 20s
  7. 1h 8m
    1. About CSS
      4m 52s
    2. Anatomy of a style sheet
      4m 10s
    3. CSS and page properties
      10m 11s
    4. Moving an internal style sheet to an external style sheet
      6m 46s
    5. The CSS Styles panel
      3m 48s
    6. CSS selectors
      2m 37s
    7. Type selectors
      12m 13s
    8. ID selectors
      10m 21s
    9. Class selectors
      5m 42s
    10. Creating rollovers with pseudo-class selectors
      7m 22s
  8. 42m 54s
    1. CSS vs. the Font tag
      2m 42s
    2. Formatting text with the Property Inspector
      8m 41s
    3. What measurement should I use?
      3m 15s
    4. Managing white space with margins, padding, and line height
      8m 34s
    5. Using font lists
      5m 45s
    6. Aligning text
      2m 47s
    7. Creating lists
      5m 8s
    8. Creating Flash text
      6m 2s
  9. 43m 19s
    1. About tables
      1m 28s
    2. Tables in Code view
      2m 36s
    3. Creating and adding content to tables
      7m 40s
    4. Changing table borders with XHTML
      5m 46s
    5. Coloring tables with XHTML and CSS
      6m 41s
    6. Aligning table content
      6m 39s
    7. Sorting tables
      3m 6s
    8. Setting table widths
      4m 48s
    9. Creating rounded-corner tables
      4m 35s
  10. 28m 22s
    1. Dreamweaver's layout tools
      3m 8s
    2. Tracing images
      4m 58s
    3. Adding AP div tags
      7m 29s
    4. Working with Layout Tables
      6m 55s
    5. Adjusting table widths and nesting tables
      5m 52s
  11. 16m 19s
    1. What is a device?
      3m 14s
    2. Attaching a printer-friendly style sheet
      3m 5s
    3. Styling for print
      7m 41s
    4. Adobe Device Central
      2m 19s
  12. 29m 54s
    1. Rollover rules
      3m 31s
    2. Creating simple rollovers
      5m 36s
    3. Creating disjointed rollovers
      7m 12s
    4. Creating navigation bars with multiple states
      9m 21s
    5. Creating Flash buttons
      4m 14s
  13. 26m 32s
    1. Viewing the code
      6m 9s
    2. Editing in Code view
      3m 0s
    3. The Code toolbar
      5m 11s
    4. Working with Code Collapse
      4m 27s
    5. The Quick Tag Editor
      2m 20s
    6. Working with snippets
      5m 25s
  14. 32m 45s
    1. About forms
      3m 23s
    2. Adding text fields
      9m 52s
    3. Adding checkboxes and radio buttons
      5m 37s
    4. Adding lists and menus
      6m 5s
    5. Submitting form results
      3m 23s
    6. Styling form elements with CSS
      4m 25s
  15. 23m 17s
    1. Opening a new browser window
      9m 38s
    2. Creating a popup message
      2m 50s
    3. Validating text fields
      2m 42s
    4. Getting more behaviors
      7m 2s
    5. Removing extensions
      1m 5s
  16. 14m 58s
    1. External image editor preferences
      3m 18s
    2. Built-in image editing tools
      3m 11s
    3. Roundtrip editing from Dreamweaver to Fireworks or Photoshop
      4m 39s
    4. Copying and pasting
      3m 50s
  17. 34m 16s
    1. Templates in action
      5m 12s
    2. Creating a new template
      6m 36s
    3. Applying templates
      3m 36s
    4. Modifying a template
      1m 40s
    5. Adding repeating regions
      3m 28s
    6. Working with repeating regions
      3m 13s
    7. Adding optional regions
      3m 34s
    8. Creating a library item
      3m 48s
    9. Modifying a library item
      3m 9s
  18. 13m 2s
    1. Using the History panel
      4m 24s
    2. Saving History steps as commands
      3m 25s
    3. Using Find and Replace
      5m 13s
  19. 14m 44s
    1. W3C accessibility guidelines
      4m 6s
    2. Accessibility preferences
      1m 29s
    3. Inserting accessible images
      3m 2s
    4. Inserting accessible tables
      2m 53s
    5. Inserting accessible form objects
      3m 14s
  20. 26m 17s
    1. About media objects
      2m 6s
    2. Linking to audio and video files
      5m 56s
    3. Embedding audio and video files
      7m 7s
    4. Setting parameters
      4m 27s
    5. Inserting Flash content
      2m 37s
    6. Inserting Flash video
      4m 4s
  21. 28m 47s
    1. Getting site reports
      3m 35s
    2. Checking links sitewide
      3m 30s
    3. Signing up with Tripod
      6m 36s
    4. Entering remote info
      4m 13s
    5. Publishing your site
      5m 41s
    6. Updating and publishing pages
      5m 12s
  22. 44s
    1. Goodbye
      44s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dreamweaver CS3 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.