<?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>nasarik.com - A Lancashire designer&#039;s journey through life, print and web design &#187; coding</title>
	<atom:link href="http://nasarik.com/tag/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://nasarik.com</link>
	<description>I&#039;m just a designer trying to make sense of the web, design and pretty much everything else</description>
	<lastBuildDate>Sun, 22 Jan 2012 21:42:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://nasarik.com</link>
  <url>http://nasarik.com/wp-content/themes/sandbox/images/nasarikfav.jpg</url>
  <title>nasarik.com - A Lancashire designer&#039;s journey through life, print and web design</title>
</image>
		<item>
		<title>!important compatibility</title>
		<link>http://nasarik.com/browser-compatability/</link>
		<comments>http://nasarik.com/browser-compatability/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 23:22:53 +0000</pubDate>
		<dc:creator>nasarik</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[!important]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://nasarik.com/?p=10</guid>
		<description><![CDATA[With the array of web browser brands and versions out there it makes a web designers job difficult in keeping their websites looking the same, there are many different tricks you can learn to help with this head scratching task but I will focus on one that has helped me many a time. As browser versions  [...]]]></description>
			<content:encoded><![CDATA[<p><img class="post_images" src="http://farm4.static.flickr.com/3257/3231648051_3bf97e5c13.jpg?v=0" alt="" /></p>
<p>With the array of web browser brands and versions out there it makes a web designers job difficult in keeping their websites looking the same, there are many different tricks you can learn to help with this head scratching task but I will focus on one that has helped me many a time.<span id="more-10"></span></p>
<p>As browser versions  rollout in an attempt to keep up-to-date with technologies, it is becoming harder for designers to keep their sites consistent across different browser versions such as IE6 and IE7 and with the recent beta release of IE8 it doesn&#8217;t look like getting any easier.</p>
<p>So now I am going to show you how to use a transparent PNG file in IE7 and replace it in IE6 with a transparent GIF using CSS, the PNG file will preview as a perfect high quality transparent image in IE7 but will have a solid background in IE6 thus not being transparent.  This is where the !important statement comes in, the CSS below shows the code just referencing the png &gt;&gt;</p>
<p>div#logo{<br />
height:153px;<br />
width:180px;<br />
<strong>background: url(images/logo.png);</strong><br />
}</p>
<p>The text in bold is the main image as I would want it to preview in IE7, then below we add the !important statement to preview differently in IE6&gt;&gt;</p>
<p>div#logo{<br />
height:153px;<br />
width:180px;<br />
background: url(images/logo.png)<strong> !important; background: url{images/logo.gif);</strong><br />
}</p>
<p>The bold text here is the !important statement followed by the same code for the GIF image, IE7 will read until where the important statement ends while IE6 ignores this statement and continues to the end of the line, thus giving you two different representations of the same effect one for IE7 and one for IE6, easy really, but oh how useful.</p>
<p>This can be used for pretty much any unusual result between the browsers such as colour change, font issues and margin or padding differences. This tutorial is just one way to use the !important statement but hopefully one you will find useful <img src='http://nasarik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nasarik.com/browser-compatability/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

