![]() |
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> Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" Code:
<a href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}"><img id="logo" src="{vb:stylevar titleimage}"/></a> |
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. |
All times are GMT. The time now is 01:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|