<?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>UI/UX &#8211; Invenza Solutions</title>
	<atom:link href="https://www.invenza.in/ui-ux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.invenza.in</link>
	<description>IMAGINATION. INSPIRATION. INNOVATION.</description>
	<lastBuildDate>Thu, 09 May 2024 10:14:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.7.14</generator>

<image>
	<url>https://www.invenza.in/wp-content/uploads/2020/09/favi.png</url>
	<title>UI/UX &#8211; Invenza Solutions</title>
	<link>https://www.invenza.in</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Media Queries for Retina devices</title>
		<link>https://www.invenza.in/media-queries-for-retina-devices/</link>
		
		<dc:creator><![CDATA[Rinu Pal]]></dc:creator>
		<pubDate>Wed, 19 Aug 2020 00:01:32 +0000</pubDate>
				<category><![CDATA[UI/UX]]></category>
		<guid isPermaLink="false">https://web.invenza.in/?p=21455</guid>

					<description><![CDATA[<p>The post <a rel="nofollow" href="https://www.invenza.in/media-queries-for-retina-devices/">Media Queries for Retina devices</a> appeared first on <a rel="nofollow" href="https://www.invenza.in">Invenza Solutions</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="ohio-text-sc " 
	id="ohio-custom-697b2b3cd8eaf" 
	 
		>

	<ol>
<li><a href="#topic1">What is a Retina Display?</a></li>
<li><a href="#topic2">What is PPI (Pixels per inch)?</a></li>
<li><a href="#topic3">What is DPI(Dots Per Inch)?</a></li>
<li><a href="#topic4">Example of Retina Media query</a></li>
<li><a href="#topic5">Device Pixel Ratio</a></li>
<li><a href="#topic6">Media queries for all Apple devices</a></li>
</ol>
	
</div></div></div></div></div><div id="topic1" class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h2>What is a Retina Display?</h2>
<p>Apple introduced its series of OLED and LCDs a couple of years ago. These displays have a higher density compared to traditional displays. Apple named these displays “Retina display”. It has 4 times more physical pixels than the normal display in the same amount of space. The limit of the human retina to differentiate the pixels is 300 pixels per inch whereas the retina display has 326 pixels per inch. <strong>It is mainly dependent on two factors: pixel density &amp; distance between the human eye and the screen display.</strong> According to Apple’s opinion, if the user is observing the device screen at a normal distance, it is very sharp and accurate that you cannot see the individual pixels anymore.</p>
<p><strong>Mainly Retina display is measured by two units: PPI and DPI.</strong></p>

		</div>
	</div>
</div></div></div></div><div id="topic2" class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h2>What is PPI (Pixels per inch)?</h2>
<p>Whenever you are working with digital images, the first thing that arrives in your mind is the resolution of an image in pixels, and there the term PPI came into existence. PPI, i.e., Pixels per inch is an additive color model that describes a computer display’s resolution. The higher resolution results in higher PPI. More PPI results in a better quality of an image. The industry considers 300 PPI as the standard quality of an image. It is an RGB color model where each pixel consists of its subpixel.</p>
<p style="text-align: center;"><img loading="lazy" width="1024" height="683" class="alignnone size-medium wp-image-21460" src="/wp-content/uploads/2020/08/pixel1.jpg" alt="" srcset="https://www.invenza.in/wp-content/uploads/2020/08/pixel1.jpg 1024w, https://www.invenza.in/wp-content/uploads/2020/08/pixel1-300x200.jpg 300w, https://www.invenza.in/wp-content/uploads/2020/08/pixel1-768x512.jpg 768w" sizes="(max-width: 1024px) 100vw, 1024px" /><br />
<strong>Every pixel contains its subpixel</strong></p>
<p style="text-align: center;"><img loading="lazy" width="1999" height="1333" class="alignnone size-medium wp-image-21461" src="/wp-content/uploads/2020/08/pixel2.jpg" alt="" srcset="https://www.invenza.in/wp-content/uploads/2020/08/pixel2.jpg 1999w, https://www.invenza.in/wp-content/uploads/2020/08/pixel2-300x200.jpg 300w, https://www.invenza.in/wp-content/uploads/2020/08/pixel2-1024x683.jpg 1024w, https://www.invenza.in/wp-content/uploads/2020/08/pixel2-768x512.jpg 768w, https://www.invenza.in/wp-content/uploads/2020/08/pixel2-1536x1024.jpg 1536w, https://www.invenza.in/wp-content/uploads/2020/08/pixel2-1920x1280.jpg 1920w" sizes="(max-width: 1999px) 100vw, 1999px" /><br />
<strong>Describes dimensions of an image</strong></p>
<h4>How to calculate PPI?</h4>
<p>1.Calculate the diagonal resolution using Pythagoras theorem in pixels:</p>
<p><img loading="lazy" class="alignnone size-medium wp-image-21462" src="/wp-content/uploads/2020/08/pixel3-300x59.png" alt="" width="300" height="59" srcset="https://www.invenza.in/wp-content/uploads/2020/08/pixel3-300x59.png 300w, https://www.invenza.in/wp-content/uploads/2020/08/pixel3.png 304w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>2.Then, calculate PPI:</p>
<p><img loading="lazy" class="alignnone size-full wp-image-21463" src="/wp-content/uploads/2020/08/pixel4.png" alt="" width="279" height="71" /></p>

		</div>
	</div>
</div></div></div></div><div id="topic3" class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h2>What is DPI(Dots Per Inch)?</h2>
<p>DPI, i.e., Dots per inch, measures the number of ink dots that fit in an inch of a printed image. It is a subtractive color model that refers to a physical printer’s resolution value. When you increase the DPI, the size of the printed image decreases, and vice versa. Every screen comprises 72/96 dpi, but in the real scenario, printed documents contain higher dpi than usual.</p>
<p>To target devices that support DPI, we need to write specific media queries. Below is the example of a Retina display for the background image in iPhone 6, 6S, 7 and 8:</p>

		</div>
	</div>
</div></div></div></div><div id="topic4" class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h2>Example of Retina Media query</h2>
<p><strong>Html code:</strong><br />
<img src="/wp-content/uploads/2020/08/retina1.png" alt="" /></p>
<p><strong>Css code:</strong><br />
<img src="/wp-content/uploads/2020/08/retina2.png" alt="" /><br />
<strong>Responsive media query:<br />
Simple 1x background image:</strong><br />
<img src="/wp-content/uploads/2020/08/media-query-bg.jpg" alt="" /><br />
<strong>Retina display media query for iPhone 6, 6S, 7 and 8:</strong></p>
<p><img src="/wp-content/uploads/2020/08/retina3.png" alt="" /></p>
<p><strong>Retina 2x background image:</strong><br />
<img src="/wp-content/uploads/2020/08/media-query-bg-retina.jpg" alt="" /><br />
The above-shown 1x image is the normal image, and the retina image is 2times(2x) (i.e., double the resolution of the 1x image to achieve a pixel perfect image as the 1x will appear to be blurry to the human eye.)</p>

		</div>
	</div>
</div></div></div></div><div id="topic5" class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h2>Device Pixel Ratio</h2>
<p>The Ratio between physical and logical pixels is classified as the Device pixel ratio(DPR).</p>
<p><strong>For example:</strong></p>
<p>In iPhone 8, the device pixel ratio is 2, since the logical linear resolution is always half of the physical linear resolution.</p>
<p>Physical resolution: 750 x 1334<br />
Logical resolution: 375 x 667</p>
<p>In Apple devices default device pixel ratio is 1 and maximum device pixel ratio is 3.</p>
<p>In the above example the units, dpi(Dots per inch), and dppx(Dots per pixel) are used for maximum resolution.</p>
<p>1dppx and 1Dpr is equivalent to 96dpi.<br />
Also, 2dppx and 2Dpr is equivalent to 192(96*2)dpi and so on.</p>

		</div>
	</div>
</div></div></div></div><div id="topic6" class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h2>Media queries for all Apple devices:</h2>
<p><strong>Retina display media query for macOS with device pixel ratio 1:</strong><br />
<img src="/wp-content/uploads/2020/08/media1.png" alt="" /></p>
<p><strong>Retina display media query for iPad 1, 2, Mini and Air:</strong><br />
<img src="/wp-content/uploads/2020/08/media2.png" alt="" /></p>
<p><strong>Retina display media query for iPad 3, 4, 5 and Pro 9.7:</strong><br />
<img src="/wp-content/uploads/2020/08/media3.png" alt="" /></p>
<p><strong>Retina display media query for iPad Pro 10.5:</strong><br />
<img src="/wp-content/uploads/2020/08/media4.png" alt="" /></p>
<p><strong>Retina display media query for iPad Pro 12.9:</strong><br />
<img src="/wp-content/uploads/2020/08/media5.png" alt="" /></p>
<p><strong>Retina display media query for iphone 4 and iphone 4s:</strong><br />
<img src="/wp-content/uploads/2020/08/media6.png" alt="" /></p>
<p><strong>Retina display media query for iPhone 5, 5S, 5C and 5SE:</strong><br />
<img src="/wp-content/uploads/2020/08/media7.png" alt="" /></p>
<p><strong>Retina display media query for iPhone 6, 6S, 7 and 8:</strong><br />
<img src="/wp-content/uploads/2020/08/media8.png" alt="" /></p>
<p><strong>Retina display media query for iPhone 6 plus, 7 plus and 8 plus:</strong><br />
<img src="/wp-content/uploads/2020/08/media9.png" alt="" /></p>
<p><strong>Retina display media query for iPhone X, iPhone Xs, iPhone 11 Pro:</strong><br />
<img src="/wp-content/uploads/2020/08/media10.png" alt="" /></p>
<p><strong>Retina display media query for iPhone 11 and iPhone XR:</strong><br />
<img src="/wp-content/uploads/2020/08/media11.png" alt="" /></p>
<p><strong>Retina display media query for iPhone 11 Pro Max, iPhone Xs Max:</strong><br />
<img src="/wp-content/uploads/2020/08/media12.png" alt="" /></p>

		</div>
	</div>
</div></div></div></div><div class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<h3>Conclusion</h3>
<p>I hope that this blog might help you to write media queries for apple devices with retina display. I will shortly update “Media query for android devices” as well, so stay in touch.</p>

		</div>
	</div>
</div></div></div></div><div class="vc_row wpb_row vc_row-fluid conclusion-bg vc_custom_1597814140699 vc_row-has-fill"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " >
		<div class="wpb_wrapper">
			<p style="text-align: center;">Thanks for reading<br />
Share via social media</p>

		</div>
	</div>
<div class="ohio-socialbar-sc socialbar  text-center outline social-column-3 shadow default" 
	id="ohio-custom-697b2b3cdd21a" 
	 
		>

			<a href="https://twitter.com/intent/tweet?text=https://www.invenza.in/media-queries-for-retina-devices/" target="_blank" class="twitter">
						<i class="fab fa-twitter"></i>
								</a>
	
			<a href="https://www.facebook.com/sharer/sharer.php?u=https://www.invenza.in/media-queries-for-retina-devices/" target="_blank" class="facebook">
						<i class="fab fa-facebook-f"></i>
								</a>
	
	
	
			<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.invenza.in%2Fmedia-queries-for-retina-devices%2F&title=title&source=Invenza+Solutions" target="_blank" class="linkedin">
						<i class="fab fa-linkedin"></i>
								</a>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	</div></div></div></div></div><div class="vc_row wpb_row vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_raw_code wpb_raw_js" >
		<div class="wpb_wrapper">
			<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script>

<script type="text/javascript">

// Wrap every letter in a span
var textWrapper = document.querySelector('.ml3');
textWrapper.innerHTML = textWrapper.textContent.replace(/\S/g, "<span class='letter'>$&</span>");



anime.timeline({loop: false})
  .add({
    targets: '.ml3 .letter',
    opacity: [0,1],
    easing: "easeInOutQuad",
    duration: 600,
    delay: (el, i) => 65 * (i+1)
 /* }).add({
  targets: '.ml3',
  opacity: 0,
  duration: 1000,
  easing: "easeOutExpo",
  delay: 1000 */
  });
</script>
		</div>
	</div>
</div></div></div></div>
<p>The post <a rel="nofollow" href="https://www.invenza.in/media-queries-for-retina-devices/">Media Queries for Retina devices</a> appeared first on <a rel="nofollow" href="https://www.invenza.in">Invenza Solutions</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
