James
James

Reputation: 486

like button internet explorer white box appearing

I have some code to display a like button and this shows but with a random white box that i dont really want. Works in all other browsers

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"><body>


<iframe src="http://www.facebook.com/plugins/like.php?href=<SITE URL>"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"><iframe>
</body>
</html>

white box

Upvotes: 0

Views: 1303

Answers (3)

user1526693
user1526693

Reputation: 221

I also had this issue.

Closing the iframe tag did not provide a solution to my problem.

Use the following:

<iframe style="visibility:hidden;" onload="this.style.visibility = 'visible';" src="../examples/inlineframes1.html" > </iframe>

This resolved the issue for myself.

Upvotes: 1

Arrabi
Arrabi

Reputation: 3768

just close the iframe please :)

try this :

<iframe src="http://www.facebook.com/plugins/like.php?href=<SITE URL>"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>

Upvotes: 0

Joey
Joey

Reputation: 354566

You forgot to close the iframe and instead opened another one. Try changing the second <iframe> to </iframe>.

Upvotes: 0

Related Questions