<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:at="http://www.sixapart.com/ns/at"
    xmlns:icbm="http://postneo.com/icbm"
    xmlns:rvw="http://purl.org/NET/RVW/0.2/"
    xmlns:media="http://search.yahoo.com/mrss">
    <channel>
        <title>vaniraja.com</title>
        <link>http://vani.vox.com/library/posts/tags/web+development/page/1/</link>
        <description>the fresh-from-the-corner-market VOX edition.</description>
        <language>en</language>
        <generator>Vox</generator>
        <lastBuildDate>Thu, 12 Jul 2007 16:25:31 -0700</lastBuildDate>
        <copyright>Copyright 2007</copyright>
        <docs>http://blogs.law.harvard.edu/tech/rss</docs> 
        <category domain="http://vani.vox.com/tags/">web development</category>  
 
        <item>
            <title>quick n&#39; dirty styles for iPhone</title>
            <link>http://vani.vox.com/library/post/quick-n-dirty-styles-for-iphone.html?_c=feed-rss-full</link>   
            <author>nobody@vox.com(Vani)</author>
            <comments>http://vani.vox.com/library/post/quick-n-dirty-styles-for-iphone.html?_c=feed-rss-full</comments>
            <guid isPermaLink="true">http://vani.vox.com/library/post/quick-n-dirty-styles-for-iphone.html?_c=feed-rss-full</guid> 
            <pubDate>Thu, 12 Jul 2007 16:25:31 -0700</pubDate>         
            
            <description>    
    
    
    

    
    
    

    
    
    

    
    
    
&lt;div at:enclosure=&quot;asset&quot; at:xid=&quot;6a00c22520eeac604a00d4144db8a23c7f&quot; at:format=&quot;medium&quot; at:align=&quot;left&quot;
    class=&quot;enclosure enclosure-left enclosure-medium photo-enclosure&quot; 
     style=&quot;text-align: center; float: left;&quot;&gt;
&lt;div class=&quot;enclosure-inner&quot;
    
        style=&quot;padding: 9px; border: 1px solid; width: px; margin: 0 20px 20px 0;&quot;
    &gt;
    &lt;div class=&quot;enclosure-list&quot;&gt;
        &lt;div class=&quot;enclosure-item photo-asset last&quot;&gt;
    
            &lt;div class=&quot;enclosure-image&quot;&gt;
        
                &lt;a href=&quot;http://vani.vox.com/library/photo/6a00c22520eeac604a00d4144db8a23c7f.html&quot;&gt;&lt;img src=&quot;http://a2.vox.com/6a00c22520eeac604a00d4144db8a23c7f-200pi&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/a&gt;
        
            &lt;/div&gt;
            &lt;div class=&quot;enclosure-meta&quot;&gt;
                &lt;div class=&quot;enclosure-asset-name&quot;&gt;&lt;a href=&quot;http://vani.vox.com/library/photo/6a00c22520eeac604a00d4144db8a23c7f.html&quot; title=&quot;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
            &lt;/div&gt;
    
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!-- end enclosure --&gt;
&lt;p&gt;


I recently redesigned &lt;a href=&quot;http://www.webchic.net&quot;&gt;webchic.net&lt;/a&gt; and wanted to tweak the design to look good on the iPhone. While my first thought was to use a JS style switcher triggered by the iPhone&amp;#39;s unique WebKit referrer, I decided on a much simpler solution for now. &lt;/p&gt;&lt;pre&gt;&lt;pre&gt;&amp;lt;!--[if !IE]&amp;gt;--&amp;gt;&lt;br /&gt;&amp;lt;link media=&amp;quot;only screen and (max-device-width: 480px)&amp;quot;&lt;br /&gt;    href=&amp;quot;iPhone.css&amp;quot; type=&amp;quot;text/css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;!--&amp;lt;![endif]--&amp;gt;&lt;/pre&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Ultimately, only browsers that recognize &lt;em&gt;screen&lt;/em&gt; will understand &lt;em&gt;only&lt;/em&gt;, and only the iPhone fits the category of &lt;em&gt;max-device-width: 480px&lt;/em&gt;.&lt;/p&gt;&lt;p&gt;On a related side note, I&amp;#39;ve notice a lot of developers reciting &amp;quot;browser width 320px&amp;quot; in regards to iPhone development. This is a little misleading, since the tilted, horizontal iPhone screen is much more popular when surfing websites and is 480px wide.&lt;br /&gt;        
    
    
    

    
    
    
&lt;div at:enclosure=&quot;asset&quot; at:xid=&quot;6a00c22520eeac604a00d4144b50bd6a47&quot; at:format=&quot;large&quot; at:align=&quot;center&quot;
    class=&quot;enclosure enclosure-center enclosure-large photo-enclosure&quot; 
     style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;enclosure-inner&quot;
    
        style=&quot;padding: 9px; border: 1px solid; width: px; margin: 10px auto;&quot;
    &gt;
    &lt;div class=&quot;enclosure-list&quot;&gt;
        &lt;div class=&quot;enclosure-item photo-asset last&quot;&gt;
    
            &lt;div class=&quot;enclosure-image&quot;&gt;
        
                &lt;a href=&quot;http://vani.vox.com/library/photo/6a00c22520eeac604a00d4144b50bd6a47.html&quot;&gt;&lt;img src=&quot;http://a5.vox.com/6a00c22520eeac604a00d4144b50bd6a47-320pi&quot; alt=&quot; webchic.net&quot; title=&quot; webchic.net&quot; /&gt;&lt;/a&gt;
        
            &lt;/div&gt;
            &lt;div class=&quot;enclosure-meta&quot;&gt;
                &lt;div class=&quot;enclosure-asset-name&quot;&gt;&lt;a href=&quot;http://vani.vox.com/library/photo/6a00c22520eeac604a00d4144b50bd6a47.html&quot; title=&quot; webchic.net&quot;&gt; webchic.net&lt;/a&gt;&lt;/div&gt;
            &lt;/div&gt;
    
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!-- end enclosure --&gt;

