z-index does not work with google Adsense advertising

Asked

Viewed 42 times

1

I have a problem which is this:.

I have a top menu with position Fixed and a z-index of 99999. I put this ad but the problem I’m having is when I go down and get it in advertising. Advertising is in front of my menu. I tried to use smaller position than my menu but it did not help.

IMG Of the problem.

inserir a descrição da imagem aqui

I need this ad to be below my menu.

Ad script :

            <script type="text/javascript">
                google_ad_client = "ca-pub-5653567333761325";
                google_ad_slot = "4495238327";
                google_ad_width = 336;
                google_ad_height = 280;
            </script>
            <!-- Anuncio_aside -->
            <script type="text/javascript"
            src="//pagead2.googlesyndication.com/pagead/show_ads.js">
            </script>
  • almost sure that the limit of 9s are 5 to 7. and yes already tried.

  • You can show the website link?

  • You’re putting the ad in a div?

  • 1

    Try using the browser console (F12 for Chrome and Firefox) to make the change directly in the element and make sure it works or not.

  • 1

    hello, the google ad after it appears in the browser must be in a DIV and it surely contains a different ID or CSS CLASS that you can identify with jquery, so you locate the object via jquery and insert a class containing z-index 1 to fall below the content of your site/system.

  • I did, using the element inspect. I found the id and put a z-index in css.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.