<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Semantic and Gorgeous Navigation Bars</title>
	<atom:link href="http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/feed" rel="self" type="application/rss+xml" />
	<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars</link>
	<description>Impeccable Code &#124; Beautiful Design</description>
	<lastBuildDate>Thu, 13 May 2010 19:08:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matt Dovey</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-5441</link>
		<dc:creator>Matt Dovey</dc:creator>
		<pubDate>Fri, 01 Dec 2006 15:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-5441</guid>
		<description>There&#039;s no reason for using JavaScript to pre-load images even if you swap the backgrounds out (rather than move them, as you now do). Just use standard IMG tags and set visibility to hidden, or size them to be 1x1px and nestle them away, or whatever - I&#039;m sure you get the idea.</description>
		<content:encoded><![CDATA[<p>There&#8217;s no reason for using JavaScript to pre-load images even if you swap the backgrounds out (rather than move them, as you now do). Just use standard IMG tags and set visibility to hidden, or size them to be 1x1px and nestle them away, or whatever &#8211; I&#8217;m sure you get the idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-467</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 03 May 2006 21:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-467</guid>
		<description>If you&#039;re a fan of reducing the number of images used on a site, you can save lots of things bundled together in this manner.  For instance, instead of creating separate image files for each button, just create one and shift it around as you describe.  As long as you&#039;re dealing with fixed dimensions it&#039;s easy.

Heck, you can even attach background elements to each other depending on the specific uses.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re a fan of reducing the number of images used on a site, you can save lots of things bundled together in this manner.  For instance, instead of creating separate image files for each button, just create one and shift it around as you describe.  As long as you&#8217;re dealing with fixed dimensions it&#8217;s easy.</p>
<p>Heck, you can even attach background elements to each other depending on the specific uses.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheriar Designs: Impeccable Code &#124; Beautiful Design  &#187; Blog Archive   &#187; Nav Bars on Steroids</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-424</link>
		<dc:creator>Sheriar Designs: Impeccable Code &#124; Beautiful Design  &#187; Blog Archive   &#187; Nav Bars on Steroids</dc:creator>
		<pubDate>Mon, 24 Apr 2006 19:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-424</guid>
		<description>[...]  									 	 			 	  	 	 	 	 	 	 		 				   	 		 			Nav Bars on Steroids 	 			 					In Semantic and Gorgeous Navigation Bars I explained the method I use for creating [...]</description>
		<content:encoded><![CDATA[<p>[...] </p>
<p> 	 	 	 	 	 	 		 				   	 		 			Nav Bars on Steroids 	 			 					In Semantic and Gorgeous Navigation Bars I explained the method I use for creating [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheriar Designs</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-221</link>
		<dc:creator>Sheriar Designs</dc:creator>
		<pubDate>Fri, 03 Feb 2006 18:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-221</guid>
		<description>&lt;strong&gt;Explanation of David&#039;s Suggestion:&lt;/strong&gt;

Say you have 3 images, all 100 pixels by 40 pixels - one for normal, one for hover, and one for selected.  Ok, instead of having 3 images and preloading them via javascript and changing them via css you just use one image, in this case it would be 300px by 40px with all three images laying side by side (say, in the order of above - normal, hover, on).  

Now, in your css you just say something like the following to hide the text:

&lt;code&gt;a#yourLink span {
	display:none;
	}&lt;/code&gt;

or ... if you want to be really accessible you could say:

&lt;code&gt;a#yourLink span {
	position:absolute;
	width:100px;
	margin-left:-5000px;
	}&lt;/code&gt;

Because display:none means it won&#039;t be read by screen readers, but if you absolutely position it off the screen it will be hidden, but still &quot;there&quot;

Anyway, now you define your anchors using a window smaller than the actual image, in order to display just part of it.  :

&lt;code&gt;a#yourLink { 
	display:block;
	width:100px;
	height:40px;
	background image: url(yourImage.gif);
	background-position: top left;
	}&lt;/code&gt;

Now for the hover you can change the background position (indicated here by vertical and then horizontal values).  You are basically telling the background image to be moved 100 pixels to the left so that the &quot;second&quot; image is revealed in your window:

&lt;code&gt;a#yourLink:hover {
	background:position: -100px 0;
	}&lt;/code&gt;

Now for the final &quot;on&quot; state:

&lt;code&gt;a#yourLink.on {
	background-position:-200px 0;
	}&lt;/code&gt;

