Coldfusion script to define table row height

Discussion in 'Programming' started by lespaul00, Nov 11, 2007.

  1. #1
    Hello,

    I am creating a table in my website with coldfusion script. Here is my simplified script thus far:

    <table width="90%" border="1" cellspacing="9" cellpadding="0">
    	<tr>
    		<td width="30%"><div align="center"><Heading1</div></td>
    		<td width="30%"><div align="center">Heading2</div></td>
    		<td width="30%"><div align="center">Heading3</div></td>
    	</tr>
    <cfoutput query = "myquery" group="Heading1">
    	<tr>
    		<td><a href="#myquery.LINK#">#myquery.Heading1#</a></td>
    		<td>#myquery.Heading2#</td>
    		<td>#myquery.Heading3#</td>
    	</tr>
    </cfoutput>
    </table>
    Code (markup):
    As you can see, i've been able to modify how the column widths are displayed. The row heights, however, are too large. Meaning, I have a lot more space between each row then i'd like. I tried modifying this with CSS attributes, with no luck (nor do I want to do it this way). Is there code that I can apply, similar to the <td width="">? If so, how can I do it without using a percentage value (since the vertical length of the page shall be infinite, depending on the dynamic results from the database). Thanks!

    Nick
     
    lespaul00, Nov 11, 2007 IP
  2. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Are you sure the undesired space between your rows is not being caused by the cellspacing attribute you have set to "9" ?
     
    unitedlocalbands, Nov 12, 2007 IP
  3. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I changed it to 1 and 0. It seems like it may have made it better, but there is still unwanted space. Any more ideas?

    Thanks. ;)
     
    lespaul00, Nov 12, 2007 IP
  4. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Is your website online where I can see it or are you developing it on your local machine?
     
    unitedlocalbands, Nov 12, 2007 IP
  5. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Unfortunately, developing. And may be for awhile :(
     
    lespaul00, Nov 12, 2007 IP