I have been building a forum using mybb. I have used Adsense to incorporate a couple of advertisements into the site but they are not displaying correctly in IE8. They look fine in IE10 (and IE8 when in compatibility mode), Chrome and Firefox. The issue is that the advertisements in IE8 appear to be misaligned by 1 or 2 pixels.
In development mode, I have identifed a line which I believe is created by Adsense as it's not part of my original code, which appears to cause the issue.
It is display: inline-table
. If I uncheck this, the ads on the site appear aligned with the content. But as this is a dynamically created bit of code, I can't edit it... (or can I?)
Can anyone help me resolve this issue and get my advertisements in line with the rest of my content?
Edit:
The code I get from Google Adsense is:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ShowThreadSideSquare -->
<ins class="adsbygoogle"
style="display:inline-block;width:200px;height:200px"
data-ad-client="ca-pub-6454993037050681"
data-ad-slot="7524464050"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
When I look at it through the development screen in IE, it has expanded to much more, but this is the line with the inline-table
comment which seems to make it unaligned in IE8. But I can't seem to edit it as it's not in my source code...
<ins style="width: 200px;
height: 200px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
border-top-color: currentColor;
border-right-color: currentColor;
border-bottom-color: currentColor;
border-left-color: currentColor;
border-top-width: medium;
border-right-width: medium;
border-bottom-width: medium;
border-left-width: medium;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
display: inline-table;
visibility: visible;
position: relative;">