Top banner alignment problem...

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
David Sims
Registered User
Posts: 112
Joined: Fri Apr 25, 2008 12:26 am

Top banner alignment problem...

Post by David Sims » Tue Nov 25, 2008 2:09 pm

Apologies if this is in the wrong forum, but I'm trying to replace my top banner (site_logo.gif), and after refreshing, the new file is offset to the right by several pixels?

The new file is 1010 pixels wide x 125 pixels high. My forum is also fixed width of 1010 pixels, and is based on a recoloured version of ProSilver.

This is what it currently looks like - the top orange area represents the area of my banner - and you can see that it isn't properly aligned down the left hand and right hand edge. Any thoughts?...

Image

Any help would be gratefully appreciated. ;)
David
My board > http://www.mgs2000.co.uk < many thanks for all of your help & assistance!

User avatar
damsprivate
Registered User
Posts: 461
Joined: Sun Aug 17, 2008 10:39 pm
Location: indonesia
Contact:

Re: Top banner alignment problem...

Post by damsprivate » Wed Nov 26, 2008 12:41 am

can i see your link ?
binus university 2009 .
"did u know that 17 august ( when i join this forum ) is at Indonesia independence day ? "

David Sims
Registered User
Posts: 112
Joined: Fri Apr 25, 2008 12:26 am

Re: Top banner alignment problem...

Post by David Sims » Wed Nov 26, 2008 1:04 am

This is the link to my board - www.mgs2000.co.uk

I'd be interested in your thoughts damsprivate. ;)
David
My board > http://www.mgs2000.co.uk < many thanks for all of your help & assistance!

CarolinK.
Registered User
Posts: 26
Joined: Tue Jan 15, 2008 1:23 pm
Location: Reutlingen, Germany
Name: Carolin
Contact:

Re: Top banner alignment problem...

Post by CarolinK. » Wed Nov 26, 2008 1:47 am

Code: Select all

#logo {
float:left;
padding:10px 13px 0 10px;
width:auto;
}
The padding moves your banner. Change this and all will be fine:

Code: Select all

#logo {
float:left;
padding:10px 0 0;
width:auto;
}
My phpbb3 with a modified prosilver style.
http://www.team-andro.com/phpBB3/

David Sims
Registered User
Posts: 112
Joined: Fri Apr 25, 2008 12:26 am

Re: Top banner alignment problem...

Post by David Sims » Wed Nov 26, 2008 9:32 am

Fantastic CarolinK. - it all aligns perfectly now - http://www.mgs2000.co.uk

However, my coding was slightly different to what you stated. This is what I now have...

Code: Select all

#logo {
	float: left;
	width: auto;
	padding: 10px 0 0;
}
I don't suppose the indented codes or the fact that Width is before Padding makes any difference?

Many thanks again - you're a star! :D
David
My board > http://www.mgs2000.co.uk < many thanks for all of your help & assistance!

Locked

Return to “[3.0.x] Styles Support & Discussion”

cron