XF 2.0 Ad link fills entire ad position

Mr Lucky

Well-known member
I was tempted to call this a bug, but maybe there is a reason for it.

I have a simple ad (above top breadcrumbs) which is a banner with a link.

The banner, correctly, is clickable but so is the white space to the right of the banner. This happens with an html img contained within a link, but not with a Google ad.

I would have thought the only clickable area should be the banner itself????
 
It's caused by the specific location of your banner ad -- it's a direct child of a display: flex element and thus it's a flexbox item, which behaves block-like (though with differences; that's a long topic).

You should wrap your code in a <div>.
 
Back
Top Bottom