Website Templates Table Editing

Resizing Template Tables


At some point while editing your template you may want to change the width of a table or the width of one of the areas, or perhaps your page is not properly filling the computer screen. Here are some tips for doing this.


HTML 5 Example
Information below does not apply to 2013 and later HTML5 templates. See Table Centering and Borders in HTML5 for HTML5 templates.


HTML 4.01 Example
Tip: How to preview tables (HTML 4.01)
Using Notepad: If you are editing using Notepad or a plain text editor for editing, find any table code in the HTML page, this would be some code that starts out with <table border="0" or something of that nature (click the "view visual" below). Make the border="1" so you can see an outline of the table you plan to edit. There are many tables on most pages so it may take a few tries to find the area you wish to edit. Have your browser and Notepad open at the same time so you can preview quickly. Do a small edit, then refresh your browser to see the results.

Using any HTML editor: If you are editing using any basic HTML editor, there should be an option to show all "tags" or if you select an area you should see the table outline. If this is not working, switch to "HTML view" or "edit HTML" and follow the Notepad previewing trick seen above.

Changing one of the table widths and sizes
Template table widths and margins and padding may be defined in the template css file using a class named ".content-width" or "#maincontent" or a similar class name. You can search the css file for "content" to locate this code.

View

If the main page content width is not defined in the css file then it will be included in the HTML pages in the table tag areas.

When you are changing a table width in the HTML pages, you can either define the width in percents: width="90%" or you can define the table width in pixels: width="450". Do not exceed 750 pixels for your total page width so you will be properly visible on computers running 800 x 600 resolution. Click the "view visual" below to see how and what to edit to change a table.

View

If you adjust the table width and it does not update, code for the width may also be defined in your template CSS file.

Whitespace left and right
In some templates table right and left spacing may be defined in the CSS file. The CSS classes may be "rightspace" or "whitespace" or something similar. You can try a search for "space" in the CSS file to locate these classes.

NOTE: About resizing a sidebar
If you are resizing a sidebar area, this may not be an easy edit. You may need to edit some graphics in your "picts" folder and you may also need to edit some table widths in one of the .js files such as the sidebar.js or the menu.js, as well as code in your CSS file. You may also need to edit other tables on the page to adjust to the new sidebar sizes.

NOTE: Changing table sizes in a .js file
.js files are used for the header, menu, copyright and sidebar on many Allwebco templates. To change a table width in one of the .js files. Follow the above directions just as if you were editing a normal HTML page. You can still make a border="1" to preview the table and you can still change the table widths in pixels or percents.

How to locate code that defines table widths:
There are a few factors that can define the width or height of a table or table cell on a template HTML page or inside a .js file.

Tables sizes can be defined by: code in the global .css file, spacers in the HTML pages, widths in the HTML pages, images on the HTML page or in a .js file.
  1. Check for widths in your .css file, or a section for page widths and heights.

  2. Search for the following in your HTML pages:

    class=

    ...this will tell you any classes used in the HTML page for possible widths that will be in the global .css file. Match the class name in the HTML page with the class name in the .css file. Search for...

    spacer.gif

    ...this will show you any spacers in the page. Check the spacer widths. Search for...

    width=

    ...this will tell you any widths used in the HTML code. CSS code overwrites any widths in the HTML pages so also check for a class along with the width. There may, or may not, be a class included.
Advanced users: Splitting / adding table cells:
In any template you can add more table cells or split cells to include more columns or rows. This is not supported by Allwebco. The following sites have help available for table editing:

Lissa Explains it All, Tables (Beginner)

Google search for "editing html tables"





Related Topics:
Editing The HTML Pages
Choosing Software


Software for Editing:
Software Choices


Allwebco Template Support


Allwebco Website Template Support


See Also...
Table Widths
Center Logo & Menu
Table Margins
Fixed Page Width
Add a Sidebar


HTML Websites
Lissa Explains it All



Allwebco Web Templates
Complete websites with built in scripts.
AllwebcoDesign.com
Website Template Support
Free Javascripts
Free scripts for any website or template.
Allwebco-Templates
Web Template Support
Mobile Web Templates
Mobile configured HTML5 templates.
AllwebcoDesign.com
Website Template Support
Shopping Cart Templates
Professional templates with built-in Paypal.
AllwebcoDesign.com



Website Template Support
Website Template Support