Lack of interest Ad Template DIVs and CSS


XenForo moderator
Staff member
Just a quick one, maybe I missed it, but the add templates don't seem to have any attached divs and css to them, so when I added in my adverts underneith the page content, it was litterally rammed against the sharepage div without any spacing.

I would suggest that by default to include default div ids for all the ad locations, and an ad locations css file to edit them all.

Dark Matter

Active member
There are times when you might need to use SPAN, rather than DIV for CLASS ID's. Just worth mentioning, depending on how you add adverts of course. That's probably why they left them out for people to mix and match things there own way, each person is different how they want to integrate ads. One bog standard CSS way, won't necessarily suit all.

Michael Dance

Active member
If you are doing DIV's ensure you have CSS for them AKA:

<div id="name"></div>

margin-left: auto;
margin-right: auto;

That will make it center wherever the div is placed.