Make sense?</description>
		<content:encoded><![CDATA[<p><strong>Explanation of David&#8217;s Suggestion:</strong></p>
<p>Say you have 3 images, all 100 pixels by 40 pixels &#8211; one for normal, one for hover, and one for selected.  Ok, instead of having 3 images and preloading them via javascript and changing them via css you just use one image, in this case it would be 300px by 40px with all three images laying side by side (say, in the order of above &#8211; normal, hover, on).  </p>
<p>Now, in your css you just say something like the following to hide the text:</p>
<p><code>a#yourLink span {<br />
	display:none;<br />
	}</code></p>
<p>or &#8230; if you want to be really accessible you could say:</p>
<p><code>a#yourLink span {<br />
	position:absolute;<br />
	width:100px;<br />
	margin-left:-5000px;<br />
	}</code></p>
<p>Because display:none means it won&#8217;t be read by screen readers, but if you absolutely position it off the screen it will be hidden, but still &#8220;there&#8221;</p>
<p>Anyway, now you define your anchors using a window smaller than the actual image, in order to display just part of it.  :</p>
<p><code>a#yourLink {<br />
	display:block;<br />
	width:100px;<br />
	height:40px;<br />
	background image: url(yourImage.gif);<br />
	background-position: top left;<br />
	}</code></p>
<p>Now for the hover you can change the background position (indicated here by vertical and then horizontal values).  You are basically telling the background image to be moved 100 pixels to the left so that the &#8220;second&#8221; image is revealed in your window:</p>
<p><code>a#yourLink:hover {<br />
	background:position: -100px 0;<br />
	}</code></p>
<p>Now for the final &#8220;on&#8221; state:</p>
<p><code>a#yourLink.on {<br />
	background-position:-200px 0;<br />
	}</code></p>
<p>Make sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-213</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 01 Feb 2006 22:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-213</guid>
		<description>Hi,

First of all, thank you for providing inspiration. Your enthusiasm is addictive.

Could you spare a few moments to explain David&#039;s suggestion. I can&#039;t quite get my head around it.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of all, thank you for providing inspiration. Your enthusiasm is addictive.</p>
<p>Could you spare a few moments to explain David&#8217;s suggestion. I can&#8217;t quite get my head around it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheriar Designs</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-188</link>
		<dc:creator>Sheriar Designs</dc:creator>
		<pubDate>Mon, 23 Jan 2006 21:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-188</guid>
		<description>I have used David&#039;s suggestion of keeping all images (default, rollover, and on state) in one, and then just changing the position of the image in the css for my last two projects and it has worked beautifully with no flicker and no need for preload images.

