{"id":1995,"date":"2016-10-14T15:48:29","date_gmt":"2016-10-14T12:48:29","guid":{"rendered":"http:\/\/www.instinctools.eu\/?p=1995"},"modified":"2025-01-13T14:10:49","modified_gmt":"2025-01-13T11:10:49","slug":"post-responsive-web-design-mobile-devices","status":"publish","type":"post","link":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/","title":{"rendered":"Part 2. Responsive Web Design. Mobile Devices"},"content":{"rendered":"\n<p>We brought up an issue of breakpoints for a desktop\/laptop responsive site version in the previous article <i>Responsive Web Design Using Breakpoints<\/i>. Now it is time to talk about the mobile layout. Let us make two features clear for you to take full advantage of the information below. These features are viewport meta tag settings and the DPI. Though simple at first sight, these things cause much confusion.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"400\" src=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices-2.png\" alt=\"\" class=\"wp-image-36881\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-viewport-meta-tag\">Viewport Meta Tag<\/h3>\n\n\n\n<p>Let us leave lengthy theorizing aside and go straight to the practice.<\/p>\n\n\n\n<p>Viewport Meta Tag is a command telling to the gadget how to scale the website. We would like to make an honest agreement on not trying to squeeze the mock-up evenly into the screen&#8217;s size, making the user&#8217;s vision blurry.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"523\" height=\"355\" src=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/rwd-grid.png\" alt=\"Responsive Web Design. Mobile Devices\" class=\"wp-image-2000\"\/><figcaption class=\"wp-element-caption\"><strong>Pic.1.<\/strong> Viewport is set incorrectly or absent<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"355\" src=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/rwd-grid-1.png\" alt=\"Responsive Web Design. Mobile Devices\" class=\"wp-image-2001\"\/><figcaption class=\"wp-element-caption\"><strong>Pic.2.<\/strong> The settings are correct, but styles for mobile devices are absent<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"257\" height=\"444\" src=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/rwd-grid-2.png\" alt=\"Responsive Web Design. Mobile Devices\" class=\"wp-image-2002\"\/><figcaption class=\"wp-element-caption\"><strong>Pic.3.<\/strong> A fully functional mobile version of a site with correct settings and styles for mobile devices.<\/figcaption><\/figure>\n\n\n\n<p>Add meta tag with parameters:<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\"><span style=\"color: #e85f49;\">&lt;head&gt;<\/span><br>\n<span style=\"color: #e85f49;\">&lt;meta <span style=\"color: #bf7501;\">name<\/span>=<span style=\"color: #50a14f;\">\"viewport\"<\/span> <span style=\"color: #bf7501;\">name<\/span>=<span style=\"color: #50a14f;\">\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"<\/span>\/&gt;<\/span><br>\n<span style=\"color: #e85f49;\">&lt;\/head&gt;<\/span><\/code><\/p>\n\n\n\n<p>Set any width supported by the device, launch the site in a 1:1 scale and forbid further zooming.<\/p>\n\n\n\n<p><strong>What Happens When You Ignore Viewport:<\/strong><\/p>\n\n\n\n<p>Devices will scale the mock-up at random, leaving you no way to find out, how many pixels are actually displayed in the browser&#8217;s window.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-dpi\">DPI<\/h3>\n\n\n\n<p>DPI is a quantity of pixels (dots) per inch.<\/p>\n\n\n\n<p>Modern mobile phones and some PCs have the pixels density of over 72. However, we do not believe their producers: they do not tell us the whole truth about coordinates used to display mockups. The mere size of screens in pixels does not say enough to do the math.<\/p>\n\n\n\n<p>The thing is, mobile browsers use their own points, not equal to the physical pixels of a device. Usually these points are divisible by two in order to make information volumes visually comparable, considering the physical dimensions of devices. For instance, 1000 pixels for a smartphone is the size of a palm, 1000 pixels for a PC is the size of an A4 landscape sheet. That is why a mock-up which looks easy-to-eye on PC will look small and unreadable on the display&#8217;s screen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-iphone-6-example\">iPhone 6 Example<\/h3>\n\n\n\n<p>iPhone 6 is 750 pixels wide. However, the browser divides this value by two and thinks that the full width mock-up has 375 pixels. A 750 pixels-mock-up will be either displayed only in half or squeezed in, depending on <i>viewport<\/i> settings.<\/p>\n\n\n\n<p>Our honest agreement, however, keeps us from squeezing. It leaves us only displaying the mock-up correctly in 375 pixels, which are the said points in terms of high DPI mobile devices.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"234\" height=\"426\" src=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/rwd-grid-3-1.png\" alt=\"\" class=\"wp-image-36873\"\/><\/figure>\n\n\n\n<p>2 pixels of the gadget&#8217;s screen horizontally equal 1 pixel (point) for browser. The same in vertical direction.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-mobile-device-detection\">Mobile Device Detection<\/h3>\n\n\n\n<p>We remember from the first part to use an abstract <i>styles.css<\/i> file with all styles and a <i>responsive.css<\/i> file containing breakpoints and styles for different statuses of the desktop version of a site.<\/p>\n\n\n\n<p>Now we need 2 additional css files, for tabs and for smartphones. The files are added in this order:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><i>styles.css<\/i><\/li>\n\n\n\n<li><i>responsive.css<\/i><\/li>\n\n\n\n<li><i>phone.css<\/i> or <i>tab.css<\/i><\/li>\n<\/ol>\n\n\n\n<p>To identify device type, use a server-side method: for example, PHP class <a title=\"Mobile Detect\" href=\"http:\/\/mobiledetect.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">mobile detect<\/a>.<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\"><span style=\"color: #e85f49;\">&lt;head&gt;<\/span><br>\n<span style=\"color: #e85f49;\">&lt;meta <span style=\"color: #bf7501;\">name<\/span>=<span style=\"color: #50a14f;\">\"viewport\"<\/span> <span style=\"color: #bf7501;\">name<\/span>=<span style=\"color: #50a14f;\">\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"<\/span>\/&gt;<\/span><br>\n<span style=\"color: #e85f49;\">&lt;link <span style=\"color: #bf7501;\">href<\/span>=<span style=\"color: #50a14f;\">\"\/css\/styles.css\"<\/span> <span style=\"color: #bf7501;\">rel<\/span>=<span style=\"color: #50a14f;\">\"stylesheet\"<\/span> <span style=\"color: #bf7501;\">type<\/span>=<span style=\"color: #50a14f;\">\"text\/css\"<\/span>\/&gt;<\/span><br>\n<span style=\"color: #e85f49;\">&lt;link <span style=\"color: #bf7501;\">href<\/span>=<span style=\"color: #50a14f;\">\"\/css\/responsive.css\"<\/span> <span style=\"color: #bf7501;\">rel<\/span>=<span style=\"color: #50a14f;\">\"stylesheet\"<\/span> <span style=\"color: #bf7501;\">type<\/span>=<span style=\"color: #50a14f;\">\"text\/css\"<\/span>\/&gt;<\/span><br>\n<span style=\"color: #ca126b;\">&lt;?php<\/span><br>\n<span style=\"color: #a626b6;\">require_once<\/span> <span style=\"color: #50a14f;\">'Mobile_Detect.php'<\/span>;<br>\n<span style=\"color: #e85f49;\">$detect<\/span> = <span style=\"color: #a626b6;\">new<\/span> <span style=\"color: #c68420;\">'Mobile_Detect'<\/span>;<br>\n<span style=\"color: #a626b6;\">if<\/span> (<span style=\"color: #e85f49;\">$detect<\/span>-&gt;isMobile() &amp;&amp; !<span style=\"color: #e85f49;\">$detect<\/span>-&gt;isTablet()) {<br>\n<span style=\"color: #0184c7;\">echo<\/span> <span style=\"color: #50a14f;\">'&lt;link href=\"\/css\/phone.css\" rel=\"stylesheet\" type=\"text\/css\"&gt;'<\/span>;<br>\n}<br>\n<span style=\"color: #a626b6;\">if<\/span> (<span style=\"color: #e85f49;\">$detect<\/span>-&gt;isTablet()) {<br>\n<span style=\"color: #0184c7;\">echo<\/span> <span style=\"color: #50a14f;\">'&lt;link href=\"\/css\/tab.css\" rel=\"stylesheet\" type=\"text\/css\"&gt;'<\/span>;<br>\n}<br>\n<span style=\"color: #ca126b;\">?&gt;<\/span><br>\n<span style=\"color: #e85f49;\">&lt;\/head&gt;<\/span><\/code><\/p>\n\n\n\n<p>All the CSS styles for mobile devices are written in the <i>phone.css<\/i> and <i>tab.css<\/i> files; we also include media queries to avoid a pileup of files. The logic of breakpoints activation is the same as for desktop\/laptop versions, namely a cascaded inheritance of properties from the largest scale to the smallest one (see Part 1). Sometimes you only need 2 variants of style to be coded, for landscape and for portrait orientation. The minimal width is 320 pixels, while the said iPhone 6 Plus is 414 px wide: that is why some elements need to be adjusted to the size of the browser&#8217;s window.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-server-side-vs-css-amp-js-detection\">Server Side Vs CSS &amp; JS Detection<\/h3>\n\n\n\n<p>Traditionally gadgets have a high dots density, a higher than 1.5 pixel ratio, and smaller screens than desktops. However, technologies change and limits become more and more blurred. Apple laptops and desktops, for one, already got retina displays with a higher dots density. Resolutions of tablets and laptops have been already comparable for a while.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"400\" src=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices-1-1.png\" alt=\"\" class=\"wp-image-36871\"\/><\/figure>\n\n\n\n<p>If you do not have a bulletproof solution for CSS-detection you will google to find a great deal of variants. All else being equal, the service-side device detection method is useful for small and medium web projects (see Part 1), as it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>works easily and reliably<\/li>\n\n\n\n<li>does not require you to make up conditions by searching parameters of devices<\/li>\n\n\n\n<li>enables an easy fine-tuning of interface elements and content design<\/li>\n<\/ul>\n\n\n\n<p>All CSS files can be divided according to purpose:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Common files for the UI and content + desktop\/laptop styles (the latter can be made separately or placed into the 2<sup style=\"vertical-align: initial; font-size: initial;\"><small>nd<\/small><\/sup> file of this list).<\/li>\n\n\n\n<li>File for supporting the desktop version responsiveness.<\/li>\n\n\n\n<li>Mobile devices only.<\/li>\n\n\n\n<li>File containing only css-animations.<\/li>\n<\/ol>\n\n\n\n<p>The code will be more readable and less cluttered. While tuning your work with separate files, each having a specific function.<\/p>\n\n\n\n<p>Consider animations: they are, including durations and easings, pretty bulky. Being kept in a separate file, they will not interfere with the adjusting of main styles, and in case of doubt you can turn them off until you find the problem.<\/p>\n\n\n\n<p>JavaScript is another method of device detection. However, if you do not want to reinvent the wheel, you have to install an external script or plugin. You will assign class mobile to tag body according to results and build up styles for devices of the .mobile .element { } type without dividing the styles into separate files.<\/p>\n\n\n\n<p>The server-side device detection method has an advantage. It turns a small chunk of your code within the head tag containing conditions for linking style sheets into a somewhat of a headquarter, where tasks are distributed. This way you can enable not only different style sheets, but JavaScript files and chunks of code for specific devices as well.<\/p>\n\n\n\n<p>It is simple and it works. You need less time to do that than you have already spent on reading this article.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-more-about-css-for-mobile-device\">More About CSS for Mobile Device<\/h3>\n\n\n\n<p>Media queries in CSS for smartphones are set like in the main site version. Don&#8217;t be confused that in css pixels are pointed out. This is css notation. The same points are meant here.<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\"><span style=\"color: #a626a4;\">@media<\/span> screen and (max-width: <span style=\"color: #986801;\">640px<\/span>) {<br>\n}<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (max-width: <span style=\"color: #986801;\">480px<\/span>) {<br>\n}<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (max-width: <span style=\"color: #986801;\">375px<\/span>) {<br>\n}<\/code><\/p>\n\n\n\n<p>Here are some media queries to detect device orientation:<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\"><span style=\"color: #a626a4;\">@media<\/span> screen and (orientation: <span style=\"color: #986801;\">landscape<\/span>) {<br>\n}<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (orientation: <span style=\"color: #986801;\">portrait<\/span>) {<br>\n}<\/code><\/p>\n\n\n\n<p>The combinations with coordinates and orientation may also be useful:<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\"><span style=\"color: #a626a4;\">@media<\/span> screen and (orientation: <span style=\"color: #986801;\">portrait<\/span>) {<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (max-width: <span style=\"color: #986801;\">1200px<\/span>) {<br>\n}<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (max-width: <span style=\"color: #986801;\">1024px<\/span>) {<br>\n}<br>\n}<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (orientation: <span style=\"color: #986801;\">portrait<\/span>) {<br>\n<span style=\"color: #a626a4;\">@media<\/span> screen and (max-width: <span style=\"color: #986801;\">1024px<\/span>) {<br>\n}<br>\n}<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-two-lifehacks\">Two Lifehacks<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-lifehack-1\">Lifehack # 1<\/h4>\n\n\n\n<p>iPhone \u2013 to prevent shortsightedness, apparently \u2013 enlarges fonts it finds too small without asking. To avoid this, write in the file <i>phone.css<\/i>:<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\"><span style=\"color: #e85f49;\">html<\/span> {<br>\n-ms-text-size-adjust: <span style=\"color: #986801;\">none;<\/span><br>\n-webkit-text-size-adjust: <span style=\"color: #986801;\">none;<\/span><br>\n}<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-lifehack-2\">Lifehack # 2<\/h4>\n\n\n\n<p>This inappropriate situation makes iPhones and iPads ignore <i>viewport<\/i> settings, interfering with fine tuning. There is often a bar navigation element with different buttons, fixed in the upper part of your mock-up and having the following properties:<\/p>\n\n\n\n<p><code style=\"background: #f2f2f2 !important; display: inline-block; width: 100%;\">width: <span style=\"color: #986801;\">100%;<\/span><br>\nheight: <span style=\"color: #986801;\">40px;<\/span><br>\nposition: <span style=\"color: #986801;\">fixed;<\/span><br>\ntop: <span style=\"color: #986801;\">0;<\/span><br>\nleft: <span style=\"color: #986801;\">0;<\/span><br>\nmin-width: <span style=\"color: #986801;\">990px;<\/span><br>\nz-index: <span style=\"color: #986801;\">10p;<\/span><\/code><\/p>\n\n\n\n<p>The property <i>min-width: 990px<\/i> is necessary only for the main version; you do not need it for the mobile one. You expect the element to spread out of screen boundaries, as its minimal width is too big. Far from it! iPhone decides to ignore viewport and forcefully squeezes whole mockup in such a way so that this element can fully fit into a screen so that entire website content badly decreases (see Pic.1). Stay alert and set the minimal width for fixed elements, as sometimes gadgets work against any logic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-summary\">Summary<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Detect device type with the server-side method using php class (you can find similar solutions for other languages).<\/li>\n\n\n\n<li>Continue making breakpoints with the size of the browser&#8217;s window reducing; the same way as in the main design version (the methods are covered in the previous article). It means your mobile layout inherits properties from the most compact desktop design.<\/li>\n\n\n\n<li>Using the methods described for adding the necessary style sheets and scripts for each specific device as your construction kit, you can separate the CSSs of mobile and desktop versions to make them visually independent.<\/li>\n\n\n\n<li>Remember to set specific <i>viewport<\/i> parameters.<\/li>\n<\/ul>\n\n\n\n<p>It is unlikely that you will need additional media queries detecting retina to optimize graphics. Now all smartphones have a high DPI, so the styles in phone.css are completely suitable for them.<\/p>\n\n\n\n<p><a href=\"\/wp-content\/uploads\/2016\/10\/source-files.zip\" download=\"\">Download source files.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We brought up an issue of breakpoints for a desktop\/laptop responsive site version in the previous article Responsive Web Design Using Breakpoints. Now it is time to talk about the mobile layout. Let us make two features clear for you to take full advantage of the information below. These features are viewport meta tag settings [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1998,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"cta":"","footnotes":""},"categories":[357],"products_posts":[],"consulting_posts":[],"industry_posts":[],"engagement_model_posts":[],"class_list":["post-1995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ux-and-design"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.5 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Part 2. Responsive Web Design. Mobile<\/title>\n<meta name=\"description\" content=\"It\u2019s not enough to operate only on a desktop version of a website. We spell out how to create a responsive mobile layout using CSS media queries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Part 2. Responsive Web Design. Mobile Devices\" \/>\n<meta property=\"og:description\" content=\"It\u2019s not enough to operate only on a desktop version of a website. We spell out how to create a responsive mobile layout using CSS media queries.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/\" \/>\n<meta property=\"og:site_name\" content=\"*instinctools\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-14T12:48:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-13T11:10:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices.png\" \/>\n\t<meta property=\"og:image:width\" content=\"696\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"kostyn.gricuk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kostyn.gricuk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Part 2. Responsive Web Design. Mobile","description":"It\u2019s not enough to operate only on a desktop version of a website. We spell out how to create a responsive mobile layout using CSS media queries.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/","og_locale":"en_US","og_type":"article","og_title":"Part 2. Responsive Web Design. Mobile Devices","og_description":"It\u2019s not enough to operate only on a desktop version of a website. We spell out how to create a responsive mobile layout using CSS media queries.","og_url":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/","og_site_name":"*instinctools","article_published_time":"2016-10-14T12:48:29+00:00","article_modified_time":"2025-01-13T11:10:49+00:00","og_image":[{"width":696,"height":400,"url":"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices.png","type":"image\/png"}],"author":"kostyn.gricuk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kostyn.gricuk","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/","url":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/","name":"Part 2. Responsive Web Design. Mobile","isPartOf":{"@id":"https:\/\/www.instinctools.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/#primaryimage"},"image":{"@id":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/#primaryimage"},"thumbnailUrl":"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices.png","datePublished":"2016-10-14T12:48:29+00:00","dateModified":"2025-01-13T11:10:49+00:00","author":{"@id":"https:\/\/www.instinctools.com\/#\/schema\/person\/3802820e1dea1526ce4a22d1b5ffa04b"},"description":"It\u2019s not enough to operate only on a desktop version of a website. We spell out how to create a responsive mobile layout using CSS media queries.","breadcrumb":{"@id":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/#primaryimage","url":"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices.png","contentUrl":"https:\/\/www.instinctools.com\/wp-content\/uploads\/2016\/10\/responsive-web-design-mobile-devices.png","width":696,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.instinctools.com\/blog\/post-responsive-web-design-mobile-devices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.instinctools.com\/"},{"@type":"ListItem","position":2,"name":"Part 2. Responsive Web Design. Mobile Devices"}]},{"@type":"WebSite","@id":"https:\/\/www.instinctools.com\/#website","url":"https:\/\/www.instinctools.com\/","name":"*instinctools","description":"Software development company","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.instinctools.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.instinctools.com\/#\/schema\/person\/3802820e1dea1526ce4a22d1b5ffa04b","name":"kostyn.gricuk","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.instinctools.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/98bc5486e0bad3647ed79ac91a2ac01e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/98bc5486e0bad3647ed79ac91a2ac01e?s=96&d=mm&r=g","caption":"kostyn.gricuk"}}]}},"_links":{"self":[{"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/posts\/1995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/comments?post=1995"}],"version-history":[{"count":2,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/posts\/1995\/revisions"}],"predecessor-version":[{"id":99113,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/posts\/1995\/revisions\/99113"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/media\/1998"}],"wp:attachment":[{"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/media?parent=1995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/categories?post=1995"},{"taxonomy":"products_posts","embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/products_posts?post=1995"},{"taxonomy":"consulting_posts","embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/consulting_posts?post=1995"},{"taxonomy":"industry_posts","embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/industry_posts?post=1995"},{"taxonomy":"engagement_model_posts","embeddable":true,"href":"https:\/\/www.instinctools.com\/wp-json\/wp\/v2\/engagement_model_posts?post=1995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}