Forum:Border around an image


 * Hi.
 * I want to create a border around an image and for some reasons, I'm not able to make it work with IE7.
 * Here's my test page. If you look at the code, you'll see 4 different tries with tables, divs and spans. As you can see, none of them works in IE7: images 1, 2 and 3 have one blank pixel at the top (between the red border and the image). Image 4 is correct at the top but has no border at the bottom.
 * Can someone please tell me how to solve that? Chriskang 23:41, June 21, 2010 (UTC)
 * I can't test IE7, but it works fine in IE8, it doesn't seem to me like that big of a deal to worry about 1 pixel difference in an outdated browser. -- 23:56, June 21, 2010 (UTC)

On the Ikariam wiki, the border parameter is not working on images while using Firefox or IE8. -- 15:45, June 27, 2010 (UTC)
 * What do you mean by border parameter? Is this in a template or CSS? Anyway, Chriskang's test page on the latest Firefox (3.6.4) works right for me (except for the 4th image which shouldn't work right because he's using a span). -- Fandyllic  (talk &middot; contr) 9:16 AM PST 27 Jun 2010
 * When you show an image on a page of a wiki [[Image: or File: || | |< border >|]] - that border parameter. --  17:26, June 27, 2010 (UTC)

The problem stated that the border parameter was not working on the Firefox browser on Ikariam - The examples (with and without the border parameter show with no border ) on this browser. -- 23:36, June 28, 2010 (UTC)
 * Okay, thanks for the clarification. Given that, I suspect it is an issue with either the code that Wikia generates or the browser support. I suspect browser problems. -- Fandyllic  (talk &middot; contr) 10:28 AM PST 28 Jun 2010
 * Mmm, it doesn't even work on Wikimedia wikis. I suspect it is not actually a valid parameter despite what the manual says. -- 17:38, June 28, 2010 (UTC)
 * It does work on some non-Wikimedia MediaWikis. I've seen it work reliably on Ballotpedia which is running MediaWiki 1.15. -- Fandyllic  (talk &middot; contr) 3:14 PM PST 28 Jun 2010
 * Just found out that the syntax is Example.png Example.jpg exactly as written. No border width allowed, border is always 1px and does not have any effect when the frame parameter is specified.  Confirmed this works as expected on Ikariam. -- 22:27, June 28, 2010 (UTC)
 * As usual Pcj (like on wow) you did not read what the problem was - it was not the syntax and there was no mention of trying to use a width parameter.
 * Again, I checked using Firefox and the border is working. It's just really thin (and light), you may not be seeing it - incidentally, you can put the following code in the browser where you normally put the URL and press enter to see it better: javascript:void($("img.thumbborder").css("border-color","black")); . -- 23:55, June 28, 2010 (UTC)