IE displays border around HTML lightbox content even when 'Enable border' is unchecked
jwarner - February 26, 2009 - 00:10
| Project: | Lightbox2 |
| Version: | 6.x-1.9 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Even when 'Enable border' is unchecked under Site Configuration -> Lightbox2 -> HTML Content, IE still shows a border.
Firefox does not.

#1
Hi, we got the problem and fixed it by setting frameborder = 0 on line 481 in lightbox.js
Line 481:
$('#frameContainer').html('<iframe id="lightboxFrame" style="display: none;" src="'+src+'" frameborder="0"></iframe>');We hope that you are soon going to fix this problem.
By the way, thanks for a great module.
Regards,
Andreas.
#2
Confirm that the fix works. Would love to see this patched in the next version, thanks!
#3
I haven't had any luck with the fix posted by vejnoe.
edit: I've gotten it to work so long as I have the code suggested above, AND a "frameborder=0" added to the link:
<a href="link.html" rel="lightframe" frameborder="0"></a>. Tried removing each in turn, only seems to work when both are there. Could be computer voodoo or just something I'm missing, just wanted to update my comment.#4
Thank you, this works great for IE6 (yuck) and IE7!
#5
It works! Thanks
#6
Thanks.. its really works