[Solved] How would I center the logo?

Support for IntegraMOD 140

Moderator: Integra Moderator

[Solved] How would I center the logo?

PostAuthor: Tarun » Sun May 28, 2006 7:19 pm

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?
Last edited by Tarun on Wed May 31, 2006 6:19 am, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

PostAuthor: Tarun » Mon May 29, 2006 10:38 am

Does anyone have any ideas? (Or did I post this in the wrong section?)
Last edited by Tarun on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

PostAuthor: ZacFields » Mon May 29, 2006 11:04 am

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
Last edited by ZacFields on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

ZacFields
Sr Integra Member
Sr Integra Member
 
Posts: 426
Likes: 0 post
Liked in: 0 post
Joined: Wed May 24, 2006 11:14 pm
Cash on hand: 0.00

PostAuthor: Threat009 » Mon May 29, 2006 11:14 am

"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>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: ZacFields » Mon May 29, 2006 11:21 am

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
Last edited by ZacFields on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

ZacFields
Sr Integra Member
Sr Integra Member
 
Posts: 426
Likes: 0 post
Liked in: 0 post
Joined: Wed May 24, 2006 11:14 pm
Cash on hand: 0.00

PostAuthor: Threat009 » Mon May 29, 2006 11:27 am

"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>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

Re: How would I center the logo?

PostAuthor: Tarun » Mon May 29, 2006 11:34 am

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.
Last edited by Tarun on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

Re: How would I center the logo?

PostAuthor: Threat009 » Mon May 29, 2006 12:08 pm

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>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Tarun » Mon May 29, 2006 12:39 pm

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.
Last edited by Tarun on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

PostAuthor: Threat009 » Mon May 29, 2006 1:00 pm

"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......
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

Re: How would I center the logo?

PostAuthor: DjPorkchop » Mon May 29, 2006 1:26 pm

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.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1594
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,590.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: How would I center the logo?

PostAuthor: Tarun » Mon May 29, 2006 1:49 pm

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)
Last edited by Tarun on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

PostAuthor: Tarun » Tue May 30, 2006 1:43 pm

Anyone have any other ideas?
Last edited by Tarun on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue May 30, 2006 2:57 pm

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]
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Tarun » Wed May 31, 2006 6:19 am

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>
Last edited by Tarun on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Tarun
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sun May 28, 2006 7:10 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Wed May 31, 2006 7:11 am

You're welcome. ;)
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]