why wont logo center ?????

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
pro_hunter
Registered User
Posts: 138
Joined: Mon Nov 19, 2007 7:49 pm

why wont logo center ?????

Post by pro_hunter »

can anyone tell me why the logo wont ceneter ???

www.castandcatch.com/forum


Using this code

Code: Select all

<div id="site-header"> 
                <div style="background-color: #0787c7; padding: 0 3px; margin-bottom: 2px" > 
                   <div class="inner"><span class="corners-top"><span></span></span> 
                      <div style="font-size: 2em; color: #eef6f9; text-align: center; font-family: Arial">We are on Facebook - <a href="http://www.facebook.com/profile.php?id=100001086635256" title="facebook" class="facebook" target="_blank">Join</a> here.</div> 
                   <span class="corners-bottom"><span></span></span></div> 
                </div> 
		<div class="headerbar"> 
			<div class="inner"><span class="corners-top"><span></span></span> 
 
			<div id="site-description"> 
				<td height="100" align="center" valign="middle" style="text-align: center;"><a href="Board index"><img src="./styles/prosilver/imageset/site_logo.gif" width="684" height="100" alt="" title="" /></a></td> 
				<h1></h1> 
				<p></p> 
				<p class="skiplink"><a href="#start_here">Skip to content</a></p> 
			</div> 
common.css

Code: Select all

#logo {
   float: center;
   width: 100%;
   padding: 10px 13px 0 10px;
   text-align: center;

Code: Select all

#site-description {
   float: left;
   width: 100%;
}

User avatar
AmigoJack
Registered User
Posts: 5702
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: why wont logo center ?????

Post by AmigoJack »

pro_hunter wrote:

Code: Select all

<td height="100" align="center" valign="middle" style="text-align: center;">...</td>
...
				<h1></h1> 
				<p></p> 
  1. You can't wildly insert td without using table and tr or th also. Remove those.
  2. An empty heading? Remove it.
  3. An empty paragraph? Remove it.
pro_hunter wrote:

Code: Select all

#logo {
   float: center;
   width: 100%;
   padding: 10px 13px 0 10px;
   text-align: center;
  1. No element has the id logo (at least not in the code above), hence it's useless.
  2. There is no center for float, hence it's rubbish.
pro_hunter wrote:

Code: Select all

#site-description {
   float: left;
   width: 100%;
}
Should be text-align: center; instead of float: left;.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

pro_hunter
Registered User
Posts: 138
Joined: Mon Nov 19, 2007 7:49 pm

Re: why wont logo center ?????

Post by pro_hunter »

solved a dif way cheers :)

User avatar
Lumpy Burgertushie
Registered User
Posts: 67381
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: why wont logo center ?????

Post by Lumpy Burgertushie »

maybe rubbish wasn't a strong enough term. :lol:

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

User avatar
AmigoJack
Registered User
Posts: 5702
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: why wont logo center ?????

Post by AmigoJack »

Was that your 40000th post? Congrats :)

Maybe I should act like the majority acts:
  1. Be less precise (quote the full post instead of parts and give speculations and forecasts instead of instructions and facts).
  2. Be more strict (saying "keep your hands off from things you don't understand" instead of being misinterpreted as "oh, you're on the right way - let me help you").
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

Locked

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