Hi I coded a banner and need a better looking for it. there's a sample at: http://takfekr.com/test2.html at the first step, i'm unable to define a border for it by changing 0 to 1. how can i fix it? thanks
i for got, this is the code: <table width="<?php echo $width?>" border=0> <tr> <td align=left><font size=1>Ads by Textly.fr</font></td> <td align=right ></td> </tr> <tr> <table border=0 width=100%> <?php while($row2=mysql_fetch_array($result2)){ $listing=$row2['lid']; $advertiser=$row2['advertiser']; $title=$row2['title']; $url=$row2['url']; $displayurl=$row2['display']; $description=$row2['descr']; //generate link: //$link="http://textly.fr/clicks.php?adid=$adid&publisher=$publisher&advertiser=$advertiser&listing=$listing"; $link="http://php.jothost.com/adsense/clicks.php?adid=$adid&publisher=$publisher&advertiser=$advertiser&listing=$listing"; // if 468 or 760 then <td> else <tr> if ($siz==1 ) { ?> <td bgcolor="<?php echo $backgroundc ; ?>"><a href="<?php echo $link ?>" target=_blank><div> <font id="titletext_fr_ad" color="<?php echo $titlec; ?>" onmouseover="this.style.color='<?=$mouse?>'" onmouseout="this.style.color='<?=$titlec?>'" > <?php echo $title; ?></font><br> <font color="<?php echo $descriptionc; ?>" > <?php echo $description; ?></font><br> <font color="<?php echo $urlc; ?>" > <?php echo $displayurl;?></font></div></a></td> <?php } else if ($siz==2 ) { ?> <tr bgcolor="<?php echo $backgroundc ; ?>"><a href="<?php echo $link ?>" target=_blank><div> <font id="titletext_fr_ad" color="<?php echo $titlec; ?>" onmouseover="this.style.color='<?=$mouse?>'" onmouseout="this.style.color='<?=$titlec?>'"> <?php echo $title; ?></font><br> <font color="<?php echo $descriptionc; ?>" > <?php echo $description; ?></font><br> <font color="<?php echo $urlc; ?>" > <?php echo $displayurl; ?></font> </div></a> </tr> <?php } } ?> </table> </tr> </table> PHP:
Try replacing the opening <table> tag with this, <table style="width: <?php echo $width?>px; border: 1px solid #000000;"> Code (markup): That should give you a little more flexibility with the style. If your $width variable has a % or a px already on it, delete the px I added.