Fixed Advertising widget

We have now developed a workaround. We now use CSS to dynamically apply a max-width to the ins.adsbygoogle element on pages where there is a sidebar or sidenav when the ad is displayed within the main body. We use some complex CSS calculations to limit the width of this element to approximately the width of the main column when the sidebar is displayed, taking into account various window widths via media queries. This shouldn't require any JS/HTML modifications by anyone using Adsense for ads. (This is an Adsense-specific workaround as it is caused by how their JS ultimately works.)
 
Back
Top Bottom