Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fixing table sizes in HTML

Status
Not open for further replies.

Molenski

IS-IT--Management
Joined
Jan 24, 2002
Messages
288
Location
DE
Hi oh great ones,

Anyone know the HTML that will fix a table size (this isn't really anything to do with Dreamweaver, but I didn't know where else to come!!!)

So for example, is there another tag like table="fixed" that could go within.....

<table width=&quot;600&quot;><tr><td></td></tr></table>

.....to fix the size to 600.

I would explain exactly why I need this to happen, but it would take too long.

If this doesn't make sense or I am talking crap, pse let me know!!!

Take Care and respect to all me Homey's.

[pipe]
 
Hi molenski!

You'd better explain :-)
So it'll be easier to understand what you exactly need and give you best advice. Good Luck! :-)
 
Here is something I read somewhere. It might help.

The TABLE tag defines a table. Inside the TABLE tag, use the TR tag to define rows in the table and use the TD tag to define table cells.

Syntax

<TABLE ALIGN=&quot;left|right|center&quot; BGCOLOR=&quot;color&quot; BORDER=&quot;value&quot; CELLPADDING=&quot;value&quot; CELLSPACING=&quot;value&quot; HEIGHT=&quot;height&quot; WIDTH=&quot;width&quot; COLS=&quot;numOfCols&quot; HSPACE=&quot;horizMargin&quot; VSPACE=&quot;vertMargin&quot;>.... </TABLE>

Attributes

ALIGN specifies the horizontal placement of the table.

LEFT aligns the table on the left (the default). The content following the table flows to the right of the table.
RIGHT aligns the table on the right. The content following the table flows to the left of the table.
CENTER aligns the table in the center. Content does not flow on either side.

BGCOLOR specifies the color of the background for the table. This color can be overridden by a BGCOLOR tag in the TH, TR, or TD tags.
BORDER specifies the thickness, in pixels, of the border to draw around the table. The value should be an integer. A value of 0 means the table has no border. You can also supply the BORDER attribute without specifying a value for it to indicate that the table has a border of the default thickness.
CELLPADDING specifies the amount of space, in pixels, between the border of a cell and the contents of the cell. The default is 1.
CELLSPACING determines the amount of space, in pixels, between individual cells in a table. The default is 2.
HEIGHT specifies the height of the table. The default is the optimal height determined by the contents of each cell. The height value can be a number of pixels, given as an integer, or a percentage of the height of the page or parent element. The table is scaled to fit the specified height and width.
WIDTH specifies the width of the table. The default is the optimal width determined by the contents of each cell. The width value can be a number of pixels, given as an integer, or a percentage of the width of the page or parent element. The table is scaled to fit the specified height and width.
COLS specifies how many virtual columns of equal width fit in the width of the window. Each actual column in the table occupies a virtual column. You would typically set the COLS attribute to be equal to the number of columns in the table to indicate that all the columns in the table have the same width.
HSPACE specifies the distance between the left and right edges of the table and any surrounding content.
VSPACE specifies the distance between the top and bottom edges of the table and any surrounding content.
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top