<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6248466633207198034</id><updated>2026-06-09T01:43:28.259-05:00</updated><category term="IE"/><category term="Internet Explorer"/><category term="css3"/><category term="jquery"/><title type='text'>HTML5 And CSS3: Web Design/Development</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dsswebdesign.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6248466633207198034/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dsswebdesign.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Daniel S. Simons</name><uri>http://www.blogger.com/profile/02738089468584150296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6JpTRgO9CIo0Wi-QF7XeG6cqctqlygSjrBY3KqzmyANp4dME5mMNDkE7UVeWE2CeNf1NsMCE9T1DbjV38CEp62XwIKhGhQnKnEsijChbRbmKsnq4ILqlyqCoJDK8psA/s220/daniel.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6248466633207198034.post-4379211049877351345</id><published>2011-05-30T13:08:00.004-05:00</published><updated>2011-05-30T20:13:19.534-05:00</updated><title type='text'>How To Make Your AJAX Site Crawlable: 3 Simple Steps</title><content type='html'>One of the most important aspects of any search engine optimized website is that its content is accessible to search engine bots. &amp;nbsp;If your site is using javascript there is a good chance that some of your content is not being indexed. &amp;nbsp;This will result in lower rankings on google and other search engines. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;A Google Solution&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Luckily Google has a specification for &lt;a href=&quot;http://code.google.com/web/ajaxcrawling/docs/specification.html&quot;&gt;Making AJAX Applications Crawlable&lt;/a&gt;. &amp;nbsp;My implementation of the specification is outlined in three steps below:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1) Hash Fragments That Begin With !&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The first requirement is that all&amp;nbsp;javascript-based&amp;nbsp;links (i.e., links that perform some ajax call and return content as a result) should contain &#39;!&#39; as the first character of the hash fragment:&lt;br /&gt;
&lt;br /&gt;
//example Link from my site&lt;br /&gt;
&lt;code&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #073763;&quot;&gt;&amp;lt;a href=&quot;#!about&quot;&amp;gt;about&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
For history management I&#39;m using &lt;a href=&quot;http://www.asual.com/jquery/address/&quot;&gt;jquery address&lt;/a&gt; with crawlable set to true. &amp;nbsp;You will need to make sure that your javascript code is able to appropriately handle links of this nature. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2) Create Static HTML Pages&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In order for this solution to work you need some html to map to when &amp;nbsp;requests are made by Google-bot. &amp;nbsp;For each AJAX link from step 1, generate a separate html page. &amp;nbsp;For simplicity, name the html page whatever name you have given the hash fragment (i.e., #!about =&amp;gt; about.html). &amp;nbsp;The content of each .html page should contain whatever results from clicking the AJAX link. &amp;nbsp;NOTE: These static pages will be used only for bots.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3) Handle &quot;_escaped_fragment_&quot; Server Side&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
There is a slight bit of ambiguity in Google&#39;s specification about mapping between #! and _escaped_fragment_. &amp;nbsp;All this really boils down to is that when Google-bot is scanning your site, urls with #! will get replaced by ?_escaped_fragment_=. &amp;nbsp;In other words, if you have a url containing #!&amp;lt;some_value&amp;gt;, you can be assured that when Google-bot attempts to index this url, a request containing parameter &#39;_escaped_fragment_&#39; with value &#39;&amp;lt;some_value&amp;gt;&#39; will be made to your server. &amp;nbsp;My primary jsp that handles all requests before doing anything else will look for this parameter and redirect if necessary as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #073763;&quot;&gt; &amp;lt;%&lt;br /&gt;
if(request.getParameter(&quot;_escaped_fragment_&quot;)!=null)&amp;nbsp;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: nowrap;&quot;&gt;&lt;/span&gt;String escapedFragment = request.getParameter(&quot;_escaped_fragment_&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: nowrap;&quot;&gt;&lt;/span&gt;String decodedEscapedFrag = URLDecoder.decode(escapedFragment,&quot;UTF-8&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: nowrap;&quot;&gt; &lt;/span&gt;response.sendRedirect(App.context()+decodedEscapedFrag+&quot;.html&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: nowrap;&quot;&gt;&lt;/span&gt;return;&lt;br /&gt;
}&lt;br /&gt;
%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
In the above code snippet notice that I am appending &#39;.html&#39; to the end of the decodedEscapedFragment. &amp;nbsp;This code takes the hash fragment and redirects to the appropriate static html page. &amp;nbsp;For instance, if the link clicked has href=&quot;#!about&quot;, then&amp;nbsp;request.getParameter(&quot;_escaped_fragment_&quot;) will be equal to &quot;about&quot;. &amp;nbsp;The resulting redirect will have a value of &quot;/about.html&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Test It Out!&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Now that you are finished, there are a couple ways to see if you&#39;re content is now accessible. &amp;nbsp;For each URL containing your new hash fragment, replace &quot;#!&quot; with &quot;?_escaped_fragment_=&quot;, and make sure your static html page is returned by your server. &amp;nbsp;You can try this out at &lt;a href=&quot;http://dsswebdesign.com/&quot;&gt;my website&lt;/a&gt;. &amp;nbsp;You&#39;ll notice that &lt;a href=&quot;http://dsswebdesign.com/#!/about&quot;&gt;http://dsswebdesign.com/#!/about&lt;/a&gt; can be changed to&lt;a href=&quot;http://dsswebdesign.com/?_escaped_fragment_=about&quot;&gt; http://dsswebdesign.com/?_escaped_fragment_=about&lt;/a&gt;, and the page looks the same.&lt;br /&gt;
&lt;br /&gt;
A second way to test this is to add your site to &lt;a href=&quot;https://www.google.com/webmasters/tools&quot;&gt;Webmaster Tools&lt;/a&gt;. &amp;nbsp;Under diagnostics there is an option to &#39;Fetch as Googlebot&#39;. &amp;nbsp;From there you can make sure that each of your #! links are reached successfully by Google-bot.</content><link rel='replies' type='application/atom+xml' href='http://dsswebdesign.blogspot.com/feeds/4379211049877351345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsswebdesign.blogspot.com/2011/05/make-your-ajax-site-crawlable-3-simple.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6248466633207198034/posts/default/4379211049877351345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6248466633207198034/posts/default/4379211049877351345'/><link rel='alternate' type='text/html' href='http://dsswebdesign.blogspot.com/2011/05/make-your-ajax-site-crawlable-3-simple.html' title='How To Make Your AJAX Site Crawlable: 3 Simple Steps'/><author><name>Daniel S. Simons</name><uri>http://www.blogger.com/profile/02738089468584150296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6JpTRgO9CIo0Wi-QF7XeG6cqctqlygSjrBY3KqzmyANp4dME5mMNDkE7UVeWE2CeNf1NsMCE9T1DbjV38CEp62XwIKhGhQnKnEsijChbRbmKsnq4ILqlyqCoJDK8psA/s220/daniel.png'/></author><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6248466633207198034.post-9033174275201886380</id><published>2011-05-28T13:45:00.015-05:00</published><updated>2011-05-29T14:31:13.090-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css3"/><category scheme="http://www.blogger.com/atom/ns#" term="IE"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>Making Sure Your Site Works In Internet Explorer</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;With&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://lifehacker.com/5656286/chromes-use-triples-globally-firefox-holds-steady-and-internet-explorer-drops-below-50&quot;&gt;Chrome usage on the rise&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;and Firefox holding steady, more and more sites are utilizing CSS3 while neglecting to consider behavior in&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;/span&gt;Internet Explorer&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;. IE usage has been in decline now for some time, however, at almost&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;1/4 market share &lt;a href=&quot;http://www.w3schools.com/browsers/browsers_stats.asp&quot;&gt;according to W3&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;, this ugly monster cannot be ignored. When coding your site to here are 3 tips to consider:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;1) :hover,:focus,:active pseudo-classes lack support for most elements in IE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;Thanks to poor browser standards support in IE, many pseudo-classes like hover and focus work for anchor tags only.  To address this IE pseudo-class flaw an easy all-in-one solution is to use&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://jquery.com/&quot;&gt;jquery&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;to add/remove hover/focus/active css classes for elements that should change on these events. For example, if you want the background color of a div to change on hover, your non-IE solution may look like the following:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;//Warning: This won&#39;t work for Internet Explorer 8 and earlier&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;div{background:red;}&lt;br /&gt;
div:hover{background:blue;}&lt;/code&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;Instead use jquery to update your css class as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;$(&#39;div&#39;).hover(function(){$(this).addClass(&#39;hover&#39;);},function(){$(this).removeClass(&#39;hover&#39;);});&lt;/code&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;Because we are using a css class rather than the pseudo-class, your css will change only slightly:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;code&gt;div{background:red;}&lt;br /&gt;
div.hover{background:blue;}&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;What I find convenient about this solution is you can handle additional elements hover effects by simply updating your jquery selector. Say in addition to the div background change we want to add border to all our &#39;li&#39; elements on hover. The selector from above becomes:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;$(&#39;div,li&#39;)&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;And you can add your border in css:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;li.hover{border:1px solid green;}&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;2) Graceful Degradation for IE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;In some cases you many find that a CSS3 feature does not degrade in an acceptable way for IE. If you decide to use&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.w3.org/Style/Examples/007/text-shadow&quot;&gt;text-shadows&lt;/a&gt;, for example, it&#39;s important to consider what the text will look like without them since they are not going to show up in IE. But maybe you just really love the white text on light background with a dark text-shadow. In this case you will have to come up with a workaround for IE so that the text is visible. If you are not using strict doctype then an easy solution is to define in CSS the rule you would like to use for IE, then below define your rule for &#39;all other browsers&#39; using a child selector:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;//Rule used by all browsers&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;div .innerdiv{color:black;}&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;//Override color for all browsers except IE&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;div&amp;gt;.innerdiv{color:white;text-shadow:1px 1px 5px black;}&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;In the above example the resulting text of an element with class name &#39;innerdiv&#39; will be white with black text-shadow in non-IE browsers.  Internet Explorer will render the text black without text-shadow, but keep in mind this trick only works when using a non-strict doctype.  If, on the other hand, you are using strict doctype, then conditional statements can be used as follows:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;code&gt; &amp;lt;!--[if IE]&amp;gt;&lt;br /&gt;
&amp;lt;link href=&quot;/ie.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;
&amp;lt;![endif]--&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;Inside of the ie.css file you can include all your ie specific css&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;3) Using Borders To Address Lack Of Box-Shadow&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;a href=&quot;http://www.css3.info/preview/box-shadow/&quot;&gt;Box-shadow&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;is a great feature of CSS3 that can really help to achieve an updated look and feel you may be hoping for, however, for versions of IE prior to 9 and Firefox prior to 3.5 using box-shadow or -moz-box-shadow in your CSS file would do nothing. As a result, it is necessary to consider what your site looks like without the shadows. If you need an elements boundaries to be identifiable it&#39;s best to use a border (in most cases the same color as the box-shadow color you have chosen).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsswebdesign.blogspot.com/feeds/9033174275201886380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsswebdesign.blogspot.com/2011/05/with-chrome-usage-on-rise-and-firefox.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6248466633207198034/posts/default/9033174275201886380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6248466633207198034/posts/default/9033174275201886380'/><link rel='alternate' type='text/html' href='http://dsswebdesign.blogspot.com/2011/05/with-chrome-usage-on-rise-and-firefox.html' title='Making Sure Your Site Works In Internet Explorer'/><author><name>Daniel S. Simons</name><uri>http://www.blogger.com/profile/02738089468584150296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6JpTRgO9CIo0Wi-QF7XeG6cqctqlygSjrBY3KqzmyANp4dME5mMNDkE7UVeWE2CeNf1NsMCE9T1DbjV38CEp62XwIKhGhQnKnEsijChbRbmKsnq4ILqlyqCoJDK8psA/s220/daniel.png'/></author><thr:total>2</thr:total></entry></feed>