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

<channel>
	<title>Onyx Design Weblog &#187; Featured</title>
	<atom:link href="http://www.onyx-design.net/category/featured/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onyx-design.net</link>
	<description>A weblog about webdesign, webdevelopment, css, php and other webrelated topics.</description>
	<lastBuildDate>Thu, 03 Jun 2010 15:34:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Showcase: Social Media Buttons</title>
		<link>http://www.onyx-design.net/featured/social-media-buttons/</link>
		<comments>http://www.onyx-design.net/featured/social-media-buttons/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 08:14:37 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Showcase]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/showcase/showcase-social-media-buttons/</guid>
		<description><![CDATA[Social Media sites like digg and delicious have become of great importance for the traffic of a blog. Everyone wants to be dugg so every blogger adds social media buttons to their blog. But sometimes it&#8217;s very boring, all those standard &#8217;share this&#8217; and &#8216;digg&#8217; widgets on every page. Luckily there are some designers who [...]]]></description>
			<content:encoded><![CDATA[<p>Social Media sites like <a href="http://www.digg.com" rel="nofollow" >digg</a> and <a href="http://www.delicious.com" rel="nofollow" >delicious</a> have become of great importance for the traffic of a blog. Everyone wants to be <em>dugg</em> so every blogger adds social media buttons to their blog. But sometimes it&#8217;s very boring, all those standard &#8217;share this&#8217; and &#8216;digg&#8217; widgets on every page. Luckily there are some designers who melted the social media links into their design. <strong>29 creative examples:</strong><span id="more-145"></span></p>
<h3>1. <a href="http://www.cssglobe.com" rel="nofollow" >CSSGlobe</a></h3>
<p>Icons for Digg, StumbleUpon, Reddit and DesignFloat. Unobtrusive and stylish.</p>
<p><a href="http://www.cssglobe.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/cssglobe.jpg" alt="cssglobe" width="400" height="128" /></a></p>
<h3>2. <a href="http://www.snook.ca" rel="nofollow" >Snook</a></h3>
<p>These two buttons got a nice place in the article footer. The ma.gnolia icon fits great with the green colour.</p>
<p><a href="http://www.snook.ca" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/snook-ca.jpg" alt="snook-ca" width="400" height="128" /></a></p>
<h3>3. <a href="http://www.webdesignerwall.com" rel="nofollow" >Webdesigner Wall</a></h3>
<p>The social media buttons are placed well and fit great in the design. The handdrawn &#8216;Digger&#8217; makes the standard digg widget a great design element.</p>
<p><a href="http://www.webdesignerwall.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/webdesignerwall.jpg" alt="webdesignerwall" width="400" height="128" /></a></p>
<p><a href="http://www.webdesignerwall.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/webdesignerwall2.jpg" alt="webdesignerwall2" width="400" height="128" /></a></p>
<h3>4. <a href="http://woork.blogspot.com" rel="nofollow" >Woork</a></h3>
<p>Woork has an &#8216;Add to delicious&#8217; button in a nice, handwritten font combined with a speech bubble with the count. The compact digg button is more standard, but it looks good in this lay-out.</p>
<p><a href="http://woork.blogspot.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/woork.jpg" alt="woork" width="400" height="128" /></a></p>
<h3>5. <a href="http://arstechnica.com/" rel="nofollow" >Ars Technica</a></h3>
<p><a href="http://arstechnica.com/" rel="nofollow" >Ars Technica</a> uses a nice homemade digg button with counter.</p>
<p><a href="http://arstechnica.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/arstechnica2.jpg" alt="arstechnica2" width="400" height="128" /></a></p>
<h3>6. <a href="http://icanhascheezburger.com/" rel="nofollow" >I Can Has Cheeseburger</a></h3>
<p>A few cartoony buttons in a own style. Very creative!</p>
<p><a href="http://icanhascheezburger.com/" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/icanhascheeseburger.jpg" alt="icanhascheeseburger" width="400" height="128" /></a></p>
<h3>7. <a href="http://www.ilovetypography.com" rel="nofollow" >I love Typography</a></h3>
<p>Four small black and white buttons with smooth rounded corners. Nonobstrusive and stylish.</p>
<p><a href="http://www.ilovetypography.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/ilovetypography.jpg" alt="ilovetypography" width="400" height="128" /></a></p>
<h3>8. <a href="http://www.noupe.com" rel="nofollow" >Noupe</a></h3>
<p><a href="http://noupe.com" rel="nofollow" >Noupe</a> uses three small icons. The look good, but it bothers me a bit that they aren&#8217;t transparent.</p>
<p><a href="http://www.noupe.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/noupe.jpg" alt="noupe" width="400" height="128" /></a></p>
<h3>9. <a href="http://www.lifehacker.com" rel="nofollow" >Lifehacker</a></h3>
<p>A few really small social icons.</p>
<p><a href="http://www.lifehacker.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/lifehacker.jpg" alt="lifehacker" width="400" height="128" /></a></p>
<h3>10. <a href="http://www.problogger.com" rel="nofollow" >Problogger</a></h3>
<p>The icons themself are not special, but the list fits great in the columned design of the article footer.</p>
<p><a href="http://www.problogger.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/problogger.jpg" alt="problogger" width="400" height="128" /></a></p>
<h3 style="text-align: center;">Other Examples:</h3>
<p style="text-align: center;"><a href="http://www.askthecssguy.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/askthecssguy-1.jpg" alt="askthecssguy" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.askthecssguy.com" rel="nofollow" >Ask the Css Guy</a></p>
<p style="text-align: center;"><a href="http://blogstorm.co.uk" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/blogstorm-co-uk.jpg" alt="blogstorm-co-uk" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://blogstorm.co.uk" rel="nofollow" >Blogstorm</a></p>
<p style="text-align: center;"><a href="http://www.boingboing.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/boingboing.jpg" alt="boingboing" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.boingboing.com" rel="nofollow" >Boing Boing</a></p>
<p style="text-align: center;"><a href="http://www.copyblogger.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/copyblogger.jpg" alt="copyblogger" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.copyblogger.com" rel="nofollow" >Copyblogger</a></p>
<p style="text-align: center;"><a href="http://dailyblogtips.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/dailyblogtips.jpg" alt="dailyblogtips" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.dailyblogtips.com" rel="nofollow" >Daily Blog Tips</a></p>
<p style="text-align: center;"><a href="http://www.designreviver.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/designreviver-com.jpg" alt="designreviver-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.designreviver.com" rel="nofollow" >Design Reviver</a></p>
<p style="text-align: center;"><a href="http://dev.opera.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/dev-opera-com.jpg" alt="dev-opera-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://dev.opera.com" rel="nofollow" >Opera Development Blog</a></p>
<p style="text-align: center;"><a href="http://www.divitodesign.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/divitodesign-com.jpg" alt="divitodesign-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.divitodesign.com" rel="nofollow" >Divito Design</a></p>
<p style="text-align: center;"><a href="http://www.fuelyourcreativity.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/fuelyourcreativity-com.jpg" alt="fuelyourcreativity-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.fuelyourcreativity.com" rel="nofollow" >Fuel your creativity</a></p>
<p style="text-align: center;"><a href="http://machinist.salon.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/machinist-salon.jpg" alt="machinist-salon" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://machinist.salon.com" rel="nofollow" >machinist.salon.com</a></p>
<p style="text-align: center;"><a href="http://www.problogdesign.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/problogdesign.jpg" alt="problogdesign" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.problogdesign.com" rel="nofollow" >Problogdesign</a></p>
<p style="text-align: center;"><a href="http://www.shapeshed.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/shapeshed-com.jpg" alt="shapeshed-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.shapeshed.com" rel="nofollow" >Shapeshed</a></p>
<p style="text-align: center;"><a href="http://www.spoongraphics.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/spoongraphics.jpg" alt="spoongraphics" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.spoongraphics.com" rel="nofollow" >Spoongraphics</a></p>
<p style="text-align: center;"><a href="http://thecodecentral.com/" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/thecodecentral.jpg" alt="thecodecentral" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://thecodecentral.com/" rel="nofollow" >The Code Central</a></p>
<p style="text-align: center;"><a href="http://www.thewatchmakerproject.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/thewatchmakerproject-com.jpg" alt="thewatchmakerproject-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.thewatchmakerproject.com" rel="nofollow" >The Watchmaker Project</a></p>
<p style="text-align: center;"><a href="http://www.tutorialblog.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/tutorialblog.jpg" alt="tutorialblog" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.tutorialblog.com" rel="nofollow" >TutorialBlog</a></p>
<p style="text-align: center;"><a href="http://www.tutorialsphere.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/tutorialsphere-com.jpg" alt="tutorialsphere-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.tutorialsphere.com" rel="nofollow" >TutorialSphere</a></p>
<p style="text-align: center;"><a href="http://www.videojug.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/videojug-com.jpg" alt="videojug-com" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.videojug.com" rel="nofollow" >VideoJug</a></p>
<p style="text-align: center;"><a href="http://www.youtube.com" rel="nofollow" ><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/08/youtube.jpg" alt="youtube" width="400" height="128" /></a></p>
<p style="text-align: center;"><a href="http://www.youtube.com" rel="nofollow" >Youtube</a></p>
<h3>The Trend</h3>
<p>The most common place for the social media buttons is the footer. However, some designers are experimenting with other places like the post title or first paragraph. <strong>Plain text links</strong> are getting more popular too. There are still a lot of standard buttons out there, but the <strong>small icons</strong> (16&#215;16 pixels or a bit larger) are getting more common, which I think is a good development.</p>
<p>I hope you got some inspiration and if you have encountered other <strong>creative and nonobtrusive</strong> examples, leave a comment and tell it and I will add it to the article.</p>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/featured/social-media-buttons/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>CSS Diseases: Divitis &amp; Classitis</title>
		<link>http://www.onyx-design.net/featured/css-diseases-divitis-classitis/</link>
		<comments>http://www.onyx-design.net/featured/css-diseases-divitis-classitis/#comments</comments>
		<pubDate>Wed, 28 May 2008 13:00:54 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/css/css-diseases-divitis-classitis/</guid>
		<description><![CDATA[Are you one of the CSS coders that use &#60;div&#62;-tags for anything and add classes to every element? Learn why it&#8217;s wrong to do that and how you can cure your CSS disease.

What are Divitis and Classitis?
The terms Divitis and Classitis were first coined by Jeffrey Zeldman, in his book â€œDesigning With Web Standardsâ€ (thanks [...]]]></description>
			<content:encoded><![CDATA[<p>Are you one of the <acronym title="Cascading Style Sheets">CSS</acronym> coders that use &lt;div&gt;-tags for <em>anything</em> and add classes to every element? Learn why it&#8217;s wrong to do that and how you can cure your <acronym title="Cascading Style Sheets">CSS</acronym> disease.</p>
<p><span id="more-111"></span></p>
<h3>What are Divitis and Classitis?</h3>
<p>The terms Divitis and Classitis were first coined by Jeffrey Zeldman, in his book â€œDesigning With Web Standardsâ€ (thanks reader John). There is a pretty good explanation of what it is at <a href="http://www.tyssendesign.com.au/articles/faqs/what-is-divitis/" rel="nofollow" >Tyssen Design</a>:</p>
<blockquote><p>â€˜Divitisâ€™ is a term used to describe an error common amongst newcomers to building <acronym title="Cascading Style Sheets">CSS</acronym>-based sites whereby they use too many divs for everything. Divitis is related to â€˜classitisâ€™ and â€™span maniaâ€™, both terms used to describe the practise of combining spans with a class to style content when a more appropriate tag is available</p></blockquote>
<h4>Why is it wrong?</h4>
<p>Here are three reasons, why you shouldn&#8217;t use too much divs or spans:</p>
<ul>
<li><strong>It is not semantic<br />
</strong>Semantic coding, is using an element the way it&#8217;s meant to be used. For example: using tables for a design is wrong. Tables are meant for structuring tabular data only.</li>
<li><strong>It is bad for SEO<br />
</strong>Search engines pay attention to certain elements, like &lt;h#&gt;. If you not specify the content by using a neutral element like &lt;div&gt;, the search engines don&#8217;t know whether that content is important.</li>
<li><strong>It is superfluous<br />
</strong>Using unnecessary tags means more code, more code means a larger file and a larger file means more bandwith use and slower pageloads.</li>
</ul>
<h3>Examples</h3>
<h4>Header</h4>
<p>On a lot of site&#8217;s the following code is used for the header of the page:</p>
<p><code>&lt;div id="header&gt;<br />
&lt;img src="logo.jpg" alt="My site name" /&gt;<br />
&lt;/div&gt;</code><code><br />
</code></p>
<p>But it&#8217;s more semantic to use a &lt;h1&gt;-tag like this:</p>
<p><code>&lt;h1&gt;My site name&lt;/h1&gt;</code></p>
<p>And the following <acronym title="Cascading Style Sheets">CSS</acronym> code:</p>
<p><code>h1 {<br />
background:url(logo.jpg);<br />
text-indent:-9999px; /*(that will remove the text from the page)*/<br />
width:800px;<br />
height:150px;<br />
}</code></p>
<p>We just changed the &lt;div&gt; into a &lt;h1&gt;. This is good for SEO, for the search engine now sees that header image is the most important part of the page. And it&#8217;s more semantic to: the &lt;h1&gt; is meant for the most important header of the page, in this case the site name.</p>
<h4>Navigation</h4>
<p>I often see divs and spans used for navigation, while using a list is much easier. For example:</p>
<p>HTML:<br />
<code>&lt;div id="menu"&gt;<br />
&lt;span class="menu_item"&gt;Menu Item&lt;/span&gt;<br />
&lt;span class="menu_item"&gt;Menu Item&lt;/span&gt;<br />
&lt;span class="menu_item"&gt;Menu Item&lt;/span&gt;<br />
&lt;span class="menu_item"&gt;Menu Item&lt;/span&gt;<br />
&lt;/div&gt;</code></p>
<p>CSS:<br />
<code>#menu {<br />
/* your style*/<br />
}<br />
.menu_item {<br />
/* your style */<br />
}</code></p>
<p>First of all, there is no need to add a class to the span tags. You can easily target the &lt;span&gt; with <acronym title="Cascading Style Sheets">CSS</acronym> without a class. Like this:</p>
<p>HTML:<br />
<code>&lt;div id="menu"&gt;<br />
&lt;span&gt;Menu Item&lt;/span&gt;<br />
&lt;span&gt;Menu Item&lt;/span&gt;<br />
&lt;span&gt;Menu Item&lt;/span&gt;<br />
&lt;span&gt;Menu Item&lt;/span&gt;<br />
&lt;/div&gt;</code></p>
<p>CSS:<br />
<code>#menu {<br />
/* your style*/<br />
}<br />
#menu span {<br />
/* your style */<br />
}</code></p>
<p>But it would be more appropriate to use an unordered list (ul). You can see that you can very easily decrease the amount of code you use on your page.</p>
<p>HTML:<br />
<code>&lt;ul id="menu"&gt;<br />
&lt;li&gt;Menu Item&lt;/li&gt;<br />
&lt;li&gt;Menu Item&lt;/li&gt;<br />
&lt;li&gt;Menu Item&lt;/li&gt;<br />
&lt;li&gt;Menu Item&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<p>CSS:<br />
<code>#menu {<br />
/* your style*/<br />
}<br />
#menu li {<br />
/* your style */<br />
}</code></p>
<h4>Other elements</h4>
<p>The previous examples are very basic, but even advanced <acronym title="Cascading Style Sheets">CSS</acronym> users don&#8217;t always use the right elements. Do you use <em>&lt;adress&gt;</em> for your contact data? Or <em>&lt;abbr&gt;</em> for you abbrevations?</p>
<h3>Conclusion</h3>
<p>Divitis, Classitis and over-using of spans are some of the most common <acronym title="Cascading Style Sheets">CSS</acronym> mistakes, but they are also easy to cure. Think a bit further that divs and spans and you&#8217;re almost there!</p>
<h3>Further Reading</h3>
<ul>
<li><a href="http://www.onyx-design.net/weblog2/css/css-adjacent-sibling-selector/"><acronym title="Cascading Style Sheets">CSS</acronym> Adjacent Sibling Selector</a>; this <acronym title="Cascading Style Sheets">CSS</acronym> selector is not well known but can be used to target some specific elements, and you don&#8217;t have to give them a class if you use this <acronym title="Cascading Style Sheets">CSS</acronym> selector.</li>
<li><a href="http://csscreator.com/?q=divitis" rel="nofollow" ><acronym title="Cascading Style Sheets">CSS</acronym> Creator Divitis: What It Is And How To Cure It</a></li>
<li><a href="http://www.tyssendesign.com.au/articles/faqs/what-is-divitis/" rel="nofollow" >What is Divitis? &#8211; Tyssen Design</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/featured/css-diseases-divitis-classitis/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>CSS coding for cross browser compatibility</title>
		<link>http://www.onyx-design.net/featured/css-coding-for-cross-browser-compatibility/</link>
		<comments>http://www.onyx-design.net/featured/css-coding-for-cross-browser-compatibility/#comments</comments>
		<pubDate>Mon, 12 May 2008 10:11:06 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/css/css-coding-for-cross-browser-compatibility/</guid>
		<description><![CDATA[Cross browser compatibility can be hard to achieve, but if you follow a few guidelines, you can make your CSS cross browser compatible a lot easier. Reset your CSS, use supported techniques and don&#8217;t forget to validate.
Reset your CSS
All browsers have default styles applied to certain HTML elements. For example, a h1 element is bold [...]]]></description>
			<content:encoded><![CDATA[<p>Cross browser compatibility can be hard to achieve, but if you follow a few guidelines, you can make your <acronym title="Cascading Style Sheets">CSS</acronym> cross browser compatible a lot easier. Reset your <acronym title="Cascading Style Sheets">CSS</acronym>, use supported techniques and don&#8217;t forget to validate.<span id="more-106"></span></p>
<h3>Reset your <acronym title="Cascading Style Sheets">CSS</acronym></h3>
<p>All browsers have default styles applied to certain <acronym title="HyperText Markup Language">HTML</acronym> elements. For example, a <em>h1</em> element is bold and larger by default, and has some margin too. The problem is that all browsers have different default styles so your <em>h1</em> won&#8217;t look the same in every browser. The font-size isn&#8217;t really</p>
<p>The solution is to <em>reset</em> the default styles of each browser and build it up again with your own styles. Because you&#8217;ve removed the standard browser styles, there won&#8217;t be any difference between the browsers. It&#8217;s like starting on a clean sheet.</p>
<p>There are a lot of <acronym title="Cascading Style Sheets">CSS</acronym> Resets available but <a href="http://meyerweb.com/eric/tools/css/reset/" rel="nofollow" >Eric Meyer&#8217;s <acronym title="Cascading Style Sheets">CSS</acronym> Reset</a> is the most popular, according to a <a href="http://css-tricks.com/poll-results-what-css-reset-do-you-use/" rel="nofollow" >poll on <acronym title="Cascading Style Sheets">CSS</acronym>-Tricks</a>. A round up of the most used <acronym title="Cascading Style Sheets">CSS</acronym> Resets can be found on <a href="http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/" rel="nofollow" >here</a>.</p>
<p><strong>The disadvantage of a <acronym title="Cascading Style Sheets">CSS</acronym> reset</strong> is that you have to write a lot more code. Every element you reset, has to be build up again. That&#8217;s the reason why a lot of designers use a custom <acronym title="Cascading Style Sheets">CSS</acronym> Reset (13% according to the <acronym title="Cascading Style Sheets">CSS</acronym>-Tricks poll) or <a href="http://snook.ca/archives/html_and_css/no_css_reset/" rel="nofollow" >no <acronym title="Cascading Style Sheets">CSS</acronym> reset at all</a>. Veerle Pieters showed <a href="http://veerle.duoh.com/blog/comments/starting_with_css_and_bug_fixing_tips/#c_18605" rel="nofollow" >her limited <acronym title="Cascading Style Sheets">CSS</acronym> Reset</a> in a reply to a question of <a href="http://veerle.duoh.com/blog/comments/starting_with_css_and_bug_fixing_tips/#c_18598" rel="nofollow" >mine</a>.</p>
<p>A <acronym title="Cascading Style Sheets">CSS</acronym> Reset is important for cross browser compatibility, but you have to decide for yourself how far you must go when resetting your <acronym title="Cascading Style Sheets">CSS</acronym> file.</p>
<h3>Using supported techniques</h3>
<p><acronym title="Cascading Style Sheets">CSS</acronym> offers a lot of techniques, but not all of them are good supported by every browser. For example the <em>:before</em> and <em>:after</em> pseudo selectors, which don&#8217;t work in any version of Internet Explorer, shouldn&#8217;t be used.</p>
<p>Nor should the attribute selectors (like <em>a[href $='.pdf']</em>), for their bad browser support. If you want to use the attribute selectors, use <a href="http://www.webdesignerwall.com/demo/jquery/link-types.html" rel="nofollow" >jQuery</a> instead of <a href="http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html" rel="nofollow" ><acronym title="Cascading Style Sheets">CSS</acronym></a>. jQuery is a good way to imitate <acronym title="Cascading Style Sheets">CSS</acronym> selectors. It can be downloaded <a href="http://docs.jquery.com/Downloading_jQuery" rel="nofollow" >here</a>.</p>
<p>A good overview of <acronym title="Cascading Style Sheets">CSS</acronym> Selectors and their browser support can be found <a href="http://www.westciv.com/style_master/academy/browser_support/selectors.html" rel="nofollow" >here</a>.</p>
<h3>Validate</h3>
<p>I think this one is obvious: Take the time to validate your <acronym title="Cascading Style Sheets">CSS</acronym> styles. Cross browser compatibility is way easier with good and valid <acronym title="Cascading Style Sheets">CSS</acronym>. You can validate your <acronym title="Cascading Style Sheets">CSS</acronym> file using the <a href="http://jigsaw.w3.org/css-validator/" rel="nofollow" >W3 <acronym title="Cascading Style Sheets">CSS</acronym> Validator</a>.</p>
<h3>Summary</h3>
<p>Follow these three guidelines and your <acronym title="Cascading Style Sheets">CSS</acronym> file will have a lot more browser support:</p>
<ul>
<li>Reset your <acronym title="Cascading Style Sheets">CSS</acronym>,</li>
<li>Use only supported techniques and&#8230;</li>
<li>Validate!</li>
</ul>
<p>What are the techniques that you use to assure cross browser compatibility? Please leave a comment and share your thoughts.</p>
<h3>Further Reading</h3>
<ul>
<li><a href="http://www.onyx-design.net/weblog2/other/cross-browser-compatible-in-5-steps/">Make your site cross browser compatible in 5 steps</a></li>
<li><a href="http://www.onyx-design.net/weblog2/featured/css-hacks-inside-css/"><acronym title="Cascading Style Sheets">CSS</acronym> hacks inside <acronym title="Cascading Style Sheets">CSS</acronym></a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/featured/css-coding-for-cross-browser-compatibility/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>12 Articles and Tools for CSS structuring and optimising</title>
		<link>http://www.onyx-design.net/featured/12-articles-and-tools-for-css-structuring-and-optimising/</link>
		<comments>http://www.onyx-design.net/featured/12-articles-and-tools-for-css-structuring-and-optimising/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 08:01:56 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/css/12-articles-and-tools-for-css-structuring-and-optimising/</guid>
		<description><![CDATA[Optimising andÂ structuring your CSS file is important, especially when you have a large stylesheet. Optimising and structuring your site makes your stylesheet more readable, which makes it easier to update. It can also make your CSS file smaller in size, so your page will load quicker. A list of great tools and articles to optimise [...]]]></description>
			<content:encoded><![CDATA[<p>Optimising andÂ structuring your <acronym title="Cascading Style Sheets">CSS</acronym> file is important, especially when you have a large stylesheet. Optimising and structuring your site makes your stylesheet more readable, which makes it easier to update. It can also make your <acronym title="Cascading Style Sheets">CSS</acronym> file smaller in size, so your page will load quicker. A list of great tools and articles to optimise and structure your <acronym title="Cascading Style Sheets">CSS</acronym>.<span id="more-92"></span></p>
<h3>Articles</h3>
<p><strong><a href="http://friendlybit.com/css/how-to-structure-large-css-files/" rel="nofollow" >How to structure large css files</a></strong><br />
An extensive article whith a lot of tips and tricks to structure large <acronym title="Cascading Style Sheets">CSS</acronym> files.</p>
<p><strong><a href="http://woork.blogspot.com/2008/03/write-well-structured-css-file-without.html" rel="nofollow" >Write a well structured <acronym title="Cascading Style Sheets">CSS</acronym> file without becoming crazy</a></strong><br />
A great article on Woork explaining how to be simple, methodic and &#8220;elegant-code&#8221; oriented.</p>
<p><a href="http://woork.blogspot.com/2008/01/optimize-your-css-files-to-improve-code.html" rel="nofollow" ><strong>Optimize your <acronym title="Cascading Style Sheets">CSS</acronym> files to improve code readability</strong></a><br />
Another article on Woork, very clear with much example code.</p>
<p><a href="http://woork.blogspot.com/2008/04/top-down-approach-to-simplify-your-css.html" rel="nofollow" ><strong>Top-Down approach to simplify your <acronym title="Cascading Style Sheets">CSS</acronym> code</strong></a><br />
What is the correct approach to design a <acronym title="Cascading Style Sheets">CSS</acronym> file? Well, it&#8217;s the Top-Down approach. It&#8217;s about minimizing the number of <acronym title="Cascading Style Sheets">CSS</acronym> elements and using standard <acronym title="HyperText Markup Language">HTML</acronym> tags (like h1, p, ul, &#8230;)</p>
<p><a href="http://css-tricks.com/videos/css-tricks-video-8.php"><strong><acronym title="Cascading Style Sheets">CSS</acronym> Formatting Screencast<br />
</strong></a>A screencast on <acronym title="Cascading Style Sheets">CSS</acronym> Tricks, showing how to format your <acronym title="Cascading Style Sheets">CSS</acronym> very clearly. You should watch this one.</p>
<p><a href="http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/"><strong>Efficient <acronym title="Cascading Style Sheets">CSS</acronym> with shorthand properties<br />
</strong></a>This is a really great article on 456 Berea Street explaining <em>all</em> shorthand properties. A guide for all webdesigners who want to code efficiently.</p>
<p><a href="http://paulstamatiou.com/2007/03/18/how-to-optimize-your-css-even-more" rel="nofollow" ><strong>Optimize Your <acronym title="Cascading Style Sheets">CSS</acronym> even more</strong></a><br />
Paul Stamatiou wrote this article about optimising your <acronym title="Cascading Style Sheets">CSS</acronym> file by compressing it. He uses <acronym title="Pre-Hypertext Processing">PHP</acronym> to compress the <acronym title="Cascading Style Sheets">CSS</acronym> file into a .gz format.</p>
<h3>Tools</h3>
<p><a href="http://www.bloggingpro.com/archives/2006/08/17/css-optimization/" rel="nofollow" ><strong>Review of <acronym title="Cascading Style Sheets">CSS</acronym> optimization Tools</strong></a><br />
This review on BloggingPro shows clearly the advantages and disadvantages of the most common <acronym title="Cascading Style Sheets">CSS</acronym> optimization tools. You should read this before using one. This article tells you that &#8220;<a href="http://iceyboard.no-ip.org/projects/css_compressor" rel="nofollow" >Icey&#8217;s <acronym title="Cascading Style Sheets">CSS</acronym> compressor</a>&#8221; is the best one.</p>
<p>The most used <acronym title="Cascading Style Sheets">CSS</acronym> optimization tools are:</p>
<ul>
<li><a href="http://www.cleancss.com/" rel="nofollow" >Clean <acronym title="Cascading Style Sheets">CSS</acronym></a></li>
<li><a href="http://iceyboard.no-ip.org/projects/css_compressor" rel="nofollow" >Robson <acronym title="Cascading Style Sheets">CSS</acronym> compressor</a></li>
<li><a href="http://www.cssoptimiser.com/" rel="nofollow" ><acronym title="Cascading Style Sheets">CSS</acronym> Optimiser.com</a></li>
<li><a href="http://flumpcakes.co.uk/css/optimiser/" rel="nofollow" >Flumpcakes <acronym title="Cascading Style Sheets">CSS</acronym> Optimiser</a></li>
</ul>
<h3>Conclusion</h3>
<p>With this articles, you can easily optimise and organize your <acronym title="Cascading Style Sheets">CSS</acronym> file. If you don&#8217;t have time to do it your self, you can use one of the great <acronym title="Cascading Style Sheets">CSS</acronym> optimization tools. Have I omitted an article or a tool, please tell me.</p>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/featured/12-articles-and-tools-for-css-structuring-and-optimising/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Nice Drop caps with CSS</title>
		<link>http://www.onyx-design.net/featured/nice-drop-caps-with-css/</link>
		<comments>http://www.onyx-design.net/featured/nice-drop-caps-with-css/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 18:50:46 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/css/nice-drop-caps-with-css/</guid>
		<description><![CDATA[There are a lot of websites using a extra &#60;span&#62;-tag for the drop cap. But using the :first-letter pseudo-element, you can easily create nice drop caps with CSS. :first-letter will &#8211; how surprising &#8211; target the first letter of an element. This pseudo element is included in CSS 1, so the browser support is very [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of websites using a extra <em>&lt;span&gt;-tag</em> for the drop cap. But using the <em>:first-letter</em> pseudo-element, you can easily create nice drop caps with <acronym title="Cascading Style Sheets">CSS</acronym>. <em>:first-letter</em> will &#8211; how surprising &#8211; target the first letter of an element. This pseudo element is included in <acronym title="Cascading Style Sheets">CSS</acronym> 1, so the browser support is very good. It&#8217;s supported by <acronym title="Internet Explorer 5">IE5</acronym>+, Let&#8217;s design some nice drop caps with <acronym title="Cascading Style Sheets">CSS</acronym>.<span id="more-90"></span></p>
<h3>Designing</h3>
<p>Unfortunately you can only apply a limited amount of properties to a first letter. According to <a href="http://www.w3schools.com/CSS/pr_pseudo_first-letter.asp" rel="nofollow" >w3schools</a> only font, color, background, margin, padding, border, float and some other properties can be applied. Still you can make a nice drop cap with <acronym title="Cascading Style Sheets">CSS</acronym>.</p>
<p>I used this <acronym title="Cascading Style Sheets">CSS</acronym> code:</p>
<p><code>p:first-letter {<br />
display:block;<br />
float:left;<br />
border:1px solid black;<br />
padding:5px;<br />
margin:4px 5px;<br />
background:url(firstletter1.png);<br />
font-size:73px;<br />
}</code></p>
<p><a href="http://commons.wikimedia.org/wiki/Image:Triquetra-Cross-alternate.png" rel="nofollow" >This</a> image of Wikipedia Commons was used for the background image. Click here to <a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/cssfirstletter.php"title="Example Page of this article" ><strong>view the example page</strong></a>.</p>
<p>I have some issues with this in Opera: the background doesn&#8217;t have the same height as the text. I don&#8217;t really know how to fix this, because there is no way to specify the height of the first letter in <acronym title="Cascading Style Sheets">CSS</acronym>. It works good in all other major browsers.</p>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/featured/nice-drop-caps-with-css/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How to make RSS icons in every colour with just one image</title>
		<link>http://www.onyx-design.net/featured/how-to-make-rss-icons-in-every-colour-with-just-one-image/</link>
		<comments>http://www.onyx-design.net/featured/how-to-make-rss-icons-in-every-colour-with-just-one-image/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 10:25:28 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/css/how-to-make-rss-icons-in-every-colour-with-just-one-image/</guid>
		<description><![CDATA[In this article, I will explain to you how you can make a RSS in every colour using just one image. The trick is a div with a partially transparent icon and the background color you like.
The Idea
The idea is a &#60;div&#62; with a specified width and height (the same as the icon). This icon [...]]]></description>
			<content:encoded><![CDATA[<p>In this article, I will explain to you how you can make a <acronym title="Really Simple Syndication">RSS</acronym> in every colour using just one image. The trick is a div with a partially transparent icon and the background color you like.<span id="more-89"></span></p>
<h3>The Idea</h3>
<p>The idea is a &lt;div&gt; with a specified width and height (the same as the icon). This <a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/rss32.png">icon</a> (you might not see something, because it&#8217;s white) is set as the background image of the &lt;div&gt;. You&#8217;ll also have to set a background color, that will fill the <acronym title="Really Simple Syndication">RSS</acronym> icon. If you don&#8217;t really get it, see this <a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/explain.jpg">explaining illustration</a> I made.</p>
<h3>The Code</h3>
<p>For this icon you&#8217;ll need the <a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/rss32.png">image</a> and some <acronym title="Cascading Style Sheets">CSS</acronym> and <acronym title="HyperText Markup Language">HTML</acronym> code:</p>
<p>CSS:<br />
<code>.rssicon32 {<br />
width:32px;<br />
height:32px;<br />
background-image:url(rss32.png);<br />
background-color:red;<br />
}</code></p>
<p>HTML:<br />
<code>&lt;div class="rssicon32"&gt;&lt;/div&gt;</code></p>
<p>I&#8217;ve have made an extensive <strong><a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/icon.php">EXAMPLE PAGE</a></strong>, where you can see some of the icons. The image i linked to previously is used on this in three different sizes (16&#215;16, 32&#215;32 and 64&#215;64).</p>
<h3>Improving the technique</h3>
<p>This technique has a lot of benefits, like you can use the same image for a hover effect, only changing the background color, which makes it quick and light weight. Another benefit is that you don&#8217;t need to change the image if you want a new colour. But there are also some disadvantages: this image works only on white and you can say that this technique is less SEO friendly than a regular image.<br />
<!-- give me space --><span style="display: none">a</span><br />
<strong>Making it SEO friendly with <acronym title="Cascading Style Sheets">CSS</acronym> image replacement</strong><br />
There is however a simple way to make this technique more SEO friendly. I will be using <acronym title="Cascading Style Sheets">CSS</acronym> image replacement. <acronym title="Cascading Style Sheets">CSS</acronym> image replacement is a technique often used to display images instead of text in a SEO friendly way. If you, for example use a header image instead of a &lt;h1&gt;-tag, that&#8217;s not very good for SEO, but if you replace the &lt;h1&gt;-tag with an image, you&#8217;ll have a SEO friendly and nice header. There are several techniques for <acronym title="Cascading Style Sheets">CSS</acronym> images replacement and a good overview can be found on <a href="http://css-tricks.com/nine-techniques-for-css-image-replacement/" rel="nofollow" ><acronym title="Cascading Style Sheets">CSS</acronym> Tricks</a>. You can choose the technique which you think is best, but in this case, I&#8217;ll go for the negative <em>text-indent.</em> I have added some text inside the div, which is hidden, because of the negative <em>text-indent</em>.</p>
<p>HTML:<br />
<code>&lt;div class="rssicon32"&gt;Subsribe my <acronym title="Really Simple Syndication">RSS</acronym> feed&lt;/div&gt;</code><br />
<strong>Making it compatible for every background<br />
</strong>There is a way to make this <acronym title="Really Simple Syndication">RSS</acronym> icon compatible with every background, but you&#8217;ll loose the rounded corners that way. So there are two options: change the colour of the rounded corners manually with photo editing software or drop the rounded corners. Both ways are displayed on the <a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/icon.php"title="RSS icon example page" >EXAMPLE PAGE</a>.</p>
<h3>Conclusion</h3>
<p>I really like this technique and the opportunities of it. You make nice visual effects and still it&#8217;s very light weight and it will save you bandwidth. If you have something to say about this article, please share your thoughts and place a comment.</p>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/featured/how-to-make-rss-icons-in-every-colour-with-just-one-image/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Make your site cross browser compatible in 5 steps</title>
		<link>http://www.onyx-design.net/other/cross-browser-compatible-in-5-steps/</link>
		<comments>http://www.onyx-design.net/other/cross-browser-compatible-in-5-steps/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 17:56:17 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/other/make-your-site-cross-browser-compatible-in-5-steps/</guid>
		<description><![CDATA[Making your site cross browser compatible is not easy, but with this tutorial you can make your site cross browser compatible in 5 simple steps.

Step 1: Validate
Lots of bugs are caused by invalid (X)HTML or CSS. If you have your site validated, it will be a lot easier to make it cross browser compatible. Validate [...]]]></description>
			<content:encoded><![CDATA[<p>Making your site cross browser compatible is not easy, but with this tutorial you can make your site cross browser compatible in 5 simple steps.</p>
<p><span id="more-84"></span></p>
<h3>Step 1: Validate</h3>
<p>Lots of bugs are caused by invalid (X)<acronym title="HyperText Markup Language">HTML</acronym> or <acronym title="Cascading Style Sheets">CSS</acronym>. If you have your site validated, it will be a lot easier to make it cross browser compatible. Validate your (X)<acronym title="HyperText Markup Language">HTML</acronym> code with the <a href="http://validator.w3.org/" rel="nofollow" ><acronym title="World Wide Web Consortium">W3C</acronym> validator</a> and your <acronym title="Cascading Style Sheets">CSS</acronym> file with the <a href="http://jigsaw.w3.org/css-validator/" rel="nofollow" ><acronym title="World Wide Web Consortium">W3C</acronym> <acronym title="Cascading Style Sheets">CSS</acronym> validator</a>.</p>
<p><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/validhtml1.jpg" alt="validhtml" height="150" width="500" /></p>
<h3>Step 2: Check your Website</h3>
<p>Now you have to check your website in all browsers. I always check my site in the browsers, I&#8217;ve installed on my computer (Opera, Safari, Internet Explorer and Firefox). Do it and make a note of the bugs.</p>
<p>Of course, checking your website in the browsers installed on your computer is not enough. You have to check the website in different browser versions on different operating systems. The solution is <a href="http://www.browsershots.org" rel="nofollow" >Browsershots.org</a>. With this website you can take full-length screen shots of your website in a lot of browsers. Just type in your url, bookmark the page and come back 20 minutes later to view the screen shots.</p>
<p><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/browsers1.jpg" alt="browsers" height="150" width="500" /></p>
<p>Analyse the screen shots and look for bugs. Be sure to write them down.</p>
<h3>Step 3: Is it worth my time?</h3>
<p>If you notice bugs in very old or uncommon used browsers, ask yourself if it&#8217;s worth your time to fix the problems. Look at the <a href="http://www.w3schools.com/browsers/browsers_stats.asp" rel="nofollow" >browser statistics of w3schools.com</a>, but don&#8217;t forget to look to your own stats (I recommend AWstats). If you have one or two visitors every month still browsing with <acronym title="Internet Explorer 5">IE5</acronym>.5, you should really ask yourself if it&#8217;s necessary to make the changes.</p>
<p><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/browserstats.jpg" alt="browserstats" height="150" width="500" /></p>
<h3>Step 4: Search the cause</h3>
<p>Now you know about the bugs, you&#8217;ll have to look for the <acronym title="Cascading Style Sheets">CSS</acronym> attribute or <acronym title="HyperText Markup Language">HTML</acronym> code that is causing this problem. This is often obvious. A good reference can be found on <a href="http://www.westciv.com/style_master/academy/browser_support/index.html" rel="nofollow" >westciv.com</a>. There is a complete list of css attributes with their support in different browsers. Too bad Firefox isn&#8217;t in the tables.</p>
<p>If you still cannot find the cause of the issue, search for topics on webmaster forums or post a topic yourself, with a screen shot and (a part of) your <acronym title="Cascading Style Sheets">CSS</acronym> and <acronym title="HyperText Markup Language">HTML</acronym> code. A forum I visit often is <a href="http://www.ozzu.com" rel="nofollow" >Ozzu</a>.</p>
<p><img src="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/03/ozzu.jpg" alt="ozzu" height="150" width="500" /></p>
<h3>Step 5: Fix the issues</h3>
<p>Now we&#8217;re at the essential part of making your website cross browser compatible: fixing the issues. If you know the code that is causing the trouble, find a way to <em>rewrite</em> the code for the specific browser. There are loads of <acronym title="Cascading Style Sheets">CSS</acronym> hacks to do that, but I recommend the use of conditional comments. There is an <a href="http://www.456bereastreet.com/archive/200510/stop_using_css_hacks_now/" rel="nofollow" >article on 456 Berea St.</a> explaining why you should use conditional comments instead of <acronym title="Cascading Style Sheets">CSS</acronym> hacks.</p>
<p><strong>Conditional Comments</strong>.<br />
With conditional comments you can link to separate style sheets for all versions of Internet Explorer. A complete reference can be found on <a href="http://www.quirksmode.org/css/condcom.html" rel="nofollow" >quirksmode</a>. For example:<br />
<code>&lt;!--[if <acronym title="Internet Explorer">IE</acronym> 6]&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="ie6style.css" /&gt;<br />
&lt;![endif]--&gt;</code></p>
<p><strong><acronym title="Cascading Style Sheets">CSS</acronym> hacks In-<acronym title="Cascading Style Sheets">CSS</acronym><br />
</strong>If you don&#8217;t want to edit your <acronym title="HyperText Markup Language">HTML</acronym> file with conditional comments, see my article about <a href="http://www.onyx-design.net/weblog2/featured/css-hacks-inside-css/"><acronym title="Cascading Style Sheets">CSS</acronym> hacks inside your <acronym title="Cascading Style Sheets">CSS</acronym> file</a>.</p>
<p><strong>Transparency of Images in <acronym title="Internet Explorer 6">IE6</acronym> and lower<br />
</strong>Internet Explorer 6 and lower will not display your transparent <acronym title="Portable Network Graphics">PNG</acronym>&#8217;s correctly, there is however a simple solution using Java script. It can be found <a href="http://homepage.ntlworld.com/bobosola/" rel="nofollow" >here</a>.</p>
<p>And of course there are loads of other <acronym title="Cascading Style Sheets">CSS</acronym> hacks. There is a <a href="http://centricle.com/ref/css/filters/" rel="nofollow" >complete list</a> on centricle.com, also viewing the browsers that will apply the rules.</p>
<h3>Conclusion</h3>
<p>Making your site cross browser compatible will cost you some time, but it&#8217;s not impossible. The is very good documentation on the web, which can help you in this process. If you use other ways to make your site cross browser compatible, please leave a comment and share it. If you liked this article don&#8217;t forget to digg or float it.</p>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/other/cross-browser-compatible-in-5-steps/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
