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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tables and cellspacing; 0 for vertical only?

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
Is it possible to set the vertical spacing to 0 but keep the horizontal at 1 in a table?

Thanks!
 
cell spacing is all around, cell padding is horizontal...so you could set cell spacing to 0, cell padding to 1 (or is it the other way round?) Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
 
I use a 1 pixel border for the bottom of a cell, and the 1 pixel border for the upper part of the cell below it to create a double-rule. The problem is the gap that it leaves between cells on the same row. If I set cellspacing to 0, the double rule is one thick black line; thats no good. If I set cellpadding to 0, I still see the gap.
 
You could insert a nested table on each row -- with no spacing at all --

Where each row of the table would contain another table, where your content would go --

Now that wouldn't get rid of the stuff on the far right and left of the row, but it would alleviate spaces in the middle of the cells.

Would that work for you?
penny.gif
penny.gif
 
Good suggestion, but it won't work in this case.
The table in question is actually emulating a sreadsheet, with the values coming from a database. I cant use a singled cell table in the rows of the existing table cuz of alignment reasons. There are five cells in these rows, only the last three have the double rule across them, and of course, they represent 3 columns of numbers.

Thanks for the post!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top