DREAMWEAVER MX 2004. Chapter 3. Working with Tables. Performance Objectives. Understand tables and table elements. Understand how tables are used for layout control. Create tables in Standard mode. Create proportional-width and fixed-width tables. Select tables and table elements.
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
Performance Objectives • Understand tables and table elements. • Understand how tables are used for layout control. • Create tables in Standard mode. • Create proportional-width and fixed-width tables. • Select tables and table elements. • Use the Expanded Tables mode to aid table and cell selection. • Use the Tab and arrow keys to navigate inside tables. • Use the Table Property inspector and Table Cell Property inspector to format tables.
Performance Objectives…/2 • Add and delete columns and rows. • Merge and split cells. • Create nested tables. • Format tables using the Format Table command. • Create tables in Layout mode. • Create autostretch tables in Layout mode. • Understand and use spacer images. • Use a grid when working with tables. • Sort table content.
Understanding Tables • Tables are used to control page layout. table borders visible
Table Components • Tables are grids composed of rows and columns. • The intersection of each row and column is a table cell. • The space between cells is cell spacing. • The distance between content and cell borders is cell padding. • Backgrounds can be colored or contain a background image. • Borders can be colored or invisible.
Table Dimensions • By default, tables will shrink to fit their contents. • Fixed widths are indicated in pixels and content will expand to fit the content. • Proportional widths are indicated in percentages and are relative sizes.
Table Dimensions…/2 • Manually resize a selected table by dragging its table selection handles. table selection handles
Table Code • Basic tables use table tags (<table>). • Rows use table row tags (<tr>). • Cells use table data cell tags (<td>). • Empty table cells contain a nonbreaking space ( ) to prevent empty cells from collapsing. HTML code and table
Using Tables to ControlPage Layout • Designers try to create layout tables that will maintain their design integrity when viewed across different browser scenarios by using tables with: • fixed widths • proportional widths • a combination of both fixed and proportional widths
Fixed-Width Tables • Fixed-width tables maintain their appearance when viewed using different screen and browser combinations. • On large screens, there can be a lot of wasted space next to or on either side of the table. • On smaller screens, a portion of the table might disappear off the right side of the browser window.
Proportional-Width Tables • The table maintains its relative dimensions regardless of the screen and browser combinations. • The designer loses control over lines and spacing as the table and/or column widths stretch or decrease.
Combination Tables • Tables that contain a combination of fixed and proportional widths are a common compromise solution. • Use fixed widths to maintain control over segments that need to remain stable. • Use proportional widths to allow other segments to flow to fit browser windows.
Making Borders Visible click View point to Visual Aids make sure there is a check mark to the left of Table Borders
Selecting Table Elements • Dreamweaver MX 2004 features an Expanded tables mode that temporarily adds cell padding and spacing. Expanded button exit link expanded table
Selecting Table Elements…/2 • Another method to enable Expanded Tables mode is to use the Menu bar. click View point to Table Mode make sure there is a check mark to the left of Expanded Tables Mode
Selecting Tables Using the Mouse • Click a table’s upper or lower border. • The insertion point will transform into a small table grid icon. table grid icon
Selecting Rows and Columns Using the Mouse • Place the pointer on the outer border of a row or column. • After the selection arrow appears, you can click the mouse button to select. selection arrow selected row
Selecting Rows and Columns Using the Keyboard • Click inside a cell, and without releasing the mouse button, drag the pointer across the cells to be selected. • Click inside a cell, hold down the Shift key, and then click inside another cell to select all cells located between the first and last cell selected.
Selecting Nonadjacent Cells • Hold down the Ctrl key, click inside one cell, and then click inside the other cells to be selected. • Click inside a cell that is already selected to deselect it. selected nonadjacent cells
Navigating in Tables Usingthe Tab Key • Pressing the Tab key moves the insertion point to the next cell. • The insertion point travels in a left-to-right, top-to-bottom direction. • Holding down the Shift key while pressing the Tab key reverses the tab direction. • Pressing the Tab key creates a new row when the last cell in a table is reached.
Navigating in Tables Usingthe Arrow Keys • The Up, Down, Left, and Right Arrow keys can be used to navigate inside a table. • The arrow keys first navigate within a cell’s contents and then move on to the next cell. • The arrow keys cannot be used to create new rows.
Using the Property Inspector to Format • When a table is selected, the Property inspector opens in Table Property inspector mode. • When a cell is selected, the Property inspector opens in Table Cell Property inspector mode. • Cell and row background formatting will override table formatting. • The order of precedence is cell, row, table.
Table Property Inspector type a name or number to identify a table specify the number of rows and columns specify the width and height in pixels or percent specify a border color specify a background color use the dimension buttons to clear heights and convert widths specify a background image file location
Table Property Inspector…/2 specify the space between a cell’s contents and its borders specify the space appearing between adjacent cell borders specify table alignment specify table border width in pixels display the CSS class style applied to table
Table Cell Property Inspector specify the horizontal alignment prevents text from wrapping to a new line specify the width and height in pixels or as a percentage specify the vertical alignment
Table Cell Property Inspector…/2 center and bold cell text, and useto create table headers specify a background image file location split a selected cell specify the border color merge selected cells, rows, or columns specify the background color