vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 10-06-2004, 10:32 PM
Watson Watson is offline
Member
 
Join Date: Jun 2004
Posts: 46
Default Add a border round a template?

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>
Cheers

Watson
  #2  
Old 10-07-2004, 06:41 AM
Watson Watson is offline
Member
 
Join Date: Jun 2004
Posts: 46
Default Re: Add a border round a template?

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  
Old 10-07-2004, 09:46 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Add a border round a template?

tborder is the table border class and alt1 & atl2 are the alternating classes.
  #4  
Old 10-07-2004, 09:48 AM
robert_2004 robert_2004 is offline
Member
 
Join Date: Oct 2004
Posts: 45
Default Re: Add a border round a template?

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  
Old 10-07-2004, 02:36 PM
Watson Watson is offline
Member
 
Join Date: Jun 2004
Posts: 46
Default Re: Add a border round a template?

could anyone paste the whole code for me please
  #6  
Old 10-08-2004, 04:21 AM
robert_2004 robert_2004 is offline
Member
 
Join Date: Oct 2004
Posts: 45
Default Re: Add a border round a template?

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  
Old 10-08-2004, 07:28 AM
Watson Watson is offline
Member
 
Join Date: Jun 2004
Posts: 46
Default Re: Add a border round a template?

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  
Old 10-08-2004, 09:39 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Add a border round a template?

You would need to add a table around the text.
  #9  
Old 10-08-2004, 05:12 PM
Watson Watson is offline
Member
 
Join Date: Jun 2004
Posts: 46
Default Re: Add a border round a template?

can you do tables inside tables then?
  #10  
Old 10-08-2004, 11:15 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Add a border round a template?

Yes.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


All times are GMT -4. The time now is 09:17 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.