MyBB Community Forums

Full Version: Align header in center!? and change bg color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can somebody help me align the header image in middle and then change the background color to black?
My forum is this http://sozu.eu

here's the HTML code that I can see
<div id="logo">

 <div class="wrapper">
<a href="http://sozu.eu/index.php"><img src="http://sozu.eu/images/1/logo.png" alt="Sozu" title="Sozu"></a>
</div>
</div>



What I been trying is to go to the template (Apart1) theme, and go to global.css, changing the #logo selector, but I got no idea what to write in it!

It looks like this:
http://i.imgur.com/Zw9PzsG.png

I been trying change this around, but I can't get it anywhere really, my website now got messed up, no idea how because I resetted it and have saved.. so it is at is was before, but still the white background on my forum is gone.. everything messes up.

Anybody help!?
#logo {
text-align: center;
background: #000000;
}

Add that, and it's all.
Ah, thanks! one more question though..
While edit the design, yesterday when I did so my white background became gone from the forum. And I couldn't get it back, even though I did reset the code.
I asked on another forum about that, and they said that in phpbb you've to reset some cache in admin panel.
I have no idea how to do this for MyBB, how can I make everything update?
Try doing a hard refresh by pressing Control + F5.
(2014-10-16, 09:26 AM)dragonexpert Wrote: [ -> ]Try doing a hard refresh by pressing Control + F5.

Thanks, that works I see.


Anyway, I succeed with the background.. apperently, the #logo selector is just the background of the logo, so I made it black and aligned it.
Then I have no idea where the logo itself is, but I can just change the original image there.

The only problem is the white background for the forum, it is gone again when I have changed the background and alignment in the #logo selector (the header simply).

Here's a full screenshot on the website and some HTML source to show: 
http://prntscr.com/4wqs8q

It's the <div id="content"> where the main forum starts, where it should be white (and right now there's just that grey triped background).

Any suggestion how to do this!?
The main site is sozu.eu as already written, and I will leave as it is now until I get some fix to it, so I can get back the white background there but still be able to have the header as it is now (will just change the image of header later on, but as it is now, it's alright.