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

ARGH!!! can't get rid of extra line!! 3

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
<tr>
<td width=&quot;136&quot; height=&quot;6&quot;>OEM</td>
<td width=&quot;454&quot; height=&quot;6&quot;>00+ Acura CL</td>
<td width=&quot;114&quot; height=&quot;6&quot; align=&quot;center&quot;>349.00</td>
<td width=&quot;102&quot; height=&quot;19&quot; align=&quot;center&quot;>
<form method=&quot;POST&quot; action=&quot;../cart.asp&quot; target='mycart'>
<input type='hidden' name='cmd' value='_cart'>
<input type='hidden' name='business' value='myemail@cynoptics.com'>
<input type='hidden' name='item_name' value='MY ITEM'>
<input type='hidden' name='item_number' value='CFH000'>
<input type='hidden' name='amount' value='524'>
<input type='hidden' name='return' value=' <input type='hidden' name='cn' value='Additional Information/Comments'>
<input type='hidden' name='currency_code' value='USD'>
<input type='hidden' name='add' value='1'>
<center><input type='image' border=&quot;0&quot; src=&quot;images/addcart_s.jpg&quot; name='submit' alt='Add to Cart'></center>
</form>
</td>
</tr>

Cyprus
 
sorry! meant to just preview that... wrong button.

I've got an extra line in my page and I can't fugure out why. This is an &quot;add to cart&quot; button that's on a site I'm creating and on FrontPage (yes i know FP is evil but it was all i had) looking at it in normal view it shows it just fine but when i preview it, it shows me that stupid extra line right below the button. I have NO idea what it is but it's been plaguing me for literally MONTHS.

you can check out what i mean temporarily here:
and scroll down... its the &quot;add to cart&quot; buttons under the cars.

Thanks a lot, thsi one has really got me and I'm sure its something stupid that I'm not catching.

Cyprus
 
what extra line?

Known is handfull, Unknown is worldfull
 
right below the &quot;add to cart button&quot; in the cell. The cell is only supposed to be as high as the button is high but whenever i put in that <form> </form> code it adds extra blank space below the button that i can't get rid of

Cyprus
 
<tr valign='top'>

does this work?


Known is handfull, Unknown is worldfull
 
well doesnt it align all the contents at the same position... the extra line u see becuause the gif is bigger than the font...

Known is handfull, Unknown is worldfull
 
hey i forgot... do u mean the space on tht top?

Known is handfull, Unknown is worldfull
 
I mean the big space under the button. like how the button is stuck against the top and there's a real big space below it. I don't want the real big space below it. Either that or I want it centered if that's possible but with all those hidden values I can never get it working. The add to cart button... when im designing it, it doesn't appear that way. but when i actually look at the page that big space appears.

Cyprus
 
why not put each valu in different <td>s?

the problem as i said is with the text and image alignment...

Known is handfull, Unknown is worldfull
 
ok i kind of get what you're saying but the jpg is no bigger than the outsides of the green line. How do I fix the text/image alignment thing? i mwan if I can just get that button to be centered or SOMETHING to make it not look so messed up... ??

Cyprus
 
This will make your code a bit of a hassle to handle, but put all of the form code on one line with no linebreaks.
 
Just tried putting the code into one line. didn't work...

I can't figure it out! if anything if I could just have it centered or SOMETHING so it wouldnt look so blatantly bad!



Cyprus
 
Well, you should be able to put
Code:
valign=&quot;middle&quot;
in your
Code:
<td>
tag at least.
 
it's the <form> tag adding the line break.

to keep it from doing this, move it outside the <td> - i use this format with no line break problems:

<table>
<form>
<tr>
<td></td>
</tr>
</form>
</table>



=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Oh, yeah, I forgot about that. Yup, that should do the trick. Good call, jemminger.
 
Jemminger, you're a lifesave. That hadn't crossed my mind for a full month and then some. I owe ya one!

Cyprus
 
Moving the <form> outside the <td> will mean that your page probably won't validate - which may cause you problems in the future. Try using css instead:
[tt]
<form style=&quot;margin:0&quot;>
[/tt]

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top