PDA

View Full Version : Central Table with Background



Mile-O-Phile
Wed 27th Oct '04, 6:17pm
I have a test forum here (http://www.talk-history.com/forum2/) before I go ahead and create my proper one.

What I would like is for a table to put the picture at the top into with a white background and central alignment. How would I do this?

rebelsrock06
Wed 27th Oct '04, 6:43pm
in your header template

Find This


<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></td>



Replace with


<table border="0" bgcolor="#ffffff" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[center]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

Mile-O-Phile
Wed 27th Oct '04, 6:56pm
What's the header template called?

Mile-O-Phile
Wed 27th Oct '04, 7:26pm
I have no file called anything like header.php amongst my files.

rebelsrock06
Wed 27th Oct '04, 7:52pm
No no no

Admin CP > Styles and Templates > Style Manager > [The Style you are Making] All Style Options > In the Very Top is your header template

Mile-O-Phile
Wed 27th Oct '04, 8:01pm
Okay I worked it out but the picture isn't centering. What do I have to do now? :(

rebelsrock06
Wed 27th Oct '04, 8:03pm
LOL woops you see the part that says $stylevar[center] change that to just center

Mile-O-Phile
Wed 27th Oct '04, 8:09pm
Cheers mate, that's great. I don't suppose there's a way to push the graphic down a bit so that the white surrounds it is there?

Mile-O-Phile
Wed 27th Oct '04, 8:13pm
Worked it out. Cheers.

rebelsrock06
Wed 27th Oct '04, 11:09pm
actually yes


Admin CP > Stlyes and Templates > [style to edit] Edit Templates > Navigation and breadcrumb > Navbar and remove the first instance of <br />