&lt;br /&gt;&lt;pre style=&quot;&quot;&gt;&lt;br /&gt; &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/p&gt;    &lt;p style=&quot;clear:both;&quot;&gt; 
    &lt;a href=&quot;http://vani.vox.com/library/post/quick-n-dirty-styles-for-iphone.html?_c=feed-rss-full#comments&quot;&gt;Read and post comments&lt;/a&gt;   |   
    &lt;a href=&quot;http://www.vox.com/share/6a00c22520eeac604a00d4144b50d26a47?_c=feed-rss-full&quot;&gt;Send to a friend&lt;/a&gt; 
&lt;/p&gt;
 
            </description> 
            <category domain="http://vani.vox.com/tags/">design</category> 
            <category domain="http://vani.vox.com/tags/">css</category> 
            <category domain="http://vani.vox.com/tags/">web development</category> 
            <category domain="http://vani.vox.com/tags/">iphone</category>    
        </item> 
 
        <item>
            <title>The Good Word: PNG opacity (cross-browser)</title>
            <link>http://vani.vox.com/library/post/the-good-word-png-opacity-crossbrowser.html?_c=feed-rss-full</link>   
            <author>nobody@vox.com(Vani)</author>
            <comments>http://vani.vox.com/library/post/the-good-word-png-opacity-crossbrowser.html?_c=feed-rss-full</comments>
            <guid isPermaLink="true">http://vani.vox.com/library/post/the-good-word-png-opacity-crossbrowser.html?_c=feed-rss-full</guid> 
            <pubDate>Fri, 06 Oct 2006 11:52:42 -0700</pubDate>         
            
            <description>    &lt;p&gt;&lt;em&gt;&lt;span style=&quot;font-size: 0.8em;&quot;&gt;In the effort to post more regularly, I&amp;#39;m going to start posting these &amp;quot;Good Word&amp;quot; tidbits. The idea is to spread the word of various code tips and tricks that many people may not be aware of. (If you&amp;#39;ve heard of one before, or use it frequently, give yourself a big pat on the back.) I may or may not post the pros and cons of techniques, but will try to link to some supplementary material.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;PNGs are often a favorite file format for icons, button images and all sorts of things. Transparent PNGs are transparent on ANY background color; fantastic for when your background color changes with the season, for example. PNG transparency support is already well-supported in Mozilla (Firefox, Safari), Opera, IE5 for Mac and a few others. Where doesn&amp;#39;t it work? IE. &lt;/p&gt;&lt;p&gt;Here&amp;#39;s the trick. IE has these semi-useless visual filters, one of which is AlphaImageLoader. Here&amp;#39;s how to use it. &lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #a57e7e&quot;&gt;&lt;strong&gt;&amp;lt;div style=&amp;quot;width: 10px;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; height: 10px;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;  &amp;#160;&amp;#160;  &amp;#160;&amp;#160;  &amp;#160;&amp;#160;  position: relative;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&amp;#39;image.png&amp;#39;, sizingMethod=&amp;#39;crop&amp;#39;);&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Messy to use inline, of course. Ideally, you would call the PNG as a background image from your stylesheet and drop the filter call in your IE-only stylesheet. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;More info: &lt;a href=&quot;http://www.alistapart.com/stories/pngopacity/&quot;&gt;Cross-Browser Variable Opacity with PNG: A Real Solution&lt;/a&gt; &lt;/strong&gt;[&lt;em&gt;&lt;a href=&quot;http://www.alistapart.com/&quot;&gt;A List Apart&lt;/a&gt;&lt;/em&gt;]&lt;br /&gt;&lt;/p&gt;    &lt;p style=&quot;clear:both;&quot;&gt; 
    &lt;a href=&quot;http://vani.vox.com/library/post/the-good-word-png-opacity-crossbrowser.html?_c=feed-rss-full#comments&quot;&gt;Read and post comments&lt;/a&gt;   |   
    &lt;a href=&quot;http://www.vox.com/share/6a00c22520eeac604a00c2252ae1778e1d?_c=feed-rss-full&quot;&gt;Send to a friend&lt;/a&gt; 
&lt;/p&gt;
 
            </description> 
            <category domain="http://vani.vox.com/tags/">css</category> 
            <category domain="http://vani.vox.com/tags/">web development</category> 
            <category domain="http://vani.vox.com/tags/">png</category> 
            <category domain="http://vani.vox.com/tags/">stylesheets</category> 
            <category domain="http://vani.vox.com/tags/">good word</category>   
        </item> 
    </channel>
</rss>

