Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2004, 06:43 PM   PM User | #1
plasma
New Coder

 
Join Date: Mar 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
plasma is an unknown quantity at this point
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
plasma is offline   Reply With Quote
Old 09-24-2004, 08:05 PM   PM User | #2
bradyj
Senior Coder

 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2,469
Thanks: 0
Thanked 0 Times in 0 Posts
bradyj is an unknown quantity at this point
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 : ::::.:...
bradyj is offline   Reply With Quote
Old 09-24-2004, 08:10 PM   PM User | #3
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
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.
Roy Sinclair is offline   Reply With Quote
Old 09-24-2004, 08:30 PM   PM User | #4
bradyj
Senior Coder

 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2,469
Thanks: 0
Thanked 0 Times in 0 Posts
bradyj is an unknown quantity at this point
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 : ::::.:...
bradyj is offline   Reply With Quote
Old 09-27-2004, 11:27 AM   PM User | #5
plasma
New Coder

 
Join Date: Mar 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
plasma is an unknown quantity at this point
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.
__________________
Plasma

Last edited by plasma; 09-27-2004 at 06:02 PM..
plasma is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:29 PM.


Advertisement
Log in to turn off these ads.