What's new

Anyone know HTML tables (spacing columns)? (1 Viewer)

jeff lam

Screenwriter
Joined
Jun 4, 2001
Messages
1,798
Location
San Jose, CA
Real Name
Jeff Lam
I'm new to HTML and I'm writing up a description and I want to list things in three columns but they are too close together. How can I space them out a little?

Example:



[*]column 1[*]column 1

[*]column 2[*]column 2

[*]column 3[*]column 3




See how the columns are too close together? I would like to space them out a little bit. How do I do this?

Here is my code. (use () in place of )
(center)
(table)
(TD)(b)(h3)
(li)column 1
(li)column 1
(/td)
(td)(b)(h3)
(li)column 2
(li)column 2
(/td)
(td)(b)(h3)
(li)column 3
(li)column 3
(/td)
(/table)
(/center)
 

John_Berger

Senior HTF Member
Joined
Nov 1, 2001
Messages
2,489
Add WIDTH={value} to the (TABLE) parameter.

To make the table 500 pixels in width, the value must be (TABLE WIDTH=500).

To make the table take up 75% of the width (to compensate for people with different resolutions), the value must be (TABLE WIDTH=75%).

Try each value and see what the results are.
 

Marshall Alsup

Second Unit
Joined
Jul 9, 2001
Messages
497
You can also add width to your (td) tags. You'd do this to force one column to be wider thant he data inside it.

-Marshall
 

Andre F

Screenwriter
Joined
Dec 9, 2000
Messages
1,486
I've been a fan of div tags lately. They have some other issues but they make placement VERY easy.
-Andre F
 

DonRoeber

Screenwriter
Joined
Feb 11, 2001
Messages
1,849
I'm with Andre. It's all about div & span tags, and using stylesheets wherever you can. I just redid my site, and kept my use of tables to an absolute minimum. Sure, it breaks Netscape 4, but I don't mind telling people to use a better browser than that.
 

Users who are viewing this thread

Sign up for our newsletter

and receive essential news, curated deals, and much more







You will only receive emails from us. We will never sell or distribute your email address to third party companies at any time.

Forum statistics

Threads
357,059
Messages
5,129,830
Members
144,281
Latest member
papill6n
Recent bookmarks
0
Top