putting a banner code in the header

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

putting a banner code in the header

Post by TheButcher2 »

Hi guys

Hope your Saturday is good, please have a look at my forum https://www.sponsor.chat

How do I move the top banner from where it is to a level up between the dark blue and light blue section please. Been trying for a while today can't get it right.

Thanks again for your help
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: putting a banner code in the header

Post by TheButcher2 »

Never mind finally figured it out

Peace
User avatar
PlanetStyles.net
Former Team Member
Posts: 4809
Joined: Wed Nov 04, 2009 11:16 pm
Location: Way up in the sky close to the stars
Name: Christian
Contact:

Re: putting a banner code in the header

Post by PlanetStyles.net »

Hello :)

It looks like you might actively be modifying the template at the moment, as a new banner has appeared in the header in the last few minutes.

In any case, there's some funky things going on in your code. To center a banner and apply a margin to the top/bottom, you can use:

Code: Select all

<div style="text-align: center; margin: 5px 0 10px;">
* your ad code here *
</div>
In the context of 5px 0 10px , these refer to:

5px = Top margin
0 = left/right margin
10px = Bottom margin

It probably won't be as simple as adjusting the top/bottom values so that you have an equal gap, as your index page has some hidden junk elements that are causing an invisible gap - this isn't present on other pages so you'd get inconsistent results.

Best is to remove the invisible junk then play with the margin values.
Post Reply

Return to “[3.2.x] Styles Support & Discussion”