<?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"
	>

<channel>
	<title>Taming the Wild Wild Web</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/web-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/web-standards</link>
	<description></description>
	<pubDate>Fri, 26 Sep 2008 18:23:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Basic Design Heuristics for Today&#8217;s Web Developer</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/basic-design-heuristics-for-todays-web-developer/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/basic-design-heuristics-for-todays-web-developer/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 18:22:26 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/basic-design-heuristics-for-todays-web-developer/</guid>
		<description><![CDATA[A few basic design principles that every developer should have a fairly good understanding of can be picked up or gleaned from a quick run through of any print or Web design text.
Choice heuristics that are found in today&#8217;s best on-screen presentations, whether in Web, television or cinematic media, are the rule of thirds and [...]]]></description>
			<content:encoded><![CDATA[<p>A few basic design principles that every developer should have a fairly good understanding of can be picked up or gleaned from a quick run through of any print or Web design text.</p>
<p>Choice heuristics that are found in today&#8217;s best on-screen presentations, whether in Web, television or cinematic media, are the rule of thirds and the divine proportion.</p>
<p>The rule of thirds is widely known to be used in photography, and it more or less states that dividing an image into nine equal part can help one aesthetically lead the viewers eye to most important sections of the piece. Imagine overlaying a three by three grid on a photograph. The intersections of these gridlines can help you align the main features of your image.</p>
<p>The divine proportion is a similar guideline that comes in extremely handy for Web media. Also known as the golden ratio, the divine proportion is in effect if the ratio between the sum of two line segments and the larger segment is equivalent to the ratio between the smaller segment and the larger segment. When expressed algebraically, the divine proportion is equivalent to 1:1.61803&#8230; or 1:phi.</p>
<p>Shapes that are constructed with the divine proportion can be used to frame your Web site so that the smaller segment in the ratio makes up your sidebar or header, while the larger segment forms your content division or main section division.</p>
<p>Next, we&#8217;ll be covering some basic typography as applied to design, as developers will always be handling some type of &#8230; type.</p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/basic-design-heuristics-for-todays-web-developer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Overview of Design Principles for the Web Developer</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/overview-of-design-principles-for-the-web-developer/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/overview-of-design-principles-for-the-web-developer/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 18:21:29 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/overview-of-design-principles-for-the-web-developer/</guid>
		<description><![CDATA[In today&#8217;s industry, you either see technological professionals occupying very specific niches within a company or ones that are forced to wear many different hats.
In the next couple of entries here at Taming the Wild Wild Web, we&#8217;ll be focusing on design inspiration for developers who typically only concern themselves with back-end production.
While it may [...]]]></description>
			<content:encoded><![CDATA[<p>In today&#8217;s industry, you either see technological professionals occupying very specific niches within a company or ones that are forced to wear many different hats.</p>
<p>In the next couple of entries here at Taming the Wild Wild Web, we&#8217;ll be focusing on design inspiration for developers who typically only concern themselves with back-end production.</p>
<p>While it may be the case that you might not ever have to fill the role as the principle designer on a project, there are times when knowing about design rules and heuristics can help make your job of constructing and displaying data for page views and CMS modules a little bit easier and lot more worthwhile.</p>
<p>Skip ahead to basic design principles that developers should know, inspirational typography, behavior-level resources.</p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/overview-of-design-principles-for-the-web-developer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Routing the Request: A No-Javascript CSS Style Switcher</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/routing-the-request-a-no-javascript-css-style-switcher/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/routing-the-request-a-no-javascript-css-style-switcher/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 16:09:00 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web development]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/routing-the-request-a-no-javascript-css-style-switcher/</guid>
		<description><![CDATA[View the last three entries in Taming the Wild Wild Web for the necessary markup and code that is required to get our no-Javascript CSS style switcher up and running.
After you have that information down, we still need to construct the request router which will swap the alternate stylesheet for the current style sheet via [...]]]></description>
			<content:encoded><![CDATA[<p>View the last three entries in Taming the Wild Wild Web for the necessary markup and code that is required to get our no-Javascript CSS style switcher up and running.</p>
<p>After you have that information down, we still need to construct the request router which will swap the alternate stylesheet for the current style sheet via our on-page trigger. In our example, this trigger is the link located in the page&#8217;s footer. Notice that it points to a PHP file.</p>
<p>Inside of this file is our request router and it contains the following:</p>
<p>&lt;?php<br />
session_start();</p>
<p>switch ($_SESSION['style']) {<br />
case &#8216;default&#8217;:<br />
$_SESSION['style']=&#8217;alt&#8217;;<br />
break;<br />
case &#8216;alt&#8217;:<br />
$_SESSION['style']=&#8217;default&#8217;;<br />
break;<br />
}</p>
<p>session_write_close();<br />
header(&#8217;location:&nbsp;<a href="http://www.flexiblephilosophy.com'.$_SESSION" title="http://www.flexiblephilosophy.com'.$_SESSION" target="_blank">http://www.flexiblephilosophy.com\&#8217;.Arra&#8230;</a>['page']);</p>
<p>?&gt;</p>
<p>By reading the session variables set via the Web page itself, we can determine which page makes the request for the new stylesheet and which version of the page style is to be served.</p>
<p>Once our output is determined, we simple close out our PHP session for writing (we don&#8217;t want any data getting lost), and redirect our user back to the page which made the request.</p>
<p>That concludes our tutorial on a no-Javascript CSS style switcher.</p>
<p>You can view the <a href="http://www.flexiblephilosophy.com/style-swap-example.php">live example</a> at&nbsp;<a href="http://flexiblephilosophy.com" title="http://flexiblephilosophy. " target="_blank">flexiblephilosophy.com</a>.</p>
<p>The complete code can be viewed from the following links:</p>
<ul>
<li><a href="http://rafb.net/p/sIB7al39.html">The markup</a></li>
<li><a href="http://rafb.net/p/SuzOh339.html">The default stylesheet</a></li>
<li><a href="http://rafb.net/p/zwadMk87.html">The alternative stylesheet</a></li>
<li><a href="http://rafb.net/p/hmLXb473.html">The PHP include</a></li>
<li><a href="http://rafb.net/p/LQa8tN27.html">The PHP router</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/routing-the-request-a-no-javascript-css-style-switcher/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Server Side Switch: A No-Javascript CSS Style Switcher</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/server-side-switch-a-no-javascript-css-style-switcher/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/server-side-switch-a-no-javascript-css-style-switcher/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 15:56:13 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web development]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/server-side-switch-a-no-javascript-css-style-switcher/</guid>
		<description><![CDATA[Navigate through our previous posts in Taming the Wild Wild Web to view both the overview of this project and the HTML/CSS of our dynamic server side CSS style switcher.
Now that we have the markup and declaratives written, we want our page to be able to switch its stylesheet when the &#8220;View alternative page style&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Navigate through our previous posts in Taming the Wild Wild Web to view both the overview of this project and the HTML/CSS of our dynamic server side CSS style switcher.</p>
<p>Now that we have the markup and declaratives written, we want our page to be able to switch its stylesheet when the &#8220;View alternative page style&#8221; link is clicked.</p>
<p>In our example, we&#8217;ll achieve such an effect by employing the use of some PHP. Our script will let us know a few things about the page itself; namely, where the request is coming from, what style the page currently has, and what page style the user desires.</p>
<p>We&#8217;ll save this information in PHP Sessions rather than cookies; so let&#8217;s add the session initialization to the very top of our page.</p>
<p>&lt;?php session_start();  ?&gt;</p>
<p>Next, let&#8217;s add some session variables to determine what page our request is coming from and the style currently set by the browser.</p>
<p>$_SESSION['page'] = $_SERVER['REQUEST_URI'];<br />
if (!isset($_SESSION['style'])) {<br />
$_SESSION['style']=&#8217;default&#8217;;<br />
}</p>
<p>switch ($_SESSION['style']) {<br />
case &#8216;default&#8217;:<br />
$href = &#8216;css/default.css&#8217;;<br />
$title = &#8216;Default&#8217;;<br />
$altHref = &#8216;css/alt.css&#8217;;<br />
$altTitle = &#8216;Alternate&#8217;;<br />
break;<br />
case &#8216;alt&#8217;:<br />
$href = &#8216;css/alt.css&#8217;;<br />
$title = &#8216;Alternate&#8217;;<br />
$altHref = &#8216;css/default.css&#8217;;<br />
$altTitle = &#8216;Default&#8217;;<br />
break;<br />
}</p>
<p>Because this is an awful lot of code to add to the beginning of each of your pages, we&#8217;ll throw it into a simple PHP file (style-swap.include.php) and call for it at the top of each page, after our session initialization.</p>
<p>&lt;?php<br />
session_start();<br />
include &#8217;style-swap.include.php&#8217;;<br />
?&gt;</p>
<p>The variables that we are setting in our <em>switch</em> will be inserted into our link elements that set the current and alternate style sheets for the Web document.</p>
<p>Therefore, let&#8217;s modify our markup to receive these dynamic variables:</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;&lt;?=$href;?&gt;&#8221; title=&#8221;&lt;?=$title;?&gt;&#8221; /&gt;<br />
&lt;link rel=&#8221;alternate stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;&lt;?=$altHref;?&gt;&#8221;  title=&#8221;&lt;?=$altTitle;?&gt;&#8221; /&gt;<br />
Now, we&#8217;re almost ready to test our page. We still need to construct our trigger when the link to view the new page style is clicked.</p>
<p>We&#8217;ll cover that in the next entry at Taming the Wild Wild Web.</p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/server-side-switch-a-no-javascript-css-style-switcher/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Markup and Declaratives: A No-Javascript CSS Style Switcher</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/the-markup-and-declaratives-a-no-javascript-css-style-switcher/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/the-markup-and-declaratives-a-no-javascript-css-style-switcher/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 15:44:36 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web development]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/the-markup-and-declaratives-a-no-javascript-css-style-switcher/</guid>
		<description><![CDATA[In the previous installment of Taming the Wild Wild Web, we discussed a new method for switching the CSS of a page without using Javascript.
Now is the time when we&#8217;ll begin constructing an example to showcase such server side functionality.
To begin, we&#8217;ll build a simple HTML page that has both a default and an alternate [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous installment of Taming the Wild Wild Web, we discussed a new method for switching the CSS of a page without using Javascript.</p>
<p>Now is the time when we&#8217;ll begin constructing an example to showcase such server side functionality.</p>
<p>To begin, we&#8217;ll build a simple HTML page that has both a default and an alternate stylesheet.</p>
<p>First, let&#8217;s get to the markup:<br />
You can view the entire HTML markup <a href="http://rafb.net/p/4Lk1Tp26.html">here</a>.</p>
<p>The most important part of our document is the declaration for the two style sheets.</p>
<p>&lt;link rel=<span class="literal">&#8220;stylesheet&#8221;</span> type=<span class="literal">&#8220;text/css&#8221;</span> href=<span class="literal">&#8220;default.css&#8221;</span> title=<span class="literal">&#8220;Default&#8221;</span> /&gt;</p>
<p>&lt;link rel=<span class="literal">&#8220;alternate stylesheet&#8221;</span> type=<span class="literal">&#8220;text/css&#8221;</span> href=<span class="literal">&#8220;alt.css&#8221;</span>  title=<span class="literal">&#8220;Alternate&#8221;</span> /&gt;</p>
<p>The corresponding styles for our document can be found <a href="http://rafb.net/p/SuzOh339.html">here</a> and <a href="http://rafb.net/p/zwadMk87.html">here</a>, respectively.</p>
<p>It is worth noting that in this example we redeclare our properties and values for every selector, but in a production level implementation you may want to only use a core style sheet and have the selectors&#8217; properties and values that change only be present on your CSS files that will get the swap.</p>
<p>Notice that we have a link in our footer that references our PHP file which will route our style change request.</p>
<p>In the next installment of Taming the Wild Wild Web, we&#8217;ll go over the procedural aspects of this PHP router and the server side includes necessary to give our page its dynamic style switching capability.</p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/the-markup-and-declaratives-a-no-javascript-css-style-switcher/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A CSS Style Switcher Without Javascript</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/a-css-style-switcher-without-javascript/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/a-css-style-switcher-without-javascript/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 15:25:35 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/a-css-style-switcher-without-javascript/</guid>
		<description><![CDATA[There has been a recent trend as of late for Web sites to provide visitors with alternate page view styles to enliven the browsing experience.
While this is a positive for Web standards and accessibility (as it gives those users with vision impairments an option to view high contrast page styles), it also makes for a [...]]]></description>
			<content:encoded><![CDATA[<p>There has been a recent trend as of late for Web sites to provide visitors with alternate page view styles to enliven the browsing experience.</p>
<p>While this is a positive for Web standards and accessibility (as it gives those users with vision impairments an option to view high contrast page styles), it also makes for a pretty cool way to spice up a page with a previous-had or down-right different user interface.</p>
<p>Most solutions to this CSS Style Switcher require that users click a link which triggers a Javascript behavior-level function to switch the current stylesheet and set a cookie to the user&#8217;s computer to save their page-style preference for the remainder of the browsing session.</p>
<p>While I don&#8217;t feel that this is a bad solution - I actually have employed this in the past - I do feel that there are quite a few different ways one can achieve this same effect.</p>
<p>In the following entries on Taming the Wild Wild Web, we&#8217;ll be constructing a Server Side CSS Style Switcher using a small amount of PHP, HTML and CSS only.</p>
<p>Our Style Switcher will be a cursory introduction to a simple method that gives users the ability to switch page view styles via an on-screen link while keeping the toolbar functionality of choosing the Web page&#8217;s stylesheet. The style switcher will also save their preference in a PHP Session, thereby requiring no cookies being set on the user&#8217;s machine.</p>
<p>What is required for this project:</p>
<ul>
<li>One HTML file</li>
<li>One PHP include (to keep our markup a little cleaner)</li>
<li>One PHP file to route our page style request</li>
<li>Two CSS files (to provide our choice of page views)</li>
</ul>
<p>In the next installation of Taming the Wild Wild Web, we&#8217;ll construct our two different page styles so that we can get ready for some dynamic server side switching.</p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/a-css-style-switcher-without-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS Hacks for Google Chrome</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/css-hacks-for-google-chrome/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/css-hacks-for-google-chrome/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 17:59:37 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web development]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/css-hacks-for-google-chrome/</guid>
		<description><![CDATA[Since Google Chrome is a Webkit based browser, we can target it&#8217;s screen rendering the same way we handle Safari.
While 90% of the time you will not need to hack around to fix a site for Chrome/Safari (if you are indeed developing with standards in mind) there are always exceptions.
The one problem I seem to [...]]]></description>
			<content:encoded><![CDATA[<p>Since Google Chrome is a Webkit based browser, we can target it&#8217;s screen rendering the same way we handle Safari.</p>
<p>While 90% of the time you will not need to hack around to fix a site for Chrome/Safari (if you are indeed developing with standards in mind) there are always exceptions.</p>
<p>The one problem I seem to have is when floating multiple elements in a singe div. There seems to be a 1px margin jog between Firefox and Opera/Safari/Chrome.</p>
<p>In order to target Webkit based browsers, we can use the CSS3 selector for the pseudo-class <em>first-of-type</em>.</p>
<p>Since we will only be employing one <em>body</em> element, we set<em> first-of-type</em> onto the document&#8217;s <em>body</em> and then combine it with whichever element we wish to target.</p>
<p>For example:</p>
<p>body:first-of-type #navigation { margin-top:-1px; }</p>
<p><em><a href="http://www.flexiblephilosophy.com">Jeffrey Olchovy</a> is a Web developer, designer and marketing strategist. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/css-hacks-for-google-chrome/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Optimizing Your Web Site for Google Chrome</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/optimizing-your-web-site-for-google-chrome/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/optimizing-your-web-site-for-google-chrome/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 17:34:37 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Web development]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/optimizing-your-web-site-for-google-chrome/</guid>
		<description><![CDATA[Google&#8217;s brand new open source browser debuted the other day, achieving 1% of the Internet perusing market share in no time at all.
This 1% seemed to detract from Firefox&#8217;s user base, and it is yet to be determined if more and more people will make the switch from the Internet dominating IE.
In such cases of [...]]]></description>
			<content:encoded><![CDATA[<p>Google&#8217;s brand new open source browser debuted the other day, achieving 1% of the Internet perusing market share in no time at all.</p>
<p>This 1% seemed to detract from Firefox&#8217;s user base, and it is yet to be determined if more and more people will make the switch from the Internet dominating IE.</p>
<p>In such cases of platform switching, developers need to be aware if their sites are ready for these new up-and-comers.</p>
<p>As far as Google Chrome is concerned, it seems as though it bases its screen rendering on pages that adhere to Web standards (the basis for Google&#8217;s own Webmaster Guidelines), so those sites that are intrinsically constructed with standards compliance in mind will fare much better than those sites which trigger less forgiving browsers&#8217; quirks modes.</p>
<p>If people make the jump to Google Chrome, be ready to see many a people not bothering with sites that no longer are maintained and constructed with proprietary syntax and markup. Consider Google Chrome as a marker for a future Internet-wide sweep of garbage collection.</p>
<p>The other notable feature of Chrome that seems ast0unding is its ability to recall pages for keywords that appear within their Web content.</p>
<p>The better your site is optimized for a given keyword, the better the chance that Chrome&#8217;s omnibar will recall its URL for a past visitor when the said keyword is used as a search term.</p>
<p>In the next installation of <em>Taming the Wild Wild Web</em>, we&#8217;ll discuss tweaking your CSS to deal with a few layout/design inconsistencies you may experience when constructing your pages.</p>
<p><em><a href="http://www.flexiblephilosophy.com">Jeffrey Olchovy</a> is a Web developer, designer and marketing strategist. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/optimizing-your-web-site-for-google-chrome/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Working with a Variety of Image Types</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/working-with-a-variety-of-image-types/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/working-with-a-variety-of-image-types/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 01:41:15 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web development]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/working-with-a-variety-of-image-types/</guid>
		<description><![CDATA[All too often I see designers and developers fall into the habit of sticking with just one file type for their site-wide images. To me, this is terrible practice as doing so will generally lead to slow page load times and high bandwidth consumption. You see, not all images are created equal. Different image compressions [...]]]></description>
			<content:encoded><![CDATA[<p>All too often I see designers and developers fall into the habit of sticking with just one file type for their site-wide images. To me, this is terrible practice as doing so will generally lead to slow page load times and high bandwidth consumption. You see, not all images are created equal. Different image compressions have various attributes that make them more appealing for certain Web graphics.</p>
<p>A good heuristic is to use JPEGs for photographic quality images, GIFs for icons and line-art style graphics, and PNGs for when you require alpha transparency.</p>
<p>However, the above is not written in stone, nor will it typically result in the best file type choice every time.</p>
<p>I personally employ the use of Adobe Photoshop&#8217;s image optimizer (find it under Save for Web and Graphics from the File menu); and spend a considerable amount of time playing with the various options for each image that my layout requires. The few extra minutes spent here is a trade off well worth your time. It will save your visitors frustration and patience when waiting for your page to load before it hits their cache.</p>
<p>And before I go, here&#8217;s some food for thought: It is worth noting that not all JPEGs need to be saved at their maximum quality in order for the graphic to achieve its desired onscreen clarity and aesthetic effect. Check the file size difference between a 300 x 300 px image at 100% quality versus the same image at 75%.</p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/working-with-a-variety-of-image-types/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery PNG Fix for IE6 - Single Instance Images</title>
		<link>http://itknowledgeexchange.techtarget.com/web-standards/jquery-png-fix-for-ie6-single-instance-images/</link>
		<comments>http://itknowledgeexchange.techtarget.com/web-standards/jquery-png-fix-for-ie6-single-instance-images/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 19:41:54 +0000</pubDate>
		<dc:creator>Jeffrey Olchovy</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Web development]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[Web standards]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/web-standards/jquery-png-fix-for-ie6-single-instance-images/</guid>
		<description><![CDATA[For quite some time there have been a few Javascript fixes freely available for download which can correct the lack of alpha transparency handling for png images in archaic versions of Internet Explorer (archaic, in my opinion being anything less than IE 7) - but even to this day, not one of these scripts completely [...]]]></description>
			<content:encoded><![CDATA[<p>For quite some time there have been a few Javascript fixes freely available for download which can correct the lack of alpha transparency handling for png images in archaic versions of Internet Explorer (archaic, in my opinion being anything less than IE 7) - but even to this day, not one of these scripts completely solves this issue with seamless integration and out-of-the-box working functionality.</p>
<p>The best installations require the external linkage and path updating of lengthy Javascript file(s) and 1&#215;1 pixel transparency blocks. While not entirely inconvenient, at times all this seems like overkill just to correct one or two images that require the correct use of alpha transparency on your Web site.</p>
<p>With this being so, I found it generally more convenient to just make the required fix myself for these simple images using a little jQuery and some guidance from Microsoft&#8217;s Internet Explorer knowledge base.</p>
<p>Since I usually only need, say, a container div with a drop shadow or a small graphic with known dimensions to require such alpha transparency (both being CSS background images), I constructed this little personal fix that will correctly handle full png functionality for one CSS background image in IE 6.</p>
<p>The (X)HTML:</p>
<p>&lt;!&#8211;[if lt IE 7]&gt;<br />
&lt;script src=&#8221;path/to/javascript/pngfix.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>The Javascript (pngfix.js):</p>
<p>$(document).ready(function(){</p>
<p>$(&#8217;.pngfix&#8217;).each( function() {<br />
$(this).attr(&#8217;writing-mode&#8217;, &#8216;tb-rl&#8217;);<br />
$(this).css(&#8217;background-image&#8217;, &#8216;none&#8217;);<br />
$(this).css( &#8216;filter&#8217;, &#8216;progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&#8221;path/to/image.png&#8221;,sizingMethod=&#8221;scale&#8221;)&#8217; );<br />
});</p>
<p>});</p>
<p>Just add the class pngfix to the image that requires alpha transparency and update the path in the Javascript file. When you add the class png fix, our jQuery selector applies a &#8216;top-bottom-right-left&#8217; attribute to it in order to be sure it has layout, removes its already defined background image, and applies the new fully functional PNG image to its filter property using Microsoft&#8217;s proprietary Alpha Image Loader.</p>
<p>I have thus far used this with little to no problems - but like I said this was simple personal fix that best works for background images that are attached to selectors that have layout or have known dimensions.</p>
<p>Customize it to meets your needs or use it as a base for a new out-of-the-box jQuery fix for the comprehensive use of alpha transparency in IE 6.</p>
<p><em><a href="http://www.flexiblephilosophy.com">Jeffrey Olchovy</a> is a Web developer, designer and marketing strategist. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/web-standards/jquery-png-fix-for-ie6-single-instance-images/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
