Welcome to WebmasterWorld Guest from 184.73.122.162

Forum Moderators: incrediBILL

Message Too Old, No Replies

Paypal buttons and Firefox

Can't get rid of extra space between buttons

     
10:46 pm on Jan 8, 2008 (gmt 0)

New User

5+ Year Member

joined:Jan 8, 2008
posts: 2
votes: 0


I'm having difficulty placing PayPal buttons in tables...

There is an extra space between my Paypal buttons in Firefox in a table.

I found that if I set up my </form> tag this way:
</td></form/></tr>
it works great in Internet Explorer.
but it didn't help me in Firefox.

Any suggestions?

Thanks!

12:44 am on Jan 9, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Welcome aboard Karey, what you have there is invalid HTML - with the closing </form> between </td> and </tr>. It's an old hack to get forms to play along, but even if it works it's invalid.

What you should try is something like this:

<form class="payPal">
<table><tr><td><img></td></tr></table>
</form>

or

<table><tr><td>
<form class="payPal">
<img>
</form>
</td></tr></table>

Then in a style section at the head of your document or in a style sheet,

.payPal { margin:0; padding:0; }

If it's just the image buttons you can do something like this for the images too, but I have a feeling it's the old extra-space after form default.

10:17 pm on Jan 20, 2008 (gmt 0)

New User

5+ Year Member

joined:Jan 8, 2008
posts: 2
votes: 0


Hey, Rocknbil

Your solution worked perfectly. My website guy says that your fix will also work for any forms not just Paypal. We very much appreciate it.
All the best

Thanks, Karey