<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AquilaX's development blog &#187; css</title>
	<atom:link href="http://dev.horemag.net/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.horemag.net</link>
	<description>code and so on...</description>
	<lastBuildDate>Thu, 02 Feb 2012 08:29:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Show images depending on the browser&#8217;s width with CSS only</title>
		<link>http://dev.horemag.net/2009/01/20/show-images-depending-on-the-browsers-width-with-css-only/</link>
		<comments>http://dev.horemag.net/2009/01/20/show-images-depending-on-the-browsers-width-with-css-only/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 15:33:55 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=66</guid>
		<description><![CDATA[I had the make promo offers sections form our site. Usually this is an easy task but the requirement on this case was to preserve the full page width design and keep the page usable for 600px wide screens.
So let's start with the HTML portion.
&#160;
&#60;div id=&#34;top_offers&#34;&#62;
  &#60;a href=&#34;#&#34;&#62;&#60;img src=&#34;1.png&#34; alt=&#34;image 1&#34;/&#62;&#60;/a&#62;
  &#60;a href=&#34;#&#34;&#62;&#60;img [...]]]></description>
			<content:encoded><![CDATA[<p>I had the make promo offers sections form <a href="http://jarcomputers.com" onclick="javascript:urchinTracker('/outbound/article/http://jarcomputers.com');">our site</a>. Usually this is an easy task but the requirement on this case was to preserve the full page width design and keep the page usable for 600px wide screens.</p>
<p>So let's start with the HTML portion.</p>
<pre>&nbsp;
&lt;div id=&quot;top_offers&quot;&gt;
  &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;1.png&quot; alt=&quot;image 1&quot;/&gt;&lt;/a&gt;
  &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;2.png&quot; alt=&quot;image 2&quot;/&gt;&lt;/a&gt;
  &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;3.png&quot; alt=&quot;image 3&quot;/&gt;&lt;/a&gt;
  &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;4.png&quot; alt=&quot;image 4&quot;/&gt;&lt;/a&gt;
  &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;5.png&quot; alt=&quot;image 5&quot;/&gt;&lt;/a&gt;
&lt;/div&gt;
&nbsp;</pre>
<p>The HTML will render as this:<br />
<img src="http://dev.horemag.net/wp-content/uploads/ss1-300x259.png" alt="Screen Shot 1" title="ss1" width="300" height="259" class="size-medium wp-image-70" /></p>
<p>Let's add a little css to get the desired effect:</p>
<pre class="css">&nbsp;
  <span style="color: #cc00cc;">#top_offers</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">190px</span>;
    <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#d3d7cf</span>;
    <span style="color: #000000; font-weight: bold;">overflow</span>: <span style="color: #993333;">hidden</span>; <span style="color: #808080; font-style: italic;">/* hide the excess images*/</span>
    <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">justify</span>; <span style="color: #808080; font-style: italic;">/* or center here */</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #cc00cc;">#top_offers</span> a img<span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">20px</span>;
    border<span style="color: #3333ff;">:none</span>;
  <span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Which brings the following results:<br />
<img src="http://dev.horemag.net/wp-content/uploads/ss2-300x237.png" alt="Screen Shot 2" title="Screen Shot 2" width="300" height="237" class="alignnone size-medium wp-image-74" /></p>
<p><img src="http://dev.horemag.net/wp-content/uploads/ss3-300x131.png" alt="Screen Shot 3" title="Screen Shot 3" width="300" height="131" class="alignnone size-medium wp-image-75" /></p>
<p>You can play with the example <a href="http://dev.horemag.net/wp-content/uploads/csssample1/" target="_blank" >here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2009/01/20/show-images-depending-on-the-browsers-width-with-css-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

