I've noticed that Google's remarketing code inserts an iframe at the bottom of my page. The problem is that the iframe messes up my layout (it's 13px high and leaves a blank white vertical space at the bottom).
I've tried to hide it with css but it's still visible in IE9:
iframe[name='google_conversion_frame'] {
height: 0 !important;
line-height: 0 !important;
font-size: 0 !important;
}
Therefore I've got two questions:
a) how to hide this iframe in IE9
b) most importantly - is it safe or can it somehow affect the functionality of this script?
I just used css to set the height and width to zero. Wrapped the conversion.js file around a div with an id and set its child iframe width and height to 0.
You can set the style in the main css file.
I had the same problem. The good solution was to add a line in the google remarketing tag.
The tag before modification :
The tag after modification :
In my sites i use this code
Floating the iframe allows you to use negative margin equal to the height of the body inside the iframe.
Other way around (mentioned in the comments above) is to insert the conversion.js script tag into a hidden div:
src: http://keanrichmond.com/google-remarketing-messing-with-my-design.html
Is there any downside to just setting the iframe to be absolute positioning.
less code, no !important's and no display: none