how to center the header image in my styles...

Adjustments to existing phpBB3 styles
User avatar
spaceace
Site Owner
Posts: 919
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada

how to center the header image in my styles...

Post by spaceace » Wed Dec 22, 2010 10:33 pm

open /template/overall_header.html
find
Code: Select all
				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p>
replace with
Code: Select all
<!-- 				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p> -->
open /theme/common.css
find
Code: Select all
#site-description {
	float: left;
	width: 70%;
}
replace with
Code: Select all
#site-description {
	text-align: center;
}
find
Code: Select all
#logo {
	float: left;
	width: auto;
	padding: 0 13px 0 10px;
}
replace with
Code: Select all
#logo {
	text-align: center;
	width: auto;
	padding: 0 10px 0 10px;
}
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.

if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

User avatar
Clarence
Registered User
Posts: 22
Joined: Sun Dec 11, 2011 11:35 am
Location: Bellwood, IL USA
Flag: United States of America

Re: how to center the header image in my styles...

Post by Clarence » Mon Jan 09, 2012 6:04 am

I'm using a .PNG for my logo (main logo). How do I get that to be centered on my header?
Last edited by Clarence on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
One sure way to make your dreams come true . . . . WAKE UP !

User avatar
spaceace
Site Owner
Posts: 919
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada

Re: how to center the header image in my styles...

Post by spaceace » Tue Jan 10, 2012 8:31 am

Clarence wrote:I'm using a .PNG for my logo (main logo). How do I get that to be centered on my header?
the post above yours tells you how to center the logo.
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests