2 small PHP/html Q's

Soldato
Joined
18 Feb 2006
Posts
9,781
I have a side bar on the forum for navigating the web page, but the problem is, it floats in the centre, so on larger pages it stays in the centre of the page (Example: http://ultimateunity.co.uk/forum/faq.php ) How do I fix this so it always stays at the top of the table?

If you look on the page I have a Next match which has the following code for it:

Code:
<?php
	// overall_header.tpl
	$thisPage = "ELTS :: next match";
	require_once('nm.php');
?>

And it doesn't display it. What can I do to fix this?

Thanks, Trif.
 
If the PHP isn't displaying it seems your hsot doesn't have PHP support - ask them :)

As for the centering, that code is insane and I can't spot it. Not at a quick glance, anyway. Maybe later, though.
 
It is a PHP forum, and works on normal HTML pages... :(

Thanks for the look though. :p

Edit: Try looking at the code on the home of the forum.
 
Last edited:
Ah right. Depending on where you put that PHP code it appears it won't be executed. Best to ask on the phpBB forums for more info on that I think, I can't remember much about phpBB's system offhand :)

Now for the centering, you need to set the valign of the table which contains the left hand column.

Find this, which is around line 245-250 on the index page (it'll actaully be in a template file you created somewhere I'd guess)

Code:
                  <td style="font-family: T_FONTFACE1;" height="128" width="465">
                  <table style="border-collapse: collapse;" id="AutoNumber2" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="100%">
                    <tbody><tr>
      <td style="font-family: T_FONTFACE1;" height="28" valign="top" width="200">
     <p align="center"><font style="font-family: T_FONTFACE1;"><u><b>
     Our next match</b></u> <br>
And change the first line to:
Code:
<td style="font-family: T_FONTFACE1;" height="128" width="465" valign="top">
Worked for me :)
 
Back
Top Bottom