PDA

View Full Version : Add a border round a template?


Watson
10-06-2004, 10:32 PM
I have a custom html page, and I am looking to add a border round it, and have it as my forum table colours, so when I look at the custom page its not just my background thats there behind the text. Any chance anyone could help me in doing this.

here is what I got in the template already (this is just me testing stuff out by the way, incase the code is messy)


<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style></head>
<STYLE TYPE="text/css">
<!--
a:link, a:visited, a:active {text-decoration:none}
-->
</STYLE>
<table border="0">
<tr><td>
<img src="http://www.bootleg.org.uk/images/beatles_sml.jpg" width="160" height="120"></p>
</td>
<td><span class="style2">Charlatans <br>
Bootlegs</span></td>
</table>
<p><a href="http://www.bootleg.org.uk/index.php?page=audiocharlatans" class="style2"><font color="ffffff">1999-11-24 The Nymble, Stockholm</font></a>


Cheers

Watson

Watson
10-07-2004, 06:41 AM
I dont actually mean any border, I mean my alternating table colour, so its the same as the rest of the forums, and will also change if I change the style of it :D

Our Sponsors
 

Brian
10-07-2004, 09:46 AM
tborder is the table border class and alt1 & atl2 are the alternating classes.

robert_2004
10-07-2004, 09:48 AM
for alternating colours used by the overall forum CSS, you do
class='alt1' or 'alt2'

just rip apart the templates on the original forum pages that you like, and find which class they use on their <table class=''> OR <tr class=''> OR <td class=''>

hope that helps.

Our Sponsors
 

Watson
10-07-2004, 02:36 PM
could anyone paste the whole code for me please :D:D

robert_2004
10-08-2004, 04:21 AM
if you want for row
<tr class="row1">

if you want for column cell
<td class="row1">

if you want for whole column, you'll have to go to each <td> and change to ^ the one above.

if you want it working dynamically, so it depends if you have 1 row, or 1000 rows, then you'll need to run some tricky php coding, along the lines of

<?php

foreach($i; $=1; $=1000)
{
then you need to connect to db, or use existing function. it's quite hard, and i have to go out now :| - so i can't write it.

}
?>

Watson
10-08-2004, 07:28 AM
How would I do it if I wansnt using tables?

Cause some of my html pages aint got Tables in them, its just some text, and I would still like the border round them.

Brian
10-08-2004, 09:39 AM
You would need to add a table around the text.

Watson
10-08-2004, 05:12 PM
can you do tables inside tables then?

Brian
10-08-2004, 11:15 PM
Yes.