td height

Discussion in 'HTML & Website Design' started by promotingspace.net, Jul 22, 2009.

  1. #1
    Hi
    I have a table and in its first column I need to use a form (some hidden fields and a button) but when I place the <form> tag in the td, then <td> height is increased and makes it look bad
    I uploaded it here. a simple html page: http://khojasteh.org/table.html
    How can I fix it
    Any help would be appreciated
     
    promotingspace.net, Jul 22, 2009 IP
  2. jinnah

    jinnah Active Member

    Messages:
    198
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    i suggest you to avoid those table based forms. rather use CSS controlled forms.
     
    jinnah, Jul 22, 2009 IP
  3. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks but I don't know enough CSS to make that complicated table
    I put the code and snapshot here so you can check it easier:
    [​IMG]

    <table width="735" align="center" bgcolor="#ffffff" border="1" cellpadding="4" cellspacing="2">
    
    <tbody><tr><td align="center">ordinary height</td><td><font size="-2">(0 Reviews)</font></td><td><font size="-2">Action Video Productions</font></td><td><font size="-2">La Mesa</font></td><td><font size="-2">619-588-8588</font></td><td><font size="-2"><a href="http://www.4avideo.com/" class="gray">Website</a></font></td><td align="center">&nbsp;&nbsp;</td><td>&nbsp;&nbsp;</td></tr>
    
    
    <tr><td align="center" height="1"><div id="txtHint11"><form style="height:inherit"><input name="vname" id="vname" value="info@studiomio.com" type="hidden"><input name="myname" id="myname" value="matt@email@wemail.com" type="hidden"><input name="txthintid" id="txthintid" value="11" type="hidden"><input value="Save" onClick="saveinfo(vname.value,myname.value,txthintid.value)" type="button"></form></div></td>
    <td><font size="-2">(0 Reviews)</font></td>
    <td><font size="-2">Studio Mio</font></td>
    <td><font size="-2">Covina</font></td>
    <td><font size="-2">626-915-5534</font></td>
    <td><font size="-2"><a href="http://www.studiomio.com/" class="gray">Website</a></font></td>
    <td align="center">&nbsp;&nbsp;</td><td>&nbsp;&nbsp;</td></tr>
    
    
    
    <tr><td height="34" align="center"><div id="txtHint11"><form><input name="vname" id="vname" value="info@studiomio.com" type="hidden"><input name="myname" id="myname" value="matt@email@wemail.com" type="hidden"><input name="txthintid" id="txthintid" value="11" type="hidden"><input value="Save" onClick="saveinfo(vname.value,myname.value,txthintid.value)" type="button"></form></div></td>
    <td><font size="-2">(0 Reviews)</font></td>
    <td><font size="-2">Studio Mio</font></td>
    <td><font size="-2">Covina</font></td>
    <td><font size="-2">626-915-5534</font></td>
    <td><font size="-2"><a href="http://www.studiomio.com/" class="gray">Website</a></font></td>
    <td align="center">&nbsp;&nbsp;</td><td>&nbsp;&nbsp;</td></tr>
    
    <tr><td height="20" align="center" ><div id="txtHint16"><form>
      
        <input name="vname2" id="vname2" value="jack@4avideo.com" type="hidden">
        <input name="myname2" id="myname2" value="matt@email@wemail.com" type="hidden">
        <input name="txthintid2" id="txthintid2" value="16" type="hidden">
        <input value="Save" onClick="saveinfo(vname.value,myname.value,txthintid.value)" type="button"></form></div></td><td><font size="-2">(0 Reviews)</font></td><td><font size="-2">Action Video Productions</font></td><td><font size="-2">La Mesa</font></td><td><font size="-2">619-588-8588</font></td><td><font size="-2"><a href="http://www.4avideo.com/" class="gray">Website</a></font></td><td align="center">&nbsp;&nbsp;</td><td>&nbsp;&nbsp;</td></tr>
    </tbody></table>
    HTML:
     
    promotingspace.net, Jul 23, 2009 IP