{"id":1173,"date":"2008-07-23T10:22:47","date_gmt":"2008-07-23T10:22:47","guid":{"rendered":"http:\/\/www.guyweb.co.uk\/2008\/07\/23\/liquid-layout-best-suited-to-the-desktop\/"},"modified":"2008-07-23T10:22:47","modified_gmt":"2008-07-23T10:22:47","slug":"liquid-layout-best-suited-to-the-desktop","status":"publish","type":"post","link":"https:\/\/guycarberry.co.uk\/guyweb\/2008\/07\/23\/liquid-layout-best-suited-to-the-desktop\/","title":{"rendered":"Liquid layout best suited to the desktop?"},"content":{"rendered":"<p>I&#8217;m breaking my radio silence to talk about something that has been bothering me about web design lately: Mobile \/ small screen web design layout.<\/p>\n<p>I&#8217;ve been using my Nokia e51 to browse the web on a daily basis for the last six months or so. A lot of the sites I visit have mobile versions of their content: Twitter, Facebook, Flickr, BBC, Amazon. These mobile versions are not just about mobile stylesheets but entirely different templates with different navigation systems which often put a wall around the core features of the site so you can&#8217;t stray into areas that haven&#8217;t been optimised for mobile or simply aren&#8217;t suitable. The majority of websites don&#8217;t have mobile versions of their sites but are still viewable in most modern mobile phones and small screen devices that support HTML and CSS.<\/p>\n<p>There&#8217;s an <a href=\"http:\/\/www.stuffandnonsense.co.uk\/archives\/fixed_or_fluid_you_decide.html\">oft-debated argument<\/a> about fixed-width -vs- fluid layout. It usually revolves around the need of the designer to have control of the canvas, to be able to absolutely position elements on a page so that the design comes together as a cohesive piece. Whilst this approach might look rather nice if the user has the same display \/ browser setup as the designer this is rarely the case. A lot of web design is about just letting go. Maybe <a href=\"http:\/\/www.alistapart.com\/articles\/dao\">accepting the loss of control<\/a> is the mark of a good web designer? So we should all be using fluid layout designs, where possible, in our website design. But what about mobile or small-screened devices?<\/p>\n<p>Viewing a liquid layout website on my Webkit-powered Nokia browser is not a pleasant experience. Imagine a simple layout with the main content occupying 60% of the viewport with the remaining 40% given over to peripheral sidebar style navigation elements. 60% of an 800 pixel viewport is 480px, leaving 320px for the sidebar. This seems reasonable enough. Large screens, with max-width techniques for line-length legibility employed can look good too using this ratio.<\/p>\n<p>Switch to a small screen of 240px and the story is rather different. 60% = 144px \/ 40% = 96px. Whilst we have no horizontal scrollbars in this instance, the columns are extremely narrow are difficult to read. This is a simple two column layout. Imagine what happens when we throw three or four liquid columns into the mix (4 x 25% = 4 x 60px)! I&#8217;ve actually found that fixed-width layouts optimised for 1024px widths render much better on my mobile phone. Granted I get a horizontal scrollbar but Nokia&#8217;s browser is intelligent enough to recognise blocks of content and to wrap them within the viewport for me. To get to the sidebar I need to scroll right but, once there, the content wraps nicely. The same is true for liquid designs where a min-width is defined.<\/p>\n<p>So for me, on my Nokia e51, fixed width websites work better than percentage-based liquid designs that don&#8217;t have a min-width defined. I don&#8217;t have an iphone so can&#8217;t comment about that but would be interested to know of your experiences on a range of different small-screened devices that attempt to render HTML and CSS.<\/p>\n<p>So, in addition to the <a href=\"http:\/\/www.456bereastreet.com\/archive\/200803\/specify_a_maximum_width_for_embased_layouts\/\">excellent advice from Roger Johansson<\/a> on setting a max-width, I&#8217;d like to suggest that all liquid layouts need a defined min-width for viewing on small screens.<\/p>\n<p>To understand what I&#8217;m talking about, make your browser really small for the following liquid-width websites:<\/p>\n<ul>\n<li><a href=\"http:\/\/meyerweb.com\/\">Meyerweb.com<\/a><\/li>\n<li><a href=\"http:\/\/adactio.com\/journal\/?skin=hirnlego\">Adactio using the hirnlego theme<\/a><\/li>\n<li><a href=\"http:\/\/www.vivabit.com\/\">Vivabit<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m breaking my radio silence to talk about something that has been bothering me about web design lately: Mobile \/ small screen web design layout. I&#8217;ve been using my Nokia e51 to browse the web on a daily basis for the last six months or so. A lot of the sites I visit have mobile [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[87],"class_list":["post-1173","post","type-post","status-publish","format-standard","hentry","category-work","tag-web-design"],"_links":{"self":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/posts\/1173"}],"collection":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/comments?post=1173"}],"version-history":[{"count":0,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/posts\/1173\/revisions"}],"wp:attachment":[{"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/media?parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/categories?post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guycarberry.co.uk\/guyweb\/wp-json\/wp\/v2\/tags?post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}