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!

HTML Table Formatting

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi
I'm constructing dynamically tables having data retrieved from back end database.Each record set from the db is contructed as a row in a table along with its field names,something like shown down below,my question is how to fix each cell size so that they remain in one straing line, though they belong to diff tables....? the width of the is 100 %

---------------------------------------
row-1 | row-1 | row-1 |
---------------------------------------
row-2 | row-2 | row-2 |
---------------------------------------

---------------------------------------
row-1 | row-1 | row-1 |
---------------------------------------
row-2 | row-2 | row-2 |
---------------------------------------

---------------------------------------
row-1 | row-1 | row-1 |
---------------------------------------
row-2 | row-2 | row-2 |
---------------------------------------

thanks
shiva
 
I presume you tired simply to dimension each cell, either with percentage or absolute values??
Or perhaps using a transparent image of the required size to specify either width or height??

Have to admit its something I have trouble with too!
Sorry not much help.
Enda
 
If those are seperate tables, you'll need to fix the cell width or take Enda's advice on a 1X1 transparent image then set the image size to the width you want. Either way, you'll have some typing to do.

ToddWW
 
Thanks folks
i'll try, including a transparent img and also with table generator soft,hope it works
shiva
 
Hi shiva,

You can set the width and height of table rows cols like this:

<tr width=&quot;25%/px&quot; height=&quot;25%/px&quot;>
<td width=&quot;25%/px&quot; height=&quot;25%/px&quot;>

also you can you rowspan and colspan to make cells overlap:

for example:

<td colspan=&quot;3&quot;> makes a single cell three normal cols wide
(this means horizontally)

<td rowspan=&quot;3&quot;> makes a single cell three normal rows high
(this means vertically)

I hope this helps,

BobbaFet
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com

Heineken is like making love in a cano... it's f*cking close to water !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top