• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Ad Template DIVs and CSS

Slavik

XenForo moderator
Staff member
#1
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.
 
#2
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.
 
#3
If you are doing DIV's ensure you have CSS for them AKA:

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

div#name{
margin-left: auto;
margin-right: auto;
}

That will make it center wherever the div is placed.