• Resolved musixland

    (@musixland)


    hi,

    i have tried so many things now but i can’t get it resolved

    i using div code to set an adsense code left in my post and want to have the text wrap around it
    the problem is that the ad doesn’t align with the first paragraph, it starts in line 3

    the code i am using looks like this

    <div style=”width: 200px; text-align: left;”>Advertisement</div>
    <div style=”float: left; margin-top: 5px; margin: 10px;”><script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– ad-1 –>
    <ins class=”adsbygoogle”
    style=”display:inline-block;width:300px;height:250px”
    data-ad-client=”ca-pub-xxxxxxxxxx”
    data-ad-slot=”xxxxxxxxxx”></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script></div>

    hope someone can help

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello, can you provide a link so we can easily see what’s wrong?

    Thank you.

    Thread Starter musixland

    (@musixland)

    here the link to one of the posts

    link

    Thread Starter musixland

    (@musixland)

    really no one an idea ?

    @destinymaker – after asking for a link – no solution from ur part ?

    whats up guys – where the css cracks

    There are a couple of inadvertent line breaks in your code which are causing the unwanted space. So change:

    .... src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- ad-1 -->
    <ins class="adsbygoogle" ....

    to

    .... src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><!-- ad-1 --><ins class="adsbygoogle" ....

    Thread Starter musixland

    (@musixland)

    lorro – u r my hero

    it worked perfectly

    thank u so much , i thought i will never get it done

    thanks again

    Thread Starter musixland

    (@musixland)

    resolved

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Adsense code does not horizontally align with paragraph’ is closed to new replies.