XF 2.1 adv background changes the forum's width

interforo

Active member
Hello,

when the advertising (in the background) displays, the main table of my forum gets smaller (width reduces) resulting in a bad header display (leaderboard gets screwed up).
Please check the screenshot.
How can I maintain the forum's width fixed and not let the adv background change it?

1568960705971.webp


check when the adv in the background is not displayed

1568960815790.webp
 
The problem is you're trying to display an ad that's too wide for that location. Use responsive ads (Google) or try this CSS solution:

Use this for your ad link: <img src="yourad.jpg" class="ad_responsive">

Add this to extra.less:

Code:
/* class for responsive ads */
.ad-responsive {
    max-width: 100%;
    height: auto;
}

Or you could try something like this for the ad link: <img src="yourad.jpg" width="100%" height="auto">
 
Back
Top Bottom