REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
logo center
#1
im using the theme blackbb ive uploaded a custom logo but how do i center it?
#2
In the header template, put <div align="center"> before the line of code for the logo and </div> after it.
#3
Use css instead.

.logo { text-align: center; }

Add that to the extra css in your theme.
#4
so where exactly should i edit the css code

<properties>
<templateset><![CDATA[2]]></templateset>
<editortheme><![CDATA[default]]></editortheme>
<imgdir><![CDATA[images/blackbb]]></imgdir>
<logo><![CDATA[images/blackbb/logo2.png]]></logo>
<tablespace><![CDATA[4]]></tablespace>
<borderwidth><![CDATA[1]]></borderwidth>
</properties>
#5
before </properties> dont shout if it doesnt work lol
or maybe where <logo> is
#6
Inside admincp under Templates and Themes you edit the theme you use. Do "advanced edit" and on the bottom add my css in previous post.
#7
(May 08, 2009, 10:54 AM)Willox Wrote: before </properties> dont shout if it doesnt work lol
or maybe where <logo> is


ROFL, incorrect both times.
#8
And if all that do not work

put the code

PHP Code:
<img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/> 

between <center> </center>

You find this code somewhere in the top of the header template (default templates)
#9
Question 
It should look this I think ?

<div id="header">
Code:
<div class="logo" style="text-align: center;"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>


Forum Jump:


Users browsing this thread: 1 Guest(s)