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

Ads to right of whole forum

#1
I'd like to drop two ads to the right of my whole forum (http://www.digitaldjtips.com/forum), as per my main site (http://www.digitaldjtips.com). Any tips on the best way to achieve this? I shouldn't have to make my XenForo forum any narrower, as I can use the margin space by moving the forum to the left a bit to fit the ads in, but I don't see any pre-formatted ad blocks for the position I'm looking for.

I guess I can put a container DIV in but my CSS is too bad to know how to set it up correctly to achieve my goal. Any chance you can you help please?
 

Kim

Well-known member
#4
I'd like to drop two ads to the right of my whole forum (http://www.digitaldjtips.com/forum), as per my main site (http://www.digitaldjtips.com). Any tips on the best way to achieve this? I shouldn't have to make my XenForo forum any narrower, as I can use the margin space by moving the forum to the left a bit to fit the ads in, but I don't see any pre-formatted ad blocks for the position I'm looking for.

I guess I can put a container DIV in but my CSS is too bad to know how to set it up correctly to achieve my goal. Any chance you can you help please?
Hi there Phil,

You can achieve this by including a new div, will give you some CSS that I know works for this (curtesy of Kier) Will get back to you shortly with it, I just have to dig it up.
 
#8
Sure.

This added to PAGE_CONTAINER to handle the ads:

Code:
 <div class="sidebarAds">
            <div class="sidebarAd">
                  <!-- Ad 1 here -->
            </div>
            <div class="sidebarAd">
                  <!-- Ad 2 here -->
            </div>
        </div>
The CSS is in EXTRA.CSS:

Code:
.sidebarAds {
float:right;
}

.sidebarAd {
margin-top: 10px;
}