html - Putting Banner Behing Adsense -


i setting adsense website @ moment , trying set background-image behind ad if visits page ad-block there image politely asking them turn on if support website. currently, have wrapped adsense code in div , set background-image on it, when adblock software able detect , block image behind it. able tell me correct this? cheers

html -

<div class="ad-alert">     <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>     <!-- listings banner -->     <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-9407013200292589" data-ad-slot="7535806952"></ins>     <script>(adsbygoogle = window.adsbygoogle || []).push({});</script> </div> 

css -

.ad-alert {     width: 728px;     height: 90px;     background-image: url("../images/ad-alert-banner.png"); } 

okay, solved myself. trick set div background color through css , set background-image has text want transparent background. below example.

css -

.ad-alert {     width: 728px;     height: 90px;     background: #cccccc;     background-image: url("../images/randompeople.png");     margin: auto;     margin-top: 30px; } 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -