I need border

Discussion in 'HTML & Website Design' started by promotingspace.net, Oct 3, 2007.

  1. #1
    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
     
    promotingspace.net, Oct 3, 2007 IP
  2. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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:
     
    promotingspace.net, Oct 3, 2007 IP
  3. MetaTitan

    MetaTitan Peon

    Messages:
    141
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    MetaTitan, Oct 3, 2007 IP