Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    layout correction

    Here is template page I use to display search results(perl script). Its display results inside a table. I just want correct a little page appearance: to reduce a little font size inside table itself; set page background color RGB #C0C0C0, and table background-color: white. Just not sure where correct this on a right place.
    Also, not sure is this first line on right place?
    <!-- "start template" -->
    <template>

    Code:
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <font face="Verdana" size="2"><b>
    Total number of records:</b> <<#_total>><b> Matching records:</b> <<#_matches>><br>
    <br>
    <!-- "start template" -->
    <template>
    
    <table border="1" cellpadding="1" cellspacing="0" width="100%">
    <tr>
    <td>Artist</font></td>
    <td>Albums</font></td>
    <td>Year</font></td>
    <td>Size Mb</font></td>
    <td>Mode</font></td>
    <td>Kbps</font></td>
    <td>Location</font></td>
    <td>Time</font></td>
    <td>Track</font></td>
    <td>Style</font></td>
    </tr>
    
    <template>
    <tr>
    <td><<Artist>></td>
    <td><<Albums>></td>
    <td><<Year>></td>
    <td><<Size Mb>></td>
    <td><<Mode>></td>
    <td><<Kbps>></td>
    <td><<Location>></td>
    <td><<Time>></td>
    <td><<Track>></td>
    <td><<Style>></td>
    </tr>
    </template>
    
    </table>
    
    <!-- "end template" -->
    <b>
    Total number of records:</b> <<#_total>> <b>Matching records:</b> <<#_matches>></font>
    </body>
    </html>
    Plasma

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In the head of the document or in an external file:
    Code:
    body {
    font-size: 12px;
    background-color: #C0C0C0;
    }
    table {
    background-color: white;
    }
    You can dump those font tags too you have in there and just do it via CSS, a good reference can be found at:
    http://www.w3schools.org

    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe this?:

    Code:
    <html>
    <head>
    <title></title>
    <style type="text/css">
    body td {font-family: Verdana; }
    body {font-size: x-small; background-color: #C0C0C0; }
    td {font-size: xx-small; background-color: #FFF;}
    </style>
    </head>
    <body>
    <!-- "start template" -->
    <template>
    <b>Total number of records:</b> <<#_total>><b> Matching records:</b> <<#_matches>>
    <br>
    <br>
    
    <table border="1" cellpadding="1" cellspacing="0" width="100%">
    <tr>
    <td>Artist</font></td>
    <td>Albums</font></td>
    <td>Year</font></td>
    <td>Size Mb</font></td>
    <td>Mode</font></td>
    <td>Kbps</font></td>
    <td>Location</font></td>
    <td>Time</font></td>
    <td>Track</font></td>
    <td>Style</font></td>
    </tr>
    
    <template>
    
    <tr>
    <td><<Artist>></td>
    <td><<Albums>></td>
    <td><<Year>></td>
    <td><<Size Mb>></td>
    <td><<Mode>></td>
    <td><<Kbps>></td>
    <td><<Location>></td>
    <td><<Time>></td>
    <td><<Track>></td>
    <td><<Style>></td>
    </tr>
    </template>
    
    </table>
    
    <b>
    Total number of records:</b> <<#_total>> <b>Matching records:</b> <<#_matches>></font>
    </template>
    <!-- "end template" -->
    </body>
    </html>
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #4
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is this something for databases I don't know about? Why are there closing font tags in the table cells
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #5
    New Coder
    Join Date
    Mar 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, that was ready template for perl database, its intended to display search result. I mean reduce a little font size inside table; top and footer fonts ( <font face="Verdana" size="2"> Total number of records ) was OK.
    Last edited by plasma; 09-27-2004 at 06:02 PM.
    Plasma


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •