

<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>RSS Feeds :: DEVPPL - Forums > HTML Forum : Topics : Image Scale Down Only</title>
	<!--<atom:link href="http://www.devppl.com/forum" rel="self" type="application/rss+xml" />-->
		<description>TOGETHER WE ARE THE BEST</description>
		<link>http://www.devppl.com/forum</link>
		<language>en-gb</language>
		<pubDate>Tue, 17 Aug 2004 14:07:13 +0100</pubDate>
		<lastBuildDate>Mon, 23 Nov 2009 21:14:15 +0000</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MSSTI v0.0.1 - (C) 2008 leviatan21 - http://www.mssti.com/</generator>
		<copyright>Copyright : (c) RSS Feeds :: DEVPPL - Tue, 17 Aug 2004 14:07:13 +0100</copyright>
		<dc:creator>webmaster@devppl.com (DEVPPL)</dc:creator>

		<image>
			<title>RSS Feeds :: DEVPPL - Forums > HTML Forum : Topics : Image Scale Down Only</title>
			<url>http://www.devppl.com/forum/styles/DEVPPL-v2/imageset/site_logo.gif</url>
			<link>http://www.devppl.com/forum</link>
		</image>
		<ttl>60</ttl>
		
		<item>
			<title>Image Scale Down Only</title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=51948#p51948</link>
				<description><![CDATA[  Hi,<br />I'm looking for a way (any way, could be html, css or
javascript) to make an image to be scale down only. Here is what I means:
if I have somethinglike<br /><br /><dl class="codebox"><dt>Code: <a
href="#" onclick="selectCode(this); return false;"
class="postlink-local">Select all</a></dt><dd><code><img src="picture.jpg"
width="100%" alt=""/></code></dd></dl> <br /><br />it will fill the full
space it can occupy (let say the whole viewport). Now if I have image with
width resolution of 800px, and my viewport is 1024px, it will be scaled up,
and if the viewport is 640px, it will be scaled down.<br /><br />What I
want is that if the viewport is 1024px, it is not scaled at all (remain at
the original resolution, that is 800px). But if the viewport is less than
1024px, than it will be scaled down to fit.<br /><br />Is there a way to do
this?<br /><br />I can do this is using XSL (scalefit="1", width="100%",
and contentdepth="100%"). But since my site is going for XHTML 1
Transitional compliance, I can't do that. Any idea how to do it with the
normal HTML or CSS2 (or worst case scenario...<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=43901">gosaldar</a> &bull; on Wed May 27, 2009 10:04 am &bull; Replies 0 &bull; Views 555</p><hr />]]></description>
					<content:encoded><![CDATA[  Hi,<br />I'm looking for a way (any way, could be html, css or
javascript) to make an image to be scale down only. Here is what I means:
if I have somethinglike<br /><br /><dl class="codebox"><dt>Code: <a
href="#" onclick="selectCode(this); return false;"
class="postlink-local">Select all</a></dt><dd><code><img src="picture.jpg"
width="100%" alt=""/></code></dd></dl> <br /><br />it will fill the full
space it can occupy (let say the whole viewport). Now if I have image with
width resolution of 800px, and my viewport is 1024px, it will be scaled up,
and if the viewport is 640px, it will be scaled down.<br /><br />What I
want is that if the viewport is 1024px, it is not scaled at all (remain at
the original resolution, that is 800px). But if the viewport is less than
1024px, than it will be scaled down to fit.<br /><br />Is there a way to do
this?<br /><br />I can do this is using XSL (scalefit="1", width="100%",
and contentdepth="100%"). But since my site is going for XHTML 1
Transitional compliance, I can't do that. Any idea how to do it with the
normal HTML or CSS2 (or worst case scenario...]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=51"><![CDATA[HTML Forum]]></category>
			<dc:creator><![CDATA[43901]]></dc:creator>
			<dc:date>2009-05-27T10:04:27+01:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=51948#p51948</guid>
		</item>
	
	</channel>
</rss>