PDA

View Full Version : Insert paypl button problems


Garyr
09-28-2015, 06:47 PM
HI I am trying to build a website in dreamweaver and when putting a paypal button into a table it shifts everything around. Is there an easier way to construct the page or am I just doing something wrong. It is a site to sell banknotes and coins so tables seemed the best way to go. I would really appreciate your help Thanks

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>afghanistannotepics</title>
<style type="text/css">
<!--
.style1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 36px;
color: #FFFFFF;
}
.style2 {color: #3F2D42}
.style3 {font-size: 48px}
.style5 {color: #FFFFFF}
.style9 {font-size: 48px; color: #3F2D42; }
body {
margin-left: 0px;
margin-top: 0px;
}
.style11 {color: #FFFFFF; font-size: 24px; }
.style14 {color: #FFFFFF; font-size: 20px; }
.style15 {color: #000000}
.style16 {font-size: 14px}
-->
</style>
</head>
<body>
<table width="1366" height="74" border="0" cellpadding="0" cellspacing="0" bordercolor="#3F2D42">
<tr>
<td width="704" height="57" bgcolor="#3F2D42"><span class="style1"><span class="style2">.</span><span class="style9">.</span><span class="style3"><span class="style2">.</span>Maxwells Collectables </span></span></td>
<td width="662" valign="middle" bgcolor="#3F2D42"><span class="style2">.................................................. .........................................</span><span class="style11">AFGHANISTAN NOTES </span></td>
</tr>
</table>
<table width="1366" border="0" bgcolor="#3F2D42">
<tr bordercolor="#3F2D42">
<td width="154">&nbsp;</td>
<td width="185" bgcolor="#3F2D42"><div align="center"><span class="style14">HOME</span></div></td>
<td width="266"><div align="center"><span class="style14">CATAGORIES</span></div></td>
<td width="279"><div align="center"><span class="style14">ABOUT US </span></div></td>
<td width="269"><div align="center"><span class="style14">CONTACT US </span></div></td>
<td width="187">&nbsp;</td>
</tr>
</table>
<table width="1366" height="285" border="0" cellspacing="0" bordercolor="#3F2D42">
<tr>
<td width="400" height="285" bordercolor="#3F2D42" bgcolor="#3F2D42">&nbsp;</td>
<td width="1296"><table width="1315" height="283" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td width="432" height="281"><table width="432" height="115" border="0">
<tr>
<td width="278"><table width="200" border="0">
<tr>
<td><img src="../Maxwellscollectables/banknotepics/Afghanistan/a1a.jpg" alt="a1a" width="270" height="114" longdesc="../Maxwellscollectables/banknotepics/Afghanistan/a1a.jpg" /></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="../Maxwellscollectables/banknotepics/Afghanistan/a1b.jpg" alt="a1b" width="270" height="115" longdesc="../Maxwellscollectables/banknotepics/Afghanistan/a1b.jpg" /></td>
</tr>
</table></td>
<td width="144"><table width="144" border="0">
<tr>
<td width="138"><p class="style16"><span class="style5">..</span>2 AFGHANIS<span class="style5">.</span></p>
<p class="style16"><span class="style5"><span class="style15"><span class="style5">..</span>C</span></span>ONDITION : UNC</p>
<p class="style16"><span class="style5">..</span>YEAR : 2002 </p>
<p class="style16"><span class="style5">..</span>CODE : A1<span class="style5">.</span></p>
<p class="style16"><span class="style5">..</span>PRICE : &pound;2</p></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="YHLCPL22HR2SC">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </div>
</form>
<div align="center">&nbsp;</div></td>
</tr>
<tr>
<td><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="YHLCPL22HR2SC">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </div>
</form>
<div align="center">&nbsp;</div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="441"><table width="438" border="0">
<tr>
<td width="276" height="162"><table width="276" border="0">
<tr>
<td width="270"><img src="../Maxwellscollectables/banknotepics/Afghanistan/a2a.jpg" alt="a2a" width="270" height="115" longdesc="../Maxwellscollectables/banknotepics/Afghanistan/a2a.jpg" /></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="../Maxwellscollectables/banknotepics/Afghanistan/a2b.jpg" alt="a2b" width="270" height="114" longdesc="../Maxwellscollectables/banknotepics/Afghanistan/a2b.jpg" /></td>
</tr>
</table></td>
<td width="152"><table width="151" border="0">
<tr>
<td width="145"><p class="style16"><span class="style5">..</span>2 AFGHANIS<span class="style5">.</span></p>
<p class="style16"><span class="style5"><span class="style15"><span class="style5">..</span>C</span></span>ONDITION : UNC</p>
<p class="style16"><span class="style5">..</span>YEAR : 2002 </p>
<p class="style16"><span class="style5">..</span>CODE : A1<span class="style5">.</span></p>
<p class="style16"><span class="style5">..</span>PRICE : &pound;2</p></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="S97LKDXNZVH6U">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</div>
</form>
<div align="center">&nbsp;</div></td>
</tr>
<tr>
<td><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="DRWH2SABVU9B4">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</div>
</form>
<div align="center">&nbsp;</div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="434"><table width="429" border="0">
<tr>
<td width="423" height="269"><table width="432" border="0">
<tr>
<td width="200" height="343">..<br />
<br />
<table width="200" border="0">
<tr>
<td><img src="../Maxwellscollectables/banknotepics/Afghanistan/a3a.jpg" alt="a3a" width="270" height="115" longdesc="../Maxwellscollectables/banknotepics/Afghanistan/a3a.jpg" /></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="../Maxwellscollectables/banknotepics/Afghanistan/a3b.jpg" alt="a3b" width="270" height="113" longdesc="../Maxwellscollectables/banknotepics/Afghanistan/a3b.jpg" /></td>
</tr>
</table>
<p class="style16">&nbsp;</p> </td>
<td width="222"><table width="156" border="0">
<tr>
<td width="145"><p class="style16"><span class="style5">..</span>2 AFGHANIS<span class="style5">.</span></p>
<p class="style16"><span class="style5"><span class="style15"><span class="style5">..</span>C</span></span>ONDITION : UNC</p>
<p class="style16"><span class="style5">..</span>YEAR : 2002 </p>
<p class="style16"><span class="style5">..</span>CODE : A1<span class="style5">.</span></p>
<p class="style16"><span class="style5">..</span>PRICE : &pound;2</p></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="CNJP2EXWJGKUA">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </div>
</form>
<div align="center">&nbsp;</div></td>
</tr>
<tr>
<td><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="C3LK7L5ZKKW8Y">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </div>
</form>
<div align="center">&nbsp;</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table></td>
<td width="400" bgcolor="#3F2D42">&nbsp;</td>
</tr>
</table>
<br />
</body>
</html>

Tiger
09-28-2015, 08:46 PM
I don't see the problem in your code (I check on dreamweaver and it all seem's fine, Try using a DIV tag instead of tables. :)

edbr
09-29-2015, 02:58 AM
in line styles , no positioning. dont rely on dreamwever to point out errors

Garyr
09-29-2015, 12:58 PM
Hi thanks for your help but i am a bit lost still, i want to use tables but as from the code i have put in here you can see the spaces at the top and bottom of the pages are to big and I cannot seem to reduce them. And when I have a table to put the two paypal buttons in I have a really tricky job centering them. Do you think it is because I am using an old version of Dreamweaver, do you think I should upgrade to CS6? Thanks again

edbr
09-30-2015, 02:25 AM
upgrading dw wont make a difference .
sorry i havent used tables apart from mailings for years.

Tiger
09-30-2015, 07:16 AM
Hi thanks for your help but i am a bit lost still, i want to use tables but as from the code i have put in here you can see the spaces at the top and bottom of the pages are to big and I cannot seem to reduce them. And when I have a table to put the two paypal buttons in I have a really tricky job centering them. Do you think it is because I am using an old version of Dreamweaver, do you think I should upgrade to CS6? Thanks again

Garyr if you can send me your files then i'll fix it for you. :-P