Page 1 of 1

[Solved] How would I center the logo?

PostPosted: Sun May 28, 2006 7:19 pm
Author: Tarun
Recently while creating a website for my guild, a member made an excellent logo. Thing is, it was made perfectly for being centered. I checked through a few files and I can't find out what and where I need to modify to make it align to the center. I have tried this, but with no luck.

templates/fisubice/overall_header.tpl

Here is the code I tried, I've also tried with basic center tags and div tags.

Code: Select all
<td><a><img></a></td>


Any ideas anyone?

PostPosted: Mon May 29, 2006 10:38 am
Author: Tarun
Does anyone have any ideas? (Or did I post this in the wrong section?)

PostPosted: Mon May 29, 2006 11:04 am
Author: ZacFields
I was messing with this on my forum earlier searching for a solution for you.

Have you thought about saving your template file and pulling it into Dreamweaver to get a better view of what the table setup looks like on there? I hate using dreamweaver but it can be a little easier if you're just messing with design issues.

I will take a look at it now and I will get back to you in a few minutes.

Zac

PostPosted: Mon May 29, 2006 11:14 am
Author: Threat009
"Tarun";p="7767" wrote:Does anyone have any ideas? (Or did I post this in the wrong section?)

Try this [url=http]http://integramod.com/forum/viewtopic.php?t=534[/url] It should do the trick, if not, feel free to ask <img>

PostPosted: Mon May 29, 2006 11:21 am
Author: ZacFields
Yes Dreamweaver was basically useless.

I do remember centering my logo in the past, but there could be restrictions set on it now that I'm not aware of. I've just upgraded to 1.4.0 about a week ago.

Zac

PostPosted: Mon May 29, 2006 11:27 am
Author: Threat009
"ZacFields";p="7780" wrote:Yes Dreamweaver was basically useless.

I do remember centering my logo in the past, but there could be restrictions set on it now that I'm not aware of. I've just upgraded to 1.4.0 about a week ago.

Zac

No it's actually still pretty straight forward, but always practice best to backup anything before you overwrite it <img>

Re: How would I center the logo?

PostPosted: Mon May 29, 2006 11:34 am
Author: Tarun
Well, I'm still a tad stumped.

Site: http://lunarianknights.spy-gaming.com/

With no td:
Code: Select all
<a><div><img></div></a>


With a td]<a><div><img></div></a>[/code]

With no td, it centers just fine but the background images (cellpic_bkg.jpg) does not display.

With the td, the cellpic_bkg.jpg displays, but the logo is aligned to the left.

It is intended to be a small banner (700x150) so it works with anything 800x600 and over.

Re: How would I center the logo?

PostPosted: Mon May 29, 2006 12:08 pm
Author: Threat009
Find

Code: Select all
<a><img></a>


Replace with

Code: Select all
<div><a><img></a></div>


and use your <td> I don't use my banner as a link, but I don't think it could cause you trouble. The above should work. Hit [F5] on your keyboard to refresh and see if it worked <img>

PostPosted: Mon May 29, 2006 12:39 pm
Author: Tarun
I tried as you said above (see my prior post) along with other variations. Now the logo is centered and displayed, however the cellpic_bkg.jpg doesn't show.

PostPosted: Mon May 29, 2006 1:00 pm
Author: Threat009
"Tarun";p="7791" wrote:I tried as you said above (see my prior post) along with other variations. Now the logo is centered and displayed, however the cellpic_bkg.jpg doesn't show.

I had this problem once, can't remember the exact fix. Try this for your <td>
<td> If it doesn't work, I'll try to look up a fix......

Re: How would I center the logo?

PostPosted: Mon May 29, 2006 1:26 pm
Author: DjPorkchop
Here is my code that I use and logo is centered right on the nose and by the way background shows up and link works as well...

[code]<table>      <tr> <td><center><a><img src="http]

Obviously you can tell where I edited out my site referances in there. You need to change all those instances to what you need.

Re: How would I center the logo?

PostPosted: Mon May 29, 2006 1:49 pm
Author: Tarun
Here's the main segment of code (Default)

Code: Select all
<table><tr><td><table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><END><td></td></tr></table>

I just noticed there are two width and heights, so I'll remove those to fix that segment.

[hr]
This is image 01:
[flash=,:1y5lihkm]http://lunarianknights.spy-gaming.com/temp/01.jpg[/flash:1y5lihkm]
Code: Select all
<td><a><img></a></td>

[hr]
Here is image 02:
[flash=,:1y5lihkm]http://lunarianknights.spy-gaming.com/temp/02.jpg[/flash:1y5lihkm]
Code: Select all
<div><a><img></a></div>

[hr]
Needless to say, I have no idea how to fix this. Adding any form of a <td> results in the image going to the left. (Image 01)

Without the <td> code, the cellpic_bkg.jpg pic no longer displays. (Image 02)

PostPosted: Tue May 30, 2006 1:43 pm
Author: Tarun
Anyone have any other ideas?

PostPosted: Tue May 30, 2006 2:57 pm
Author: Jason Sanborn
This is what you need to find in an unmodified overall_header.tpl file

Code: Select all
<table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><END><td>     </td></tr></table>

After you find it, replace it with]<table><tr> <td><a><img></a></td></tr></table>[/code]

PostPosted: Wed May 31, 2006 6:19 am
Author: Tarun
Thank you Jason, that worked perfectly!

Perhaps that could be a future feature of IntegraMOD? A way to choose where to place your logo alignment? <img>

PostPosted: Wed May 31, 2006 7:11 am
Author: Jason Sanborn
You're welcome. ;)