WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • horizontal rule problem in code page
  • Print
Pages: [1]   Go Down

Author Topic: horizontal rule problem in code page  (Read 5486 times)

paxil

  • Guest
horizontal rule problem in code page
« on: May 23, 2008, 07:50:27 AM »
dear all,

im outputting a table using code page in website baker. the display is fine and everything is working well. But when i try to echo a horizontal rule it ends up ruling through the whole page.

the code which im using is as follows :    echo "<hr width='50%' />";


despite using other possibilities of echo statements for horizontal rule it still runs through the whole page.

I have attached a screenshot of my website baker page to display where i want the horizontal rule to be of a smaller width. i would appreciate the help of anyone out there.

___________________ ___________________ ___________________ ___________________ _________


the code i have implemented to display the output is as follows :-


$qry = "Select * from familyname
            ORDER BY family_name, head_givenname ASC";
                 
             
       
    $records = mysql_query($qry) or die('Query failed: ' . mysql_error());
   
        echo "<table width='60%' border= '0' bgcolor='#CCCCCC'>";
        echo "<tr>";
        echo  "<th width='25%'>Family Details</th>";
        echo  "<th width='35%' colspan='2'>Residential Address</th>";
        echo  "<th width='20%'>Residential Phone</th>";
        echo  "<tr>";
        echo "</table>";
 
    while ($line = mysql_fetch_array($records, MYSQL_ASSOC))

    {
                echo "<hr width='50%'>";
                echo "<table width='60%' border= '0.5'  bgcolor='white' cellpadding='2' cellspacing='2'>";
        echo "<a href=Displayfamilydetails.php?familynum=" . $line['family_num'] .
            ">" . $line['family_name'] . "</a></td>";
        echo "<td width='20%'>" . $line['head_givenname'] . "</td>";
                echo "<td width='35%'>" . $line['residential_address'] .",". $line['surburb']." ".$line['city'] . "</td>";
                echo "<td width='20%'>" . $line['residential_number'] . "</td>";
               
            echo "</table>";
     }




[gelöscht durch Administrator]
« Last Edit: May 23, 2008, 07:52:52 AM by paxil »
Logged

doc

  • Guest
Re: horizontal rule problem in code page
« Reply #1 on: May 23, 2008, 05:07:30 PM »
http://webdesign.about.com/od/css/a/aa010307.htm
Logged

paxil

  • Guest
Re: horizontal rule problem in code page
« Reply #2 on: May 24, 2008, 01:22:49 AM »
thanx doc heaps for the help. it so worked well.. :-D :-D :-D :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • horizontal rule problem in code page
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2