PDA

View Full Version : Aligning forum body and logo


Miller85
06-06-2007, 10:32 PM
I realise it's probably a really simple question but I have extremely limited coding skills and similarly have been unable to find anything through searching here. If I've missed an obvious thread then apologies...

Anyway, a friend sorted the basic style for my forum (http://forums.airsofters.co.uk) when it was released. He's since "disappeared" and now we're looking at restyling the forum to look a bit more interesting. The problem is now the forum stretches to fill the browser window. Ideally we'd like it centred, with an underlying graphic visible on one side.

Essentially, the aim is something like this:

http://entropiaforum.com/forums/

Centred logo, centred body, background graphic.

Through really awful hit and miss methods we've at least got the idea of a background graphic in place:

http://forums.airsofters.co.uk/index.php?styleid=3


That's clearly a long, long way from ideal though as everything is completely buggered. Any input on how we can achieve the desired look would be great, thanks

David

no mods
06-06-2007, 11:42 PM
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Put that for your header template, it will center what ever your logo is.

Miller85
06-07-2007, 12:11 AM
Thanks, I will try that shortly - unfortunately it seems the server my forum is on is currently offline lol.

Any idea on aligning the main body to the centre too..?

Thanks again

Okay, I swapped out the header code with the code you posted - the logo hasn't moved.

From the AdminCP I clicked Styles and Templates > Style Manager > Edit all settings > and then pasted it in the header box, replacing the previous code. Is this not the right place?