<?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>#FireFox Archives - anteelo</title>
	<atom:link href="https://anteelo.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>https://anteelo.com/tag/firefox/</link>
	<description>Leading Digital Solution Firm</description>
	<lastBuildDate>Fri, 14 May 2021 14:40:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://anteelo.com/wp-content/uploads/2020/01/cantlogo.png</url>
	<title>#FireFox Archives - anteelo</title>
	<link>https://anteelo.com/tag/firefox/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Browser specific hacks for Frontend developers</title>
		<link>https://anteelo.com/browser-specific-hacks-for-frontend-developers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=browser-specific-hacks-for-frontend-developers</link>
		
		<dc:creator><![CDATA[Anteelo Master]]></dc:creator>
		<pubDate>Thu, 14 Jan 2021 14:37:44 +0000</pubDate>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[#CssHacks]]></category>
		<category><![CDATA[#FireFox]]></category>
		<category><![CDATA[#FrontendDevelopers]]></category>
		<category><![CDATA[#Hacks]]></category>
		<category><![CDATA[#JavaScript]]></category>
		<category><![CDATA[#Opera]]></category>
		<guid isPermaLink="false">https://anteelo.com/?p=3293</guid>

					<description><![CDATA[<p>If you are a web developer then it’s unlikely that you haven’t faced this situation-You spent days and weeks writing perfect code. Everything is perfect from the CSS stylesheet to the meta tags. You test it in Google Chrome and it works perfectly fine. You go home and sleep in peace. But when you come [&#8230;]</p>
<p>The post <a href="https://anteelo.com/browser-specific-hacks-for-frontend-developers/">Browser specific hacks for Frontend developers</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div align="justify">If you are a web developer then it’s unlikely that you haven’t faced this situation-You spent days and weeks writing perfect code. Everything is perfect from the CSS stylesheet to the meta tags. You test it in Google Chrome and it works perfectly fine. You go home and sleep in peace. But when you come back to the office the next day, everything is broken and you find a hundred bugs allocated in your name.<img decoding="async" class="aligncenter" src="https://lh3.googleusercontent.com/proxy/jY6eGMGhyi826kPLzNs950wMfNy2_lN9-Iyt_MVeP8IvQPb1uTQSmoCq-LNDR9diymwhhGkYnNrtvizAEqhzpbC3EJVsHK7Kr9wF_hgkmyvRcov8a9xUGxflzkomh4c6AQ_igFKTt3ToLFk" alt="Browser specific hacks for Frontend developers | Humble Bits" /></p>
<p>&nbsp;</p>
<p>Culprit? Internet Explorer.</p>
<p>And, <a href="https://anteelo.com/">Mozilla Firefox</a>.</p>
<p>And, Opera.</p>
<p>Happens to all of us, right?</p>
<p>So, is there a way out of this mess? Well, there isn’t. At least not a full proof one. 100% cross-browser compatibility is a myth. It’s almost impossible to write a code which works perfectly fine in all the internet browsers. It comes with experience and you need a lot of patience to learn that craft.</p>
<p>But you can always start small. I learned some browser specific hacks during my journey and I thought it’s a good idea to share them with fellow developers.</p>
<p><img decoding="async" class="aligncenter" src="https://w3reign.com/wp-content/uploads/2017/03/Browser-Specific-CSS-Hacks.jpg" alt="Browser Specific CSS Hacks | W3REIGN" /></p>
<h2>Implementation</h2>
<p>It is as simple as you write your simple CSS code, just pick the hack you want. Copy it into your stylesheet. Add the <a href="https://www.instagram.com/anteelodesign/">style</a> you want between the braces. Enjoy the new styles for the browser that you’ve targeted!</p>
<h4>Google Chrome and Safari Browsers</h4>
<p>Google Chrome and Safari browsers are mainly the same as they both use WebKit, but sometimes they behave differently in the case of forms, fonts etc.</p>
<p><b>Css hacks</b></p>
<p>@media screen and (-webkit-min-device-pixel-ratio:0){</p>
<p>.selector{</p>
<p>property:Value;</p>
<p>}</p>
<p>}</p>
<p><b>Media Query Hacks</b></p>
<p>@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: 1280px){</p>
<p>.selector {}</p>
<p>}</p>
<p><b>Javascript hacks</b></p>
<p>var isChrome = !!window.chrome &amp;&amp; !!window.chrome.webstore; <em>// for Google chrome</em></p>
<p>var isWebkit = ‘WebkitAppearance’ in document.documentElement.style; <em>// for </em><em>Chrome and Safari</em></p>
<h4>Firefox (any version)</h4>
<p><b>Css hacks</b></p>
<p>@-moz-document url-prefix() {</p>
<p>.selector { Property: Value; }</p>
<p>}</p>
<p><b>Media Query Hacks</b></p>
<p>@media all and (min–moz-device-pixel-ratio:0) and (min-resolution: 1280px) {</p>
<p>.selector { Property: Value; }</p>
<p>}</p>
<p><b>Javascript hacks</b></p>
<p>var isFF = ‘MozAppearance’ in document.documentElement.style;</p>
<h4><i>Opera – Opera </i>10<i> and above</i></h4>
<p><b>Css hacks</b></p>
<p>@media not all and (-webkit-min-device-pixel-ratio:0) {</p>
<p>.selector { Property: Value; }</p>
<p>}</p>
<p><b>Media Query Hacks</b></p>
<p>@media all and(-webkit-min-device-pixel-ratio:0)and(min-resolution: 1280px){</p>
<p>.selector {</p>
<p>Property: Value;</p>
<p>}</p>
<p>}</p>
<p><b>Javascript hacks</b></p>
<p>var isOpera = window.opera &amp;&amp; window.opera.version() == X;  //replace x y the version</p>
<h4>Internet Explorer</h4>
<p><b>Css hacks</b></p>
<p>:root .selector {</p>
<p>Property: Value\9; color: red\9;</p>
<p>}</p>
<p><b>Conditional Comments</b></p>
<p>&lt;!–[if IE 9]&gt; Internet Explorer 9 &lt;![endif]–&gt;</p>
<p>&lt;!–[if lte IE 9]&gt; Internet Explorer 9 or less &lt;![endif]–&gt;</p>
<p>&lt;!–[if gte IE 9]&gt; Internet Explorer 9 or greater &lt;![endif]—&gt;</p>
<p><b>For example:</b></p>
<p>&lt;!–[if IE 9]&gt;</p>
<p>&lt;link rel=”stylesheet” type=”text/css” href=”all-ie-only.css” /&gt;</p>
<p>&lt;![endif]–&gt;</p>
<h4>IE 10 and above</h4>
<p>_:-ms-lang(x), .selector { property:value; }</p>
<p>@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {</p>
<p>.ie10up {property: value;}</p>
<p>}</p>
<p>@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {</p>
<p>.ie10up {property: value;}</p>
<p>}</p>
<h4>IE 11 and above</h4>
<p>_:-ms-fullscreen, :root .ie11up { property:value; }//Works for IE 11 and above</p>
<p>*::-ms-backdrop, :root .selector { property:value; }//Works for IE 11</p>
<h4>IE 11+, Microsoft Edge Browser</h4>
<p>/* Put this code in external stylesheet: ie11up.css */</p>
<p>@charset “&amp;lt;Any Modern Browser but MSIE 10- or FF 18- &amp;gt;”;  _:-ms-lang(x), .selector { property:value; }</p>
<p><b>Javascript hacks</b></p>
<p>var isIE = ‘behavior’ in document.documentElement.style &amp;&amp; ‘- ms-user-select’ in document.documentElement.style;</p>
<p>var isIE = window.navigator.msPointerEnabled;</p>
<p>var isIE = document.body.style.msTouchAction !== undefined;</p>
</div>
<p>The post <a href="https://anteelo.com/browser-specific-hacks-for-frontend-developers/">Browser specific hacks for Frontend developers</a> appeared first on <a href="https://anteelo.com">anteelo</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
