The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to: Auto Center your Header Logo
Greetings,
I've tried to google how you have your logo auto center across your header on the forum. There's a lot of people that have various ways. I do my own and many will have various ways to go about it. Here is the simple version. Open your "Header" template. Look for the last </script> tag in your code and insert after it: Code:
<style> #logo { display: block; margin-left: auto; margin-right: auto } </style> Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div> Code:
<a href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}"><img id="logo" src="{vb:stylevar titleimage}"/></a> |
#2
|
|||
|
|||
That's not working for me. I'm on 4.2.3PL2. Looks like the code is slightly different from your original one.
I modified my header to contain: Code:
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}".php{vb:raw session.sessionurl_q}"><img id="logo" src="/Forum2016/images/Header_logo.png" alt="The Real Nicaragua"/></a></div></vb:if> I'd like to have both the banner logo and the log-on navbar centered. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|