![]() |
|
#1
|
|||
|
|||
|
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) Code:
<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>
Watson |
|
#2
|
|||
|
|||
|
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
|
|
#3
|
||||
|
||||
|
tborder is the table border class and alt1 & atl2 are the alternating classes.
|
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
could anyone paste the whole code for me please
![]()
|
|
#6
|
|||
|
|||
|
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. } ?> |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
You would need to add a table around the text.
|
|
#9
|
|||
|
|||
|
can you do tables inside tables then?
|
|
#10
|
||||
|
||||
|
Yes.
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP code in a custom page template | Elektronkind | Troubleshooting / "How do I..." Questions | 1 | 09-13-2004 12:19 PM |
| Changing the header template | 2thumbsup | Troubleshooting / "How do I..." Questions | 2 | 07-10-2004 04:13 PM |
| Right colomn problem with border. | Sc0rpion | Troubleshooting / "How do I..." Questions | 1 | 06-27-2004 12:45 PM |