{"id":127,"date":"2018-12-12T14:01:29","date_gmt":"2018-12-12T14:01:29","guid":{"rendered":"http:\/\/clapat.ro\/themes\/grenada-wordpress-gutenberg\/?p=127"},"modified":"2018-12-12T14:01:29","modified_gmt":"2018-12-12T14:01:29","slug":"basic-principles-of-responsive-web-design","status":"publish","type":"post","link":"http:\/\/artofbone.com\/?p=127","title":{"rendered":"Basic principles of responsive web design"},"content":{"rendered":"\n<p>A while back we made a list of animated gifs explaining the basic \nprinciples of responsive web design. The post was extremely popular. It \nturns we were not the only ones who find it difficult to explain what \nmakes the web responsive. Today we are releasing a video, explaining few\n of the principles with some real examples.<br><\/p>\n\n\n\n<h4>The flow<\/h4>\n\n\n\n<p>As screen sizes become smaller, content starts to take up more \nvertical space and anything below will be pushed down, it\u2019s called the \nflow. That might be tricky to grasp if you are used to design with \npixels and points, but makes total sense when you get used to it.<br><\/p>\n\n\n\n<h4>Relative units<\/h4>\n\n\n\n<p>The canvas can be a desktop, mobile screen or anything in between.\n Pixel density can also vary, so we need units that are flexible and \nwork everywhere. That\u2019s where relative units like percents come in \nhandy. So making something 50% wide means it will always take half of \nthe screen (or viewport, which is the size of the opened browser \nwindow).<br><\/p>\n\n\n\n<h4>Breakpoints<\/h4>\n\n\n\n<p>Breakpoints allow the layout to change at predefined points, i.e. \nhaving 3 columns on a desktop, but only 1 column on a mobile device. \nMost CSS properties can be changed from one breakpoint to another. \nUsually where you put one depends on the content. If a sentence breaks, \nyou might need to add a breakpoint. But use them with caution\u200a\u2014\u200ait can \nget messy quickly when it\u2019s difficult to understand what is influencing \nwhat.<br><\/p>\n\n\n\n<h4>Max and Min values<\/h4>\n\n\n\n<p>Sometimes it\u2019s great that content takes up the whole width of a \nscreen, like on a mobile device, but having the same content stretching \nto the whole width of your TV screen often makes less sense. This is why\n Min\/Max values help. For example having width of 100% and Max width of \n1000px would mean that content will fill the screen, but don\u2019t go over \n1000px.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while back we made a list of animated gifs explaining the basic principles of responsive web design. The post was extremely popular. It turns we were not the only ones who find it difficult to explain what makes the web responsive. Today we&#8230; <\/p>\n<div><a href=\"http:\/\/artofbone.com\/?p=127\" class=\"btn-link\">READ MORE<\/a><\/div>\n","protected":false},"author":2,"featured_media":128,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,14,16],"tags":[17,23,24],"_links":{"self":[{"href":"http:\/\/artofbone.com\/index.php?rest_route=\/wp\/v2\/posts\/127"}],"collection":[{"href":"http:\/\/artofbone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/artofbone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/artofbone.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/artofbone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":0,"href":"http:\/\/artofbone.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/artofbone.com\/index.php?rest_route=\/wp\/v2\/media\/128"}],"wp:attachment":[{"href":"http:\/\/artofbone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/artofbone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/artofbone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}