{"id":19119,"date":"2021-04-15T07:42:52","date_gmt":"2021-04-15T12:42:52","guid":{"rendered":"https:\/\/wpstackable.com\/?p=19119"},"modified":"2022-06-27T22:52:43","modified_gmt":"2022-06-28T03:52:43","slug":"designing-a-responsive-website","status":"publish","type":"post","link":"https:\/\/wpstackable.com\/blog\/designing-a-responsive-website\/","title":{"rendered":"Designing a Responsive Website"},"content":{"rendered":"\n<p data-block-type=\"core\">Learn about how you can give your website visitors a great experience across devices through responsive web design.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p data-block-type=\"core\">Designing a website solely for a desktop is just simply not enough in this day and age. Just a few years ago, people were predicting that mobile users will be the majority of web traffic. True enough, in a report by <a href=\"https:\/\/datareportal.com\/reports\/digital-2020-october-global-statshot\" target=\"_blank\" rel=\"noreferrer noopener\">DataReportal<\/a>, a whopping 50.2% of web traffic in 2020 comes from mobile devices. That\u2019s 3.1% more than laptops and desktops.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/image1-1024x575.png\" alt=\"DataReportal Web Traffic Statistics\" class=\"wp-image-19121\" srcset=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/image1-1024x575.png 1024w, https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/image1-300x169.png 300w, https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/image1-768x431.png 768w, https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/image1.png 1440w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>October 2020: October Global Statshot (<a href=\"https:\/\/datareportal.com\/reports\/digital-2020-october-global-statshot\" target=\"_blank\" rel=\"noreferrer noopener\">DataReportal<\/a>)<\/figcaption><\/figure>\n\n\n\n<p data-block-type=\"core\">With this much traffic coming from mobile devices, you would want to make sure that your website is mobile-friendly. You could do this through responsive web design.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" data-block-type=\"core\">What is responsive web design?<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"363\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Stackable-Responsive-Small.gif\" alt=\"Responsive Web Design in action\" class=\"wp-image-19123\"\/><figcaption>Responsive website in action<\/figcaption><\/figure><\/div>\n\n\n<p data-block-type=\"core\">Responsive web design is a concept that approaches website design and development in a way that changes a user\u2019s experience on a website according to the user\u2019s viewport, device or platform. The objective of responsive web design is not just to make sure that the design is aesthetically pleasing across all device types, resolutions or orientations. Its objective also includes making sure that the user\u2019s experience is efficient and enjoyable.<\/p>\n\n\n\n<p data-block-type=\"core\"><a href=\"https:\/\/alistapart.com\/article\/responsive-web-design\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ethan Marcotte<\/a> discusses that responsive web design is not necessarily one piece of technology. He argues that responsive web design is a mixture of techniques. Responsive web design has three foundational components, namely: fluid grids, media queries, and flexible images.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" data-block-type=\"core\">Thinking Responsively<\/h2>\n\n\n\n<p data-block-type=\"core\">It\u2019s easy for beginners in web design to have difficulty understanding what responsive web design really is and more importantly, how to implement it. As a guide, here are some questions that Jason Grigsby formulated in his <a href=\"https:\/\/cloudfour.com\/thinks\/defining-responsiveness\/\" target=\"_blank\" rel=\"noreferrer noopener\">article<\/a> to help users in designing a responsive website; whether beginner or professional:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-block-type=\"core\"><li>Does it adapt to screen size?<\/li><li>Does it take advantage of device capabilities?<\/li><li>Is it accessible anywhere?<\/li><li>Does it work well?<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" data-block-type=\"core\">Responsive Design Considerations<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" data-block-type=\"core\">Fluid grids<\/h4>\n\n\n\n<p data-block-type=\"core\">Make your website adapt to a device\u2019s screen size by using fluid grids. Fluid grids work in terms of proportions. This way, when a layout is squeezed onto a tiny mobile device or stretched across a huge screen, all of the elements in the layout will resize their widths in relation to one another.&nbsp;<\/p>\n\n\n\n<p data-block-type=\"core\">The most common resolutions for designing responsive websites are 1920\u00d71080, 1366\u00d7768, and 360\u00d7640. When your website is being viewed from a viewport that\u2019s too narrow, the design can start to severely break down. This is where media queries come in.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" data-block-type=\"core\">Media queries<\/h4>\n\n\n\n<p data-block-type=\"core\">Media queries are conditional CSS properties. Through media queries, you are able to set CSS rules that will be executed depending on whether the conditions you have set (e.g. viewport width, orientation) are being met.&nbsp;<\/p>\n\n\n\n<p data-block-type=\"core\">For example, you can hide a section from your website when viewing from a mobile device. This is how that media query would look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-block-type=\"core\"><code>@media screen and (width: 300px) {\n.section {\nDisplay:none;\n}\n}<\/code><\/pre>\n\n\n\n<p data-block-type=\"core\">.section-reviews is what you call a CSS class. This media query dictates that when viewing from a screen that has a minimum width of 300 pixels, it will not display this section by calling the CSS class out and setting the CSS rule Display to \u201cnone\u201d.<\/p>\n\n\n\n<p data-block-type=\"core\">Learn more about media queries on W3School&#8217;s comprehensive <a href=\"https:\/\/www.w3schools.com\/css\/css_rwd_mediaqueries.asp\" target=\"_blank\" rel=\"noreferrer noopener\">discussion<\/a> on it!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" data-block-type=\"core\">Device Capabilities<\/h4>\n\n\n\n<p data-block-type=\"core\">Take into consideration what the different capabilities of a device are when designing your website. Touch screens come with different design guidelines than cursor-based interaction.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"281\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Button-hover.gif\" alt=\"Button hover in action\" class=\"wp-image-19178\"\/><figcaption>Button hover in action<\/figcaption><\/figure><\/div>\n\n\n<p data-block-type=\"core\">For example, link hovers won\u2019t work with touch screens since there is no cursor that could navigate around the website. It\u2019s a great design feature for desktop viewing. However, it might become difficult for website visitors to tell apart links from plain text if there are no added design considerations for those viewing from a mobile device.<\/p>\n\n\n\n<p data-block-type=\"core\">If you would like to learn more about how you could implement design considerations for different device capabilities, read this <a href=\"https:\/\/www.smashingmagazine.com\/2013\/05\/gesture-driven-interface\/\" target=\"_blank\" rel=\"noreferrer noopener\">article<\/a> by Thomas Joos in which he discusses different design considerations for touchscreen-based interactions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" data-block-type=\"core\">Flexible images<\/h4>\n\n\n\n<p data-block-type=\"core\">Flexible media are relative to the flexible grid as these sizes are usually set as a percentage of a grid. This prevents the medium from being larger than the grids in which they\u2019re placed without sacrificing any of their aspect ratio. In doing so, you are assured that no matter how the page width is changed, the image will always be displayed properly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" data-block-type=\"core\">Designing a Responsive Website with Gutenberg<\/h2>\n\n\n\n<p data-block-type=\"core\">Designing a responsive website may seem a bit overwhelming. Fortunately, most Content Management Systems (e.g. WordPress, Wix, Shopify) already have built-in features that help beginners in making websites responsive.<\/p>\n\n\n\n<p data-block-type=\"core\">In WordPress\u2019s block editor, Gutenberg, you are able to see how your website is going to look like when viewing from a desktop, tablet, or mobile device.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"390\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Gutenberg-Responsive-1.gif\" alt=\"Responsive web design settings in Gutenberg\" class=\"wp-image-19125\"\/><figcaption>Responsive Settings in Gutenberg<\/figcaption><\/figure><\/div>\n\n\n<p data-block-type=\"core\">Take it a step further and design stunning websites with Stackable. Creating responsive websites can be as easy as clicking a few buttons to make sure that your website looks flawless on any screen resolution, or platform\u2013be it on a mobile phone, a tablet, or, of course, a desktop.<\/p>\n\n\n\n<p data-block-type=\"core\">Edit visually and see how blocks look like when viewing from a mobile or a tablet device.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"390\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Stackable-Editor-Responsive.gif\" alt=\"Live responsive web design editing on Stackable\" class=\"wp-image-19126\"\/><figcaption>Live responsive editing on Stackable<\/figcaption><\/figure><\/div>\n\n\n<p data-block-type=\"core\">Easily show or hide any elements through our responsive toggle settings.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"310\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Stackable-Show-Hide.gif\" alt=\"Show\/Hide Elements on Stackable\" class=\"wp-image-19127\"\/><figcaption>Show\/hide elements on the Stackable editor<\/figcaption><\/figure><\/div>\n\n\n<p data-block-type=\"core\"><a rel=\"noreferrer noopener\" href=\"https:\/\/wpstackable.com\/features\/\" data-type=\"page\" data-id=\"15716\" target=\"_blank\">Learn more<\/a> about Stackable and unlock our extensive block collection to start creating stunning responsive websites.<\/p>\n\n\n\n<div class=\"aligncenter wp-block-ugb-cta ugb-cta ugb-de2a73a ugb-cta ugb-cta--v2 ugb-main-block\" data-block-type=\"core\"><style>.ugb-de2a73a .ugb-cta__title,.ugb-de2a73a .ugb-cta__description,.ugb-de2a73a .ugb-button-container{text-align:left !important}.ugb-de2a73a .ugb-cta__item{background-image:url(https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Learn-CTA.png)}.ugb-de2a73a .ugb-cta__item:before{opacity:0.5}.ugb-de2a73a .ugb-cta__title{font-size:48px !important;font-weight:500 !important;color:#ffffff}.ugb-de2a73a .ugb-cta__description{margin-bottom:32px !important;color:#ffffff}.ugb-de2a73a .ugb-button .ugb-button--inner{font-family:\"DM Sans\",Sans-serif !important;font-weight:400 !important}.ugb-de2a73a .ugb-button{background-color:#ffffff;border-radius:0px !important}.ugb-de2a73a .ugb-button .ugb-button--inner,.ugb-de2a73a .ugb-button svg:not(.ugb-custom-icon){color:var(--stk-global-color-43441,#111111) !important}.ugb-de2a73a .ugb-button:before{border-radius:0px !important}.ugb-de2a73a .ugb-inner-block{text-align:left}<\/style><div class=\"ugb-inner-block\"><div class=\"ugb-block-content\"><div class=\"ugb-cta__item ugb--has-background-overlay\"><h3 class=\"ugb-cta__title\">Want to learn more <br>about Stackable?<\/h3><p class=\"ugb-cta__description\">Your very own Learning Hub for all things WordPress and Stackable. Find the right resources to help get you started as you begin building your online presence with Stackable.<\/p><div class=\"ugb-button-container\"><a class=\"ugb-button ugb-button--size-normal ugb--shadow-3 ugb-button--has-icon ugb-button--icon-position-right\" href=\"\" rel=\"\" title=\"\"><div class=\"ugb-icon-inner-svg\"><svg data-prefix=\"fas\" data-icon=\"arrow-right\" class=\"svg-inline--fa fa-arrow-right fa-w-14\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 448 512\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"><\/path><\/svg><\/div><span class=\"ugb-button--inner\">Go to Stackable Learn<\/span><\/a><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn about how you can give your website visitors a great experience across devices through responsive web design.<\/p>\n","protected":false},"author":18,"featured_media":24513,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[10],"tags":[],"class_list":{"0":"post-19119","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"hentry","7":"category-useful-tips"},"featured_image_urls_v2":{"full":["https:\/\/wpstackable.com\/wp-content\/uploads\/2021\/04\/Group-570.png",2400,1248,false]},"post_excerpt_stackable_v2":"<p>Learn about how you can give your website visitors a great experience across devices through responsive web design. Designing a website solely for a desktop is just simply not enough in this day and age. Just a few years ago, people were predicting that mobile users will be the majority of web traffic. True enough, in a report by DataReportal, a whopping 50.2% of web traffic in 2020 comes from mobile devices. That\u2019s 3.1% more than laptops and desktops.&nbsp; October 2020: October Global Statshot (DataReportal) With this much traffic coming from mobile devices, you would want to make sure that&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/wpstackable.com\/blog\/category\/useful-tips\/\" rel=\"category tag\">Useful Tips<\/a>","author_info_v2":{"name":"Alexandra Yap","url":"https:\/\/wpstackable.com\/blog\/author\/alex\/"},"comments_num_v2":"2 comments","acf":[],"modified_by":"Liana","_links":{"self":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts\/19119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/comments?post=19119"}],"version-history":[{"count":4,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts\/19119\/revisions"}],"predecessor-version":[{"id":24516,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts\/19119\/revisions\/24516"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/media\/24513"}],"wp:attachment":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/media?parent=19119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/categories?post=19119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/tags?post=19119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}