Hello Guest
No Avatar
Sign In to Remove
Posts: 
10
Reputation: 
0
Posted: December 7, 2011, 5:38 AM
  • Group: Member
Is there any way to center the banner logo? The default "Vertex" logo is left-aligned on the forum (with 15px of padding), but I replaced it with my own banner and took out the padding (as you'll see below). It would be great, though, if I could somehow center it over the width of the forum, no matter the width of the monitor. Is that possible?

Here's a picture of the problem, see how it looks odd:



Also, how would I go about changing the banner_logo link to the forum instead of the home page (index.php)?
Posts: 
400
Reputation: 
20
Posted: December 7, 2011, 8:11 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
To center:
Open up index.css and find ".banner_logo"
replace it with:
Code: [Select]
.banner_logo {
height: 72px;
display: table;
margin: 0 auto;
}

display: table; - Makes it shrink to the contents
margin: 0 auto; - Automatically calculates horizontal margin which will center

To change link:
open up index.template.php and find "<div class="banner_logo">"
Change the <a href="', $scripturl ,'"> href to your homepage...
<3 Nerve, Sk8, Labradoodle, Austin