Jump to content

Recommended Posts

Hey guys,

I've got this website: http://twopersonhottubs.net/salt-water-hot-tubs

 

As you can see, on this page there is a google adsense ad.

I'd really like the top of this ad to be lined up with my content.

 

When I look at it in firebug, there are white gaps both in the div container holding the ad, and in the content box around it.

 

Does anyone know how to fix this?

 

Link to comment
https://forums.phpfreaks.com/topic/225299-mysterious-white-space-help/
Share on other sites

You have this in your code:

<div style="float: right;"><script type="text/javascript"><!--
google_ad_client = "pub-8436384097518357";
/* TPHT- SWHT */
google_ad_slot = "1251205006";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Remove the

<br />

between the script tags.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.