putting a banner code in the header

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

putting a banner code in the header

Post by TheButcher2 » Sat Feb 17, 2018 11:07 pm

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

TheButcher2
Registered User
Posts: 422
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: putting a banner code in the header

Post by TheButcher2 » Sat Feb 17, 2018 11:43 pm

Never mind finally figured it out

Peace

User avatar
Christian 2.0
Former Team Member
Posts: 4449
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: putting a banner code in the header

Post by Christian 2.0 » Sat Feb 17, 2018 11:46 pm

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”

Who is online

Users browsing this forum: eeji and 5 guests