Example can be seen &lt;a href=&quot;http://www.manisheriar.com/michael/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.  (Note that this site is still in progress.)</description>
		<content:encoded><![CDATA[<p>I have used David&#8217;s suggestion of keeping all images (default, rollover, and on state) in one, and then just changing the position of the image in the css for my last two projects and it has worked beautifully with no flicker and no need for preload images.</p>
<p>Example can be seen <a href="http://www.manisheriar.com/michael/" rel="nofollow">here</a>.  (Note that this site is still in progress.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hucklesby</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-154</link>
		<dc:creator>David Hucklesby</dc:creator>
		<pubDate>Mon, 09 Jan 2006 02:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-154</guid>
		<description>&lt;b&gt;Erica&lt;/b&gt; - that indeed does make sense. I have heard that setting Internet Explorer (Windows) to &quot;check for new page every visit&quot; is something that many web page designers do. I think it&#039;s used to stop IE reloading an outdated style sheet from the cache.

Firefox is nice here. You can simply use Ctrl+F5 or Ctrl+Shift+R to override the cache.

Bottom line - it&#039;s mostly web designers who get this flickering. Any of the suggested methods will get rid of it. That&#039;s assuming you don&#039;t want to annoy web designers ... ;-)</description>
		<content:encoded><![CDATA[<p><b>Erica</b> &#8211; that indeed does make sense. I have heard that setting Internet Explorer (Windows) to &#8220;check for new page every visit&#8221; is something that many web page designers do. I think it&#8217;s used to stop IE reloading an outdated style sheet from the cache.</p>
<p>Firefox is nice here. You can simply use Ctrl+F5 or Ctrl+Shift+R to override the cache.</p>
<p>Bottom line &#8211; it&#8217;s mostly web designers who get this flickering. Any of the suggested methods will get rid of it. That&#8217;s assuming you don&#8217;t want to annoy web designers &#8230; ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erica</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-153</link>
		<dc:creator>Erica</dc:creator>
		<pubDate>Fri, 06 Jan 2006 10:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-153</guid>
		<description>I have just put something similar on my website and i got rid of the flicker by going into my browser settings and not loading the page each visit if that makes sense, thanks</description>
		<content:encoded><![CDATA[<p>I have just put something similar on my website and i got rid of the flicker by going into my browser settings and not loading the page each visit if that makes sense, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drussell</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-152</link>
		<dc:creator>drussell</dc:creator>
		<pubDate>Thu, 05 Jan 2006 22:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-152</guid>
		<description>Unfortunately, I do see the flicker in IE 6 on &lt;a href=&quot;http://www.manisheriar.com/sparkplug/sap/forBlog.htm&quot; rel=&quot;nofollow&quot;&gt;your great looking nav bar&lt;/a&gt;. I have my browser set to &quot;check for new page on every visit&quot;. It&#039;s not obvious at work on a fast connection, but was apparent on a slower connection at home.

Here are two more links with good looking solutions I&#039;m investigating.

1: http://www.fivesevensix.com/studies/ie6flicker/
2: http://wellstyled.com/css-nopreload-rollovers.html
</description>
		<content:encoded><![CDATA[<p>Unfortunately, I do see the flicker in IE 6 on <a href="http://www.manisheriar.com/sparkplug/sap/forBlog.htm" rel="nofollow">your great looking nav bar</a>. I have my browser set to &#8220;check for new page on every visit&#8221;. It&#8217;s not obvious at work on a fast connection, but was apparent on a slower connection at home.</p>
<p>Here are two more links with good looking solutions I&#8217;m investigating.</p>
<p>1: <a href="http://www.fivesevensix.com/studies/ie6flicker/" rel="nofollow">http://www.fivesevensix.com/studies/ie6flicker/</a><br />
2: <a href="http://wellstyled.com/css-nopreload-rollovers.html" rel="nofollow">http://wellstyled.com/css-nopreload-rollovers.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hucklesby</title>
		<link>http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars/comment-page-1#comment-149</link>
		<dc:creator>David Hucklesby</dc:creator>
		<pubDate>Wed, 04 Jan 2006 21:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://manisheriar.com/blog/semantic-and-gorgeous-navigation-bars#comment-149</guid>
		<description>&lt;b&gt;dRussell&lt;/b&gt; - This is a known problem when using background images and dynamic effects in IE. Unfortunately, this can only be fixed on your server.

See this explanation and solution from &lt;a href=&quot;http://dean.edwards.name/my/flicker.html&quot; title=&quot;Caching in IE.&quot; rel=&quot;nofollow&quot;&gt;Dean Edwards&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><b>dRussell</b> &#8211; This is a known problem when using background images and dynamic effects in IE. Unfortunately, this can only be fixed on your server.</p>
<p>See this explanation and solution from <a href="http://dean.edwards.name/my/flicker.html" title="Caching in IE." rel="nofollow">Dean Edwards</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

