Interviewed by CNN on 14/06/2012 09:42, Peter Nieman told the world:

> Make a small image and display it on a page. When you change the size of 
> the browser window, you will always see the image the same way, i. e. 
> without a border. Now add this to the html file, giving the image an 
> "id" of "img":
> <style type="text/css">
> <!--
>    #img {
>      width: 45%;
>      }
> -->
> </style>
> Depending on the size of the browser window, the image will now be shown 
> with a black border at the bottom, a black border at the right, a black 
> border at the bottom and the right, or no black border at all. This has 
> been so for years, and I bet there's more than one bug open for it.

Well, I couldn't reproduce the behavior you describe. It worked
perfectly for me, with no undesired borders at all. Code below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>

<html>
<head>
  <meta http-equiv="Content-Style-Type" content="text/css">

  <title>Testcase</title>
  <style type="text/css">
<!--
  #img {width:45%;}
  @media print{}
  -->
  </style>
</head>

<body>
  <p><img id="img" src="toz03867s_0.jpg" alt="" name="img"></p>
</body>
</html>


I tested it with a 300x300px image, and also with a 80x80px one. This is
valid HTML 4.01 Strict code, but I tried even with invalid code (such as
not putting the img inside a p element) and it still worked.

SM 2.10, Win7 x64.

-- 
MCBastos

This message has been protected with the 2ROT13 algorithm. Unauthorized
use will be prosecuted under the DMCA.



-=-=-
... Sent from my Battlestar.
* Added by TagZilla 0.7a1 running on Seamonkey 2.9 *
Get it at http://xsidebar.mozdev.org/modifiedmailnews.html#tagzilla
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to