SiteSpinner Tutorials banner
Virtual Mechanics Logo
SiteSpinner
®
Tables

This tutorial assumes that you are already familiar with many basic operations including those on Text, Titles and Objects. Here we cover tables:

Introduction
Create a table
Hot table tips
Table uses
Tables for lists
Tables for navigation
Tables for photo galleries
Tables from other programs



Introduction

A table provides a convenient means to group, position and align objects horizontally and vertically. The Table Editor supports most table operations including spacing, padding, borders, column spans, row spans and titles. You can also apply color and alignment to the entire table or to individual cells.

Before getting heavily involved in tables, make sure you really need them. Once upon a time, tables were necessary for page layout. However, SiteSpinner with CSS (Cascading Style Sheets) has a better alternative -- just drag and drop objects onto your workpage and let SiteSpinner worry about all the positioning details. But tables do have their uses still.

So assuming you really do want a table, here we go ...
 


Create a table

Create a new table by selecting the Blue Grid button on the Tools toolbar at the left or from the Object menu. Since the Table Editor is fairly large, you may wish to move the editor or this text in order to follow the instructions.
SiteSpinner logo
Table button
Table Editor
...
Your table and Table Editor should look something like these:
Text Editor button
Text Editor Save and Close
Title Editor button
Quick Editor button
This text spans two columns
This title spans two rows
   
Table Editor
Table thumbnail
Table Editor cell thumbnail
...
Table settings
...
This text spans two columns
This title spans two rows
   
Group/ungroup buttons
Hot table tips

To add more than one object to a cell, make a permanent group out of the objects first. Buttons to do this are on the bottom toolbar.

To edit the contents of a cell, right-click the cell and select the appropriate edit function (e.g., Edit Text, Edit Geometry).

To keep an object from breaking free from a table when you're clicking and dragging to move the table, hold the Alt key while you drag. Similarly, to keep an object from becoming part of a table when you are moving it on the page, press and hold the Alt key while you are dragging it.

To edit an object in a table cell, double-click the thumbnail of the object as it appears in the table. This opens the correct editor for the object concerned.

To move an object between cells, drag the thumbnail of the object to the new thumbnail cell. (In the pane at the bottom right of the table.)

If you are trying to drop an object into a small table cell, and it won't accept the drop, turn snap grid off (or move the table slightly).

Use the Table Editor Help button for more detailed instructions on individual operations.


Table uses

When it comes to tables, simplicity is a virtue. Complicated tables lead to complicated problems! If you find yourself in this situation, step back and reconsider. You don't need tables for page layout -- perhaps you don't need tables at all?  Or, perhaps you could split your data up into two or more simpler tables?

Tables are particularly useful and economical where you have a lot of fairly simple but repetitive data. You can have up to 99 rows and 99 columns which allows for a lot of repetition!  Following are three practical uses for tables:




Tool: draw rectangle
Rectangle
Tool: Draw Circle/Ellipse
Ellipse
Tool: draw curve
Curve
Tables for lists

Tables are useful for collections of similar objects. Here, each table cell has either an image or a text object. The images and text could have links on them, but here they don't.
Tables for navigation

Below are a few treatments you can give your navigation tables. The text is individual text objects, centered and scaled down to y=0.8, each with a link. Change both the text color and the table background to match your color scheme.
Tables for photo galleries

Tables have a built-in range of decorative treatments. Use this to your advantage in photo galleries.

Lake
Lake
Lake (14K)
The first image is a thumbnail of a popup. The second is the same thumbnail and link but with a text caption added. Two objects. You can have only one object in a table cell but that object may be a group. So make a permanent group of the pair and place the group in the table cell.

If you find the popup link stops working in the table cell, set re-render off and anti-alias off for the group after you place it in the table. (Quick Editor > Object tab.) The default state for a group in a table is for re-render on -- meaning SiteSpinner creates a new image of thumbnail and caption. In this case even without the link, we don't want re-render -- a jpg image and text caption, don't go together well re-rendered as a jpg, the most efficient format for photos.

Once you set re-render off for the first group, the table will reuse that same setting for any subsequent groups.
Quick Editor button
Tables from other programs

If you create a table in a word processor or spreadsheet there is no easy way to transcribe the data into a SiteSpinner table as described above. The best option is to have the other program export its output as HTML or as a "webpage".

The easiest way is to then use the output page in a i-frame.

If you like to fiddle with code, another way is to use the table code as a Code Object. Identify the code between the <TABLE> and </TABLE> HTML tags of the output file. Copy that code, including the TABLE tags into the code object. You may need to locate formatting code too (perhaps CSS) and add that as well -- but we'll leave that as "an exercise for the reader"!