<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Firefox image resizing driving me mad</title>
	<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad/</link>
	<description>Comments on Ask MetaFilter post Firefox image resizing driving me mad</description>
	<pubDate>Wed, 24 Nov 2004 12:23:07 -0800</pubDate>
	<lastBuildDate>Wed, 24 Nov 2004 12:23:07 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Firefox image resizing driving me mad</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad</link>	
		<description>FireFox filter. This is driving me mad. My website has a little JavaScript (inside) to drag in a random image. Each image is 150 wide (varying heights). IE displays them fine. Firefox 1.0  resizes certain images. Anyone know why? &lt;br /&gt;&lt;br /&gt; The JavaScript specifies the width (but not the height as each image is different):&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;var choice = pickRandom(range);&lt;br&gt;
document.writeln(&apos;&amp;lt;a href=&quot;about.htm&quot;&amp;gt;&amp;lt;img src=&quot;images/bl&apos;+choice+&apos;.jpg&quot; &lt;br&gt;
class=&quot;randompic&quot; width=&quot;150&quot; alt=&quot;blah&quot;&amp;gt;&amp;lt;/a&amp;gt;&apos;);&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
It&apos;s easy to see the browser re-sizes them as it has that wierd pixellated quality that browser-resized images have (+it spills out of the containing div).&lt;br&gt;
&lt;br&gt;
The images are at the &lt;a href=&quot;http://www.brucelawson.co.uk/&quot;&gt;bottom of the yellow side-bar &lt;/a&gt; (self-link, sorry); refreshing the page brings new ones. I&apos;ve checked Bugzilla, but can&apos;t help feeling that I&apos;m going mad ...</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2004:site.12139</guid>
		<pubDate>Wed, 24 Nov 2004 11:55:28 -0800</pubDate>
		<dc:creator>Pericles</dc:creator>
		
			<category>firefox</category>
		
			<category>javascript</category>
		
			<category>js</category>
		
			<category>images</category>
		
			<category>browser</category>
		
			<category>stylesheet</category>
		
			<category>image</category>
		
			<category>imagesize</category>
		
			<category>bug</category>
		
	</item> <item>
		<title>By: C.Batt</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211298</link>	
		<description>try setting the width of &quot;.randompic&quot; in your stylesheet to 150px instead of auto.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211298</guid>
		<pubDate>Wed, 24 Nov 2004 12:23:07 -0800</pubDate>
		<dc:creator>C.Batt</dc:creator>
	</item><item>
		<title>By: zsazsa</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211299</link>	
		<description>Strange, it seems to only do it with images that are wider than they are tall.  Maybe just dumping the &quot;width&quot; argument will fix things?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211299</guid>
		<pubDate>Wed, 24 Nov 2004 12:23:38 -0800</pubDate>
		<dc:creator>zsazsa</dc:creator>
	</item><item>
		<title>By: caution live frogs</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211321</link>	
		<description>yeah i&apos;d say dump the width attribute. if you look at any of the pics outside of the page, just by right-click and view image, none of them are too wide - so stop specifying size. should fix it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211321</guid>
		<pubDate>Wed, 24 Nov 2004 12:44:14 -0800</pubDate>
		<dc:creator>caution live frogs</dc:creator>
	</item><item>
		<title>By: Pericles</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211322</link>	
		<description>hmm.. forcing the width of randompic to be 50px (as I should&apos;ve done before) makes them the correct size. but squishes them as if the browser believes that the previous size was correct. Dumping the width argument doesn&apos;t change them. It always seems to be the same images, and I&apos;ve checked again; on the server, they&apos;re 150px wide. I need beer .....</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211322</guid>
		<pubDate>Wed, 24 Nov 2004 12:44:34 -0800</pubDate>
		<dc:creator>Pericles</dc:creator>
	</item><item>
		<title>By: Pericles</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211327</link>	
		<description>(It does the same thing in Dreamweaver on the local copy too; all images are 150px wide).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211327</guid>
		<pubDate>Wed, 24 Nov 2004 12:47:37 -0800</pubDate>
		<dc:creator>Pericles</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211379</link>	
		<description>Could it be that Gecko rendering engines [correctly] treats images as inline while IE treats them as block?  Try:&lt;br /&gt;img { display:block; }&lt;br /&gt;to force a block display across all browsers.&lt;/p&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211379</guid>
		<pubDate>Wed, 24 Nov 2004 13:18:02 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: nikzhowz</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211436</link>	
		<description>It&apos;s probably that min-height:170px rule, coupled with the width:auto. If a pic is too squat, it&apos;ll get stretched vertically and its width resized proportionately. Try ditching them both.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211436</guid>
		<pubDate>Wed, 24 Nov 2004 14:11:05 -0800</pubDate>
		<dc:creator>nikzhowz</dc:creator>
	</item><item>
		<title>By: Pericles</title>
		<link>http://ask.metafilter.com/12139/Firefox-image-resizing-driving-me-mad#211965</link>	
		<description>Nikzhowz wins the prize. Ages ago I put the min-height at 170, as that was the shortest picture, and forgot to change it. (IE seemed to demand some kind of min-height, or it scrunched everything into a 10px high picture). Changing it to 60px made everything lovely.&lt;br&gt;
&lt;br&gt;
Thanks all!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.12139-211965</guid>
		<pubDate>Thu, 25 Nov 2004 12:28:05 -0800</pubDate>
		<dc:creator>Pericles</dc:creator>
	</item>
	</channel>
</rss>
