{"id":14320,"date":"2012-07-16T23:01:26","date_gmt":"2012-07-16T15:01:26","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=14320"},"modified":"2023-04-06T19:18:51","modified_gmt":"2023-04-06T11:18:51","slug":"responsive-for-mobile-screens","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/","title":{"rendered":"Mastering Mobile Layouts: Tips and Examples"},"content":{"rendered":"<p>Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and since we are talking about a lot of different screen sizes and resolutions here, it\u2019s a huge task to shoulder.<\/p>\n<p>In light of this, <strong>responsive web design<\/strong> could be the best solution. It offers more than just a simple mobile template; instead,   your entire site layout is designed to be flexible enough to fit into any possible screen resolution.<\/p>\n<p>With such a fluid design scheme, there are obvious benefits and drawbacks. Consider my examples below for how responsive web design can make the transition into mobile devices a smoother one.<\/p>\n<h2>How Responsive Design Works<\/h2>\n<p>When I use the word \u201cresponsive\u201d in terms of web design, I mean that the entire layout responds based on the user\u2019s screen resolution. Imagine this scenario: you\u2019re reading a website on one tablet, then you switch to another device for one reason or another. The browser window is now re-sized. A responsive web design layout will feature schemes and a layout that gracefully breaks down and reinvents itself. From a usability perspective, this is a brilliant technique.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg\" alt=\"\" height=\"480\" width=\"500\"><\/figure>\n<p>Responsive design is all about creating a homogeneous experience regardless of the browser or device screen size. I\u2019ve found the perfect example from \u2018A List Apart\u2019 to illustrate my point, which also includes dynamic images.<\/p>\n<p>The width is set in CSS using percentages for mostly all of the internal container elements. Larger websites also respond well to removing dynamic content, such as JavaScript, when it\u2019s not supported.<\/p>\n<h2>Why Design for Mobile?<\/h2>\n<p>It has become evident that more users are going mobile, and not just for on-the-go web browsing either. Tablet PCs have begun to change in context when users are online in the classroom. Designing for mobile is certainly a requirement in modern-day web standards. The only problem is choosing your method of development and targeting your audience appropriately.<\/p>\n<p>When you start coding for specific screen resolutions, you end up with too many stylesheets to deal with. Media queries in CSS3 can be used to build iPhone-specific layouts for both portrait and landscape views. Since you can predetermine the pixel density, it\u2019s easy to revamp any HTML template for mobile.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/design-for-mobile.jpg\" alt=\"\" height=\"302\" width=\"500\"><\/figure>\n<p>But when you code a layout for responsive design, the mobile aspects are taken care of by default. Both desktop and mobile users will be offered a similar experience and you won\u2019t need to worry about external CSS properties. The only research you\u2019d need to perform is planning for the smallest possible display screen. Google Analytics traffic data can be very helpful for this.<\/p>\n<p>You won\u2019t likely get your website working 100% on every single device running every browser. But you can target a majority based on the average width of the screen. Older iPhone models use a 320\u00d7480 display resolution which isn\u2019t so unbelievable. I would shoot for a minimum width of 240px, or even smaller if you can fit it.<\/p>\n<h2>Removing the Default Zoom<\/h2>\n<p>If you have spent any time browsing the Web on a smartphone, you\u2019ll notice how websites are scaled out to fully display within the screen. This is for the user\u2019s convenience since most websites do not have a mobile counterpart thus the full layout is the safest bet.<\/p>\n<p>But when you get into building a responsive mobile design, the auto-zoom can really mess up your layout elements. Specifically, images and navigation content may appear small or too large in your layout. There is a special meta tag you can append into the document header, which resets this in most Android and iPhone devices.<\/p>\n<pre>&lt;meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" \/&gt;<\/pre>\n<p>This is known as the <strong>viewport meta tag<\/strong> which sets up some custom variables within the content. Apple has a <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/developer.apple.com\/safari\/resources\/\">documentation page<\/a> regarding a few other meta tags you should look into, although these are geared specifically toward websites on iOS. The <strong>initial-scale<\/strong> value is important as this defaults your website to a full 100% zoom.<\/p>\n<p>The last value for <strong>user-scalable<\/strong> will remove this zoom functionality altogether so the user cannot resize the layout. This will lock the design into one size based on the full device width. Note that even if you disable the zoom functionality, a good, responsive design will still adapt when transitioning from portrait to landscape on any device! But it makes sense to lock a responsive design and remove the generic scaling options.<\/p>\n<h2>Dynamic Image Scaling<\/h2>\n<p>Images are another important facet of practically every website. Mobile users may not be looking to stream videos, but photos are a whole different story. These are also the biggest culprits when it comes to layouts breaking out of the box model.<\/p>\n<pre>img { max-width: 100%; }<\/pre>\n<p>The standard rule for CSS is to apply a max-width property to all images. Since they\u2019ll always be set at 100% you will never notice distortions. When the user resizes their browser window smaller than your imagination can handle, it\u2019ll automatically re-adjust to 100% width scaled down. The problem is that Internet Explorer cannot understand this property, so you\u2019ll need to put together an IE-specific stylesheet using <em>width: 100%;<\/em>.<\/p>\n<p>Flexible images are also possible if you use JavaScript or <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/code.google.com\/archive\/p\/jquery-imagefit-plugin\/\">jQuery plugins<\/a>. There are some really smart developers out there who have put in the time to build incredibly responsive image content. <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/stackoverflow.com\/\/questions\/8177991\/how-to-auto-resize-the-image-for-responsive-design-with-pure-css\">This thread<\/a> is just one of many in Stack Overflow which features an outlandish yet convenient approach to solving the IE6\/7 bugs.<\/p>\n<p>I would personally recommend sticking to natural CSS image resizing. If your website is running in a mobile browser with JavaScript enabled it can most likely support CSS as well. If you really want to dig deeper, check out this 24 ways article <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/24ways.org\/2011\/adaptive-images-for-responsive-designs-again\">Images for Adaptive Designs<\/a>.<\/p>\n<h2>Touching Designs<\/h2>\n<p>Web developers may forget that mobile users aren\u2019t on keypad phones like BlackBerrys anymore. A majority of smartphones today use touchscreen interfaces, which render a scenario different from mouse-and-keyboard setups.<\/p>\n<p>As such, you\u2019ll need to consider alternate solutions in mobile elements. Dropdown menus may work better when displayed as a single menu on the right-hand side. Most users are able to tap links on the right side easier than on the left, but either column works to alleviate space. Using margin indents, it\u2019s simple to identify the link hierarchy without requiring any jQuery code.<\/p>\n<p>It\u2019s also good practice to increase the size of these navigation links. Mobile users do not have the luxury of a large screen afforded on desktops or even laptop computers.<\/p>\n<p>You need to keep text large, up-front, tapable, and readable at all costs. You may even want to resize if the user switches between portrait and landscape view \u2013 a fairly common recurrence when browsing the mobile web.<\/p>\n<h2>Custom CSS Layouts<\/h2>\n<p>In general, it\u2019s best to adapt your layout and allow for the natural degradation of your content. If you have a sidebar and content area, you should set them in widths of percentages or ems, anything that will re-size with the browser window. If you apply a <em>min-width<\/em>, this will eventually break off part of the layout; so now your sidebar content displays above the page content.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/looking-through-html5-code.jpg\" alt=\"\" height=\"327\" width=\"500\"><\/figure>\n<p>When you consider how this affects the overall design, it\u2019s a lot easier to develop external stylesheets. However, you are likely to run into screen resolutions that are just too small for your layout to render. This is the perfect scenario for adding custom CSS properties to remove portions of the page or reformat the content altogether.<\/p>\n<h3>Toggle Extra Content On\/Off<\/h3>\n<p>Examples of large content blocks include web forms, dynamic menus, image sliders, and other similar ideas. Instead of completely removing these elements as the layout gets smaller, why not simply hide them in a \u201cminimized\u201d content div? You could use either CSS or JavaScript to perform the edits, but ultimately you\u2019ll likely need some JS code to create a toggle button.<\/p>\n<p>This alternative is perfect for keeping your home page dynamic and full of rich web media. Instead of completely removing your drop-down navigation or rearranging the page structure, you can hide it within a content div. If the user wants to display your links, they tap a toggle button to open\/close the menu.<\/p>\n<p>This formatting is simple, intuitive, and easy to work with on touchscreen devices. Inside the div, you can place each of the dropdown menus side-by-side in a column format. As the window resizes even smaller, they will naturally drop below each other and increase the page height. Yet the option to collapse the entire menu is easily attainable and just a single tap away. This toggle div is also perfect for image sliders in cooperation with dynamic photo re-sizing.<\/p>\n<h3>Using Media Queries<\/h3>\n<p>If a mobile screen breaks your two or 3-column layout, you\u2019ll end up with each of the content areas stacked above each other. The whole site would appear to bleed over and may come off very confusing without distinguished block areas. A better idea is to add a bottom border on each column, only for mobile devices, using an external stylesheet like <strong>mobile.css<\/strong>.<\/p>\n<pre>&lt;link rel=\"stylesheet\" type=\"text\/css\" media=\"screen and (max-device-width: 480px)\" href=\"css\/mobile.css\" \/&gt;<\/pre>\n<p>With these new styles your content is broken up into divisible sections. The media attribute above is specially designed to target older iPhone devices in landscape view. But it will also apply to devices with screens smaller than 480 pixels. Use this to your advantage so you can determine at what point the layout \u201cbreaks up\u201d.<\/p>\n<p>There are a few more options you can use for detecting device orientation. This <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.quirksmode.org\/blog\/archives\/2010\/04\/the_orientation.html\">fantastic guide on CSS media<\/a> can give you a few ideas. Additionally the new mobile project <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/responsivedesign.is\/resources\/boilerplates\/320-and-up\/\">320 and up<\/a> offers a boilerplate for mobile CSS <em>@media<\/em> styles. These can be included directly into the same mobile.css file and apply rules for many different devices.<\/p>\n<pre>\r\n\/* Smartphones (portrait and landscape) ----------- *\/\r\n@media only screen \r\nand (min-device-width : 320px) \r\nand (max-device-width : 480px) {\r\n\/* Styles *\/\r\n}\r\n\r\n\/* Smartphones (landscape) ----------- *\/\r\n@media only screen \r\nand (min-width : 321px) {\r\n\/* Styles *\/\r\n}\r\n\r\n\/* Smartphones (portrait) ----------- *\/\r\n@media only screen \r\nand (max-width : 320px) {\r\n\/* Styles *\/\r\n}\r\n\r\n\/* iPads (portrait and landscape) ----------- *\/\r\n@media only screen \r\nand (min-device-width : 768px) \r\nand (max-device-width : 1024px) {\r\n\/* Styles *\/\r\n}\r\n<\/pre>\n<p><em>(Source: <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/stuffandnonsense.co.uk\/blog\/about\/hardboiled_css3_media_queries\">Hardboiled CSS3 Media Queries<\/a>)<\/em><\/p>\n<h3>Helpful Tools<\/h3>\n<ul>\n<li><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/getskeleton.com\/\">Skeleton \u2013 Beautiful Boilerplate for Responsive Mobile Design<\/a><\/li>\n<li><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.leemunroe.com\/adaptive-responsive\/\">Going from adaptive to fully responsive<\/a><\/li>\n<\/ul>\n<h2>Showcase: Beautiful Responsive Designs<\/h2>\n<p>I hope these tips and design techniques will encourage you to move towards building exciting responsive layouts not just for mobile screens, but for any common device with web browsing. To keep the creative juices flowing I have put together a small showcase of responsive mobile web designs. Be sure to check out some of the more unique features and share your thoughts on the design or the topic in the discussion area.<\/p>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.hangingupthemoon.com\/\"><strong>hanging up the moon<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.hangingupthemoon.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/01-hanging-up-the-moon.jpg\" alt=\"hanging up the moon for iPhone\" width=\"300\" height=\"779\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.macdonaldhotels.co.uk\/\"><strong>Macdonald Hotels<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.macdonaldhotels.co.uk\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/02-macdonald-hotels.jpg\" alt=\"MacDonald Hotels for mobile\" width=\"300\" height=\"718\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/css-tricks.com\/\"><strong>CSS-Tricks<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/css-tricks.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/03-css-tricks.jpg\" alt=\"CSS Tricks online blog mobile\" width=\"300\" height=\"762\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.happycog.com\/\"><strong>Happy Cog<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.happycog.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/04-happy-cog.jpg\" alt=\"Happy Cog web design\" width=\"300\" height=\"745\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/teixido.co\/\"><strong>Teixido<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/teixido.co\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/05-teixido.jpg\" alt=\"Teixido mobile web design\" width=\"300\" height=\"773\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/csswizardry.com\/\"><strong>CSS Wizardry<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/csswizardry.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/06-css-wizardry.jpg\" alt=\"CSS Wizardy\" width=\"300\" height=\"768\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/www.informationarchitects.jp\/en\/\"><strong>Information Architects<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/www.informationarchitects.jp\/en\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/07-information-architects.jpg\" alt=\"Information Architects on mobile apps\" width=\"300\" height=\"834\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/artequalswork.com\/\"><strong>ART=WORK<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/artequalswork.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/08-art-equals-work.jpg\" alt=\"mobile template for Art Equals Work\" width=\"300\" height=\"771\"><\/a><\/figure>\n<p><strong>Hardboiled Web Design<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/10-hardboiled-web-design.jpg\" alt=\"Hardboiled Web Design mobile design\" width=\"300\" height=\"764\"><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.sony.com\/en\/\"><strong>Sony USA<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.sony.com\/en\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/11-sony-digital.jpg\" alt=\"Sony Digital USA\" width=\"300\" height=\"735\"><\/a><\/figure>\n<p><strong>Future Friendly<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/12-future-friendly.jpg\" alt=\"Future Friendly responsive mobile website\" width=\"300\" height=\"764\"><\/figure>\n<p><strong>We Can\u2019t Stop Thinking<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/13-we-cant-stop-thinking.jpg\" alt=\"we can't stop thinking design studio\" width=\"300\" height=\"805\"><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/authenticjobs.com\/\"><strong>Authentic Jobs<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/authenticjobs.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/14-authentic-jobs.jpg\" alt=\"Online job board Authentic Jobs\" width=\"300\" height=\"770\"><\/a><\/figure>\n<p><strong>Colbow Design<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/15-colbow-design.jpg\" alt=\"Colbow Design Studio\" width=\"300\" height=\"779\"><\/figure>\n<p><strong>320 and up<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/16-320-and-up.jpg\" alt=\"320 and up HTML boilerplate for mobile\" width=\"300\" height=\"786\"><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.fork-cms.com\/\"><strong>Fork CMS<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.fork-cms.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/17-fork-cms.jpg\" alt=\"Fork CMS Open Source Development\" width=\"300\" height=\"776\"><\/a><\/figure>\n<p><strong>The Happy Bit<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/18-the-happy-bit.jpg\" alt=\"The Happy Bit mobile web design\" width=\"300\" height=\"723\"><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.electricpulp.com\/\"><strong>Electric Pulp<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.electricpulp.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/19-electric-pulp.jpg\" alt=\"Electric Pulp online studio\" width=\"300\" height=\"804\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.fosterprops.com\/\"><strong>Foster Props<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.fosterprops.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/20-foster-props.jpg\" alt=\"Foster props mobile template design\" width=\"300\" height=\"750\"><\/a><\/figure>\n<p><strong>Plexical<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/21-plexical.jpg\" alt=\"Plexical mobile apps development studio\" width=\"300\" height=\"757\"><\/figure>\n<p><strong>Preeti Cakes<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/22-preeti-cakes.jpg\" alt=\"Preeti Cakes and Cupcakes\" width=\"300\" height=\"767\"><\/figure>\n<p><strong>More Hazards<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/23-more-hazards.jpg\" alt=\"More Hazards mobile browser app\" width=\"300\" height=\"761\"><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.fmc.co.uk\/\"><strong>Dentistry\u2019s Information Centre<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.fmc.co.uk\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/24-fmc-united-kingdom.jpg\" alt=\"FMC - Dental Information Website for Mobile\" width=\"300\" height=\"450\"><\/a><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/ribot.co.uk\/\"><strong>ribot \u2013 interface design<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/ribot.co.uk\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/25-ribot.jpg\" alt=\"ribot - mobile web design responsive template example\" width=\"300\" height=\"538\"><\/a><\/figure>\n<p><strong>Hello Fisher<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/26-hello-fisher.jpg\" alt=\"Hello Fisher - UX Designer\" width=\"300\" height=\"781\"><\/figure>\n<p><strong>Social Marketer\u2019s Summit<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/27-social-marketers-summit.jpg\" alt=\"Social Marketers Summit official mobile site\" width=\"300\" height=\"755\"><\/figure>\n<p><strong>William Csete<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/28-william-csete.jpg\" alt=\"William Csete - Web Designer & Developer\" width=\"300\" height=\"759\"><\/figure>\n<p><strong>Woolly Robot<\/strong><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/29-woolly-robot.jpg\" alt=\"Woolly Robot - Web Design Studio\" width=\"300\" height=\"774\"><\/figure>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.meltmedia.com\/\"><strong>Meltmedia<\/strong><\/a><\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.meltmedia.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/30-melt-media.jpg\" alt=\"Melt Media digital design\" width=\"300\" height=\"765\"><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and since we are talking about a lot of different screen sizes and resolutions here, it\u2019s a huge task to shoulder. In light of this, responsive web design could be the&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[352],"tags":[4646,2065,2066],"topic":[4520,4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Mastering Mobile Layouts: Tips and Examples - Hongkiat<\/title>\n<meta name=\"description\" content=\"Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and\" \/>\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.hongkiat.com\/blog\/responsive-for-mobile-screens\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mastering Mobile Layouts: Tips and Examples\" \/>\n<meta property=\"og:description\" content=\"Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-16T15:01:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T11:18:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Mastering Mobile Layouts: Tips and Examples\",\"datePublished\":\"2012-07-16T15:01:26+00:00\",\"dateModified\":\"2023-04-06T11:18:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/\"},\"wordCount\":1807,\"commentCount\":69,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/responsive-for-mobile\\\/alistapart.jpg\",\"keywords\":[\"Mobile Website Design &amp; Dev\",\"responsive\",\"Responsive Web Design\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/\",\"name\":\"Mastering Mobile Layouts: Tips and Examples - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/responsive-for-mobile\\\/alistapart.jpg\",\"datePublished\":\"2012-07-16T15:01:26+00:00\",\"dateModified\":\"2023-04-06T11:18:51+00:00\",\"description\":\"Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/responsive-for-mobile\\\/alistapart.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/responsive-for-mobile\\\/alistapart.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/responsive-for-mobile-screens\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mastering Mobile Layouts: Tips and Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Mastering Mobile Layouts: Tips and Examples - Hongkiat","description":"Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and","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.hongkiat.com\/blog\/responsive-for-mobile-screens\/","og_locale":"en_US","og_type":"article","og_title":"Mastering Mobile Layouts: Tips and Examples","og_description":"Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and","og_url":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2012-07-16T15:01:26+00:00","article_modified_time":"2023-04-06T11:18:51+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Mastering Mobile Layouts: Tips and Examples","datePublished":"2012-07-16T15:01:26+00:00","dateModified":"2023-04-06T11:18:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/"},"wordCount":1807,"commentCount":69,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg","keywords":["Mobile Website Design &amp; Dev","responsive","Responsive Web Design"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/","url":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/","name":"Mastering Mobile Layouts: Tips and Examples - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg","datePublished":"2012-07-16T15:01:26+00:00","dateModified":"2023-04-06T11:18:51+00:00","description":"Designers have it tougher now than before. We not only have to design for stationary devices, but also mobile devices like tablets and smartphones, and","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/responsive-for-mobile\/alistapart.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Mastering Mobile Layouts: Tips and Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-3IY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=14320"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14320\/revisions"}],"predecessor-version":[{"id":65975,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14320\/revisions\/65975"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=14320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=14320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=14320"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=14320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}