Advertisement Management

Ad Alignment - Advertisement Management

Ad Alignment

by newmaney » Fri Dec 27, 2019 11:35 pm

Hi Guys.

I would like to thank you for this great extension and it's really user friendly for a newbie like me.

I do have one question which is cosmetic in nature and hopefully this is quite simple to answer.

Below is a screenshot of my adsense ads displayed in the Above Footer, After Footer Navbar and Below Footer positions. The adsense code used is the same for all positions.
Capture.JPG
As you can see there is a misalignment of the ad in the Above Footer Navbar position compared to the other two, although the Above Footer and Below Footer ads also have a small variance in alignment which people would not known without inspecting the element. I should also add that I have an adsense ad in the After Header Navbar.

These are the div.phpbb-ads-center sizes for each of the positions:
After Header Navbar 1026 x 112
Above Footer 1026 x 112
After Footer Navbar 986 x 112
Below Footer 1028 x 112

Is there anyway that these can all be standardised to 1026 x 112 and would the ads then all be aligned ?

Thank you in anticipation of your assistance.
newmaney
Registered User
Posts: 11
Joined: Thu Oct 31, 2019 7:29 pm
Location: Currently in 'Lockdown' in Spain
Name: Carl
Contact:

Re: Ad Alignment

by VSE » Mon Dec 30, 2019 1:30 am

This extension does not make those sizes. Those sizes are just the natural sizes of those DIVs based on your style.

Also, that is not a mis-alignment. Your ad is too big, so it's extending past the right-edge of the container it is in...it's not resizing itself to fit within the space it's being displayed in. You will need to add (or adjust) CSS for that ad so it fits in the space it's placed in... Something like enclosing it in a <div style="width:100%"> tag.

As you can see:
Screen Shot 2019-12-29 at 5.31.14 PM.png
🧩 My Extensions 🧩 ✨ YES...they ALL work with phpBB 3.3!! ✨
Please do not PM me for support.
User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5091
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: Ad Alignment

by newmaney » Mon Dec 30, 2019 9:40 am

Thank you for getting back with a reponse it is much appreciated. I fully understand now.
newmaney
Registered User
Posts: 11
Joined: Thu Oct 31, 2019 7:29 pm
Location: Currently in 'Lockdown' in Spain
Name: Carl
Contact: