<?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>Darkfarmer &#187; opera</title>
	<atom:link href="http://www.darkfarmer.com/tag/opera/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darkfarmer.com</link>
	<description>Gadget Tech, Internet and General Blog</description>
	<lastBuildDate>Wed, 05 Jan 2011 14:55:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Css Hack your Browser</title>
		<link>http://www.darkfarmer.com/2008/07/24/141/</link>
		<comments>http://www.darkfarmer.com/2008/07/24/141/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 02:40:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://darkfarmer.com/?p=141</guid>
		<description><![CDATA[While I strongly advise using hacks at a minimum especially when it comes to CSS there is a time and a place for them, especially when you need a quick way to target a browser other than Internet Explorer. CSS Hacks: The Problem Most standards favoring browsers (Firefox, Opera &#38; Safari) have no method of [...]]]></description>
			<content:encoded><![CDATA[<p>While I strongly advise using hacks at a minimum especially when it comes to CSS there is a time and a place for them, especially when you need a quick way to target a browser other than Internet Explorer.<br />
<strong></strong></p>
<p><strong>CSS Hacks: The Problem<br />
</strong></p>
<p>Most standards favoring browsers (Firefox, Opera &amp; Safari) have no method of targeting CSS to the specific browser while Internet Explorer, the buggiest browser, has a completely safe and easy method of serving CSS/HTML to only IE.</p>
<p><strong>The Setup</strong></p>
<p>To show that the hacks are working correctly I created 6 paragraphs with their specific browser/version identifier within them. This will let you know that the hack is working correctly<br />
&lt;p id=&#8221;opera&#8221;&gt;Opera 7.2 &#8211; 9.5&lt;/p&gt; &lt;p id=&#8221;safari&#8221;&gt;Safari&lt;/p&gt; &lt;p id=&#8221;firefox&#8221;&gt;Firefox&lt;/p&gt; &lt;p id=&#8221;firefox12&#8243;&gt;Firefox 1 &#8211; 2 &lt;/p&gt; &lt;p id=&#8221;ie7&#8243;&gt;IE 7&lt;/p&gt; &lt;p id=&#8221;ie6&#8243;&gt;IE 6&lt;/p&gt;</p>
<p>Next I automatically hid all P tags:<br />
&lt;style type=&#8221;text/css&#8221;&gt; body p { display: none; } &lt;/style&gt;<br />
<strong>Targeting Internet Explorer With CSS Using Conditional Comments<br />
</strong></p>
<p>The easiest way to target IE is with conditional comments. There is a robust syntax that Microsoft has created to allow authors to do this. I&#8217;m not going to go into detail about this since it has been re-hashed a million times by other bloggers but here are two alternatives to parser CSS hacks:<br />
&lt;!&#8211;[if IE 7]&gt; &lt;style type=&#8221;text/css&#8221;&gt; &lt;/style&gt; &lt;![endif]&#8211;&gt; &lt;!&#8211;[if IE 6]&gt; &lt;style type=&#8221;text/css&#8221;&gt; &lt;/style&gt; &lt;![endif]&#8211;&gt;<br />
<strong></strong></p>
<p><strong>Targeting Internet Explorer With CSS Using Parser Hacks</strong></p>
<p>I wouldn&#8217;t recommend using these hacks since conditional comments are really, really easy to use but if you want to keep all your CSS in one file here is an alternative. Note that the IE7 hack will only apply to IE7 because IE6 does not understand the &gt; selector. It should also be noted that no other browser will recognize this hack.<br />
/* IE 7 */ html &gt; body #ie7 { *display: block; } /* IE 6 */ body #ie6 { _display: block; }</p>
<p><span id="more-141"></span></p>
<p><strong>Targeting Firefox With CSS<br />
</strong></p>
<p>The first hack targets only Firefox 1 and 2 by using the body:empty hack. The second hack, which is quite clever target all versions of Firefox by using the proprietary extension -moz. -moz combined with the -document url-prefix() which by the way is used by Firefox Addon creators targets Firefox and Firefox alone. I&#8217;ve found that by using proprietary extensions to CSS, as hacks, usually means the most surefire way to target individual browsers without having to worry about another browser possibly parsing the CSS.<br />
/* Firefox 1 &#8211; 2 */ body:empty #firefox12 { display: block; } /* Firefox */ @-moz-document url-prefix() { #firefox { display: block; } }<br />
<strong></strong></p>
<p><strong>Targeting Safari With CSS<br />
</strong></p>
<p>The Safari CSS hack works similar to the Firefox hack because it uses a Safari proprietary extension to CSS. By using the -webkit prefix we can target Safari and only Safari.<br />
/* Safari */ @media screen and (-webkit-min-device-pixel-ratio:0) { #safari { display: block; } }<br />
<strong></strong></p>
<p><strong>Targeting Opera With CSS<br />
</strong></p>
<p>The Opera CSS hack works because of negation in CSS. Currently I feel this hack is the weakest of all the hacks I&#8217;ve listed simply because it&#8217;s targeting ALL browsers that support -min-device-pixel-ratio that aren&#8217;t -webkit. It will only be a matter of time before Firefox supports this and this hack will then most likely apply to Firefox as well.<br />
/* Opera */ @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) { head~body #opera { display: block; } }<br />
<strong></strong></p>
<p><strong>Putting It All Together:</strong></p>
<p>&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&gt; &lt;html lang=&#8221;en&#8221;&gt; &lt;head&gt; &lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&gt; &lt;title&gt;CSS Browser Hacks&lt;/title&gt; &lt;style type=&#8221;text/css&#8221;&gt; body p { display: none; } /* Opera */ html:first-child #opera { display: block; } /* IE 7 */ html &gt; body #ie7 { *display: block; } /* IE 6 */ body #ie6 { _display: block; } /* Firefox 1 &#8211; 2 */ body:empty #firefox12 { display: block; } /* Firefox */ @-moz-document url-prefix() { #firefox { display: block; } } /* Safari */ @media screen and (-webkit-min-device-pixel-ratio:0) { #safari { display: block; } } /* Opera */ @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) { head~body #opera { display: block; } } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;p id=&#8221;opera&#8221;&gt;Opera 7.2 &#8211; 9.5&lt;/p&gt; &lt;p id=&#8221;safari&#8221;&gt;Safari&lt;/p&gt; &lt;p id=&#8221;firefox&#8221;&gt;Firefox&lt;/p&gt; &lt;p id=&#8221;firefox12&#8243;&gt;Firefox 1 &#8211; 2 &lt;/p&gt; &lt;p id=&#8221;ie7&#8243;&gt;IE 7&lt;/p&gt; &lt;p id=&#8221;ie6&#8243;&gt;IE 6&lt;/p&gt; &lt;/body&gt; &lt;/html&gt;</p>
<p><em>Sources</p>
<p>http://msdn.microsoft.com/en-us/library/ms537512.aspx</p>
<p>http://www.javascriptkit.com/dhtmltutors/csshacks3.shtml</p>
<p>http://perishablepress.com/press/2006/08/27/css-hack-dumpster/</p>
<p>http://thomas.tanreisoftware.com/?p=11#opera</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkfarmer.com/2008/07/24/141/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera Mobile 9.5 Beta</title>
		<link>http://www.darkfarmer.com/2008/07/20/145/</link>
		<comments>http://www.darkfarmer.com/2008/07/20/145/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 02:46:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[Opera Mobile 9.5]]></category>
		<category><![CDATA[Release]]></category>

		<guid isPermaLink="false">http://darkfarmer.com/?p=145</guid>
		<description><![CDATA[Opera Software released the beta version of their Opera Mobile 9.5 browser . Much like users of the iPhone’s Safari browser, Opera Mobile users can enjoy both slimmed-down sites made for mobile, as well as standard desktop versions right from their phone. Though still in beta, today’s release promises faster performance, enhanced viewing functionality, and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-151" title="tmp357" src="http://darkfarmer.com/wp-content/uploads/2008/07/tmp357-300x231.jpg" alt="tmp357" width="300" height="231" />Opera Software released the beta version of their Opera Mobile 9.5 browser . Much like users of the iPhone’s Safari browser, Opera Mobile users can enjoy both slimmed-down sites made for mobile, as well as standard desktop versions right from their phone.</p>
<p>Though still in beta, today’s release promises faster performance, enhanced viewing functionality, and better usability over v8.65.</p>
<p>Specifically, here are the features Opera described in their press release today:</p>
<p>Faster — Opera has always been among the fastest browsers — if not the fastest — available. Opera Mobile 9.5 beta continues this fine tradition with improved performance over Opera Mobile 8.65.</p>
<p>Pan and zoom — Just like Opera Mini, Opera Mobile 9.5 beta defaults to full Web page viewing and allows users to pan and zoom into their desired content easily.</p>
<p>Improved user interface — Opera has completely renovated its mobile UI. Cleaner and more intuitive, the new UI is designed for quick and easy navigation.</p>
<p>Opera Dragonfly — Use your Opera desktop browser to debug sites on your mobile phone through the Opera Mobile 9.5 debug menu.</p>
<p>Improved standards support — Opera Mobile 9.5 is the most standards compliant browser available, and the company remains steadfast in its commitment to make the Web accessible for all.</p>
<p>Save pages and/or images — With a click, simply save pages to your phone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkfarmer.com/2008/07/20/145/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

