{"id":207161,"date":"2020-02-22T12:50:18","date_gmt":"2020-02-22T09:50:18","guid":{"rendered":"http:\/\/ww-vb.mine.nu\/w108\/what-developers-can-teach-us-about-responsive-design\/"},"modified":"2020-02-22T16:01:41","modified_gmt":"2020-02-22T13:01:41","slug":"what-developers-can-teach-us-about-responsive-design","status":"publish","type":"post","link":"https:\/\/hameed.nwar.uk\/sa\/what-developers-can-teach-us-about-responsive-design\/","title":{"rendered":"What builders can educate us about responsive design"},"content":{"rendered":"<p> [ad_1]<br \/>\n<br \/><img decoding=\"async\" src=\"https:\/\/cdn0.tnwcdn.com\/wp-content\/blogs.dir\/1\/files\/2020\/02\/1-15-796x417.jpg\" \/><\/p>\n<div>\n<h2 id=\"830c\" class=\"ki kj fb ar aq kk fd kl ff km kn ko kp kq kr ks kt\">Character models<\/h2>\n<p id=\"b794\" class=\"it iu fb ar iv b fu ku fw kv iy kw ja kx jc ky je et\" data-selectable-paragraph=\"\">This one is pretty new to me.<span>\u00a0<\/span>Character models<span>\u00a0<\/span>(CH) are pretty area of interest and usually used to set the width of paragraphs to assist enhance legibility and create content material that&#8217;s comfy to eat and simple to scan.<\/p>\n<p id=\"75a0\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">A single character unit<span>\u00a0<\/span><code class=\"in jq jr js jt b\">width: 1ch<\/code><span>\u00a0<\/span>ought to lead to a paragraph the place each character is positioned on a brand new line\u2013 and it does. Though in actuality, the<span>\u00a0<\/span><code class=\"in jq jr js jt b\">ch<\/code><span>\u00a0<\/span>unit isn\u2019t actually counting characters, however as a substitute estimating the variety of characters per line, by taking the width of the zero character in any given typeface and multiplying it by the worth we offer.<\/p>\n<p id=\"6937\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">WCAG Accessibility pointers counsel a most of 80 characters\/glyphs per line and 40 characters per line for<span>\u00a0<\/span>CJK<span>\u00a0<\/span>glyphs. I&#8217;d even counsel that is excessive \u2014  this text we&#8217;re studying round 70 characters per line. You possibly can learn extra on legibility,<span>\u00a0<\/span>right here.<\/p>\n<h2 id=\"4a43\" class=\"ki kj fb ar aq kk fd kz ff la kn lb kp lc kr ld kt\">Fractional models (FR)<\/h2>\n<p id=\"83f3\" class=\"it iu fb ar iv b fu ku fw kv iy kw ja kx jc ky je et\" data-selectable-paragraph=\"\">Earlier I spoke about percentages and, particularly, how in actuality they&#8217;re a little bit of a ache within the arse to make use of.<\/p>\n<p id=\"5bef\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">Say we need to create a structure, primarily based on an Eight column grid. There are two panels; the primary content material space that fills 5 of the Eight columns and a facet panel that fills the remaining 3. To make use of percentages, we should manually calculate<span>\u00a0<\/span><code class=\"in jq jr js jt b\">5\/8<\/code><span>\u00a0<\/span>and<span>\u00a0<\/span><code class=\"in jq jr js jt b\">3\/8<\/code>.<\/p>\n<pre class=\"ia ib ic id ie le lf dl\"><span id=\"55a1\" class=\"lg kj fb ar jt b bj lh li r lj\" data-selectable-paragraph=\"\">.main-area { width: 62.5% }&#13;\n.sidebar { width: 37.5% }<\/span><\/pre>\n<p id=\"aba8\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">Each time we add a brand new panel, we should return and recalculate every of those values to redistribute the area out there. Oy vey!<\/p>\n<pre class=\"ia ib ic id ie le lf dl\"><span id=\"2d60\" class=\"lg kj fb ar jt b bj lh li r lj\" data-selectable-paragraph=\"\">\/\/ Utilizing Percentages&#13;\n.main-area { width: 50% }&#13;\n.sidebar { width: 25% }&#13;\n.new-panel { width: 25% }<\/span><\/pre>\n<p id=\"7bf2\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">Fractional models, right here, are our savior. Fairly merely, they&#8217;re used as a part of the wrapping (mum or dad) container to outline the segmentation of the inside area. Here&#8217;s a fast instance utilizing the CSS\u00a0grid<span>\u00a0<\/span>framework:<\/p>\n<ul class=\"\">\n<li id=\"29b9\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je lk ll lm\" data-selectable-paragraph=\"\">One ingredient of width<span>\u00a0<\/span><code class=\"in jq jr js jt b\">1fr<\/code><span>\u00a0<\/span>will span the total width of a container<\/li>\n<li id=\"1c9c\" class=\"it iu fb ar iv b fu ln fw lo iy lp ja lq jc lr je lk ll lm\" data-selectable-paragraph=\"\">Two parts of width<span>\u00a0<\/span><code class=\"in jq jr js jt b\">1fr<\/code><span>\u00a0<\/span>will share the area equally<\/li>\n<li id=\"fd4e\" class=\"it iu fb ar iv b fu ln fw lo iy lp ja lq jc lr je lk ll lm\" data-selectable-paragraph=\"\">Two parts, one in every of width<span>\u00a0<\/span><code class=\"in jq jr js jt b\">1fr<\/code><span>\u00a0<\/span>and the opposite of<span>\u00a0<\/span><code class=\"in jq jr js jt b\">2fr<\/code><span>\u00a0<\/span>will obtain<span>\u00a0<\/span><code class=\"in jq jr js jt b\">1\/3<\/code><span>\u00a0<\/span>and<span>\u00a0<\/span><code class=\"in jq jr js jt b\">2\/3<\/code><span>\u00a0<\/span>of the area, respectively<\/li>\n<\/ul>\n<p id=\"2ace\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">Put merely, we use\u00a0<code class=\"in jq jr js jt b\">fr<\/code><span>\u00a0<\/span>to outline the highest variety of the fraction. The underside variety of the fraction is discovered by including collectively every of these values.<\/p>\n<pre class=\"ia ib ic id ie le lf dl\"><span id=\"fd23\" class=\"lg kj fb ar jt b bj lh li r lj\" data-selectable-paragraph=\"\">\/\/ Utilizing Fractional models, with two panels&#13;\n.wrapper {&#13;\n   show: grid;&#13;\n   grid-template-columns: 5fr 3fr;&#13;\n}<\/span><span id=\"48bc\" class=\"lg kj fb ar jt b bj ls lt lu lv lw li r lj\" data-selectable-paragraph=\"\">\/\/ Utilizing Fractional models, altering to a few panels&#13;\n.wrapper {&#13;\n   show: grid;&#13;\n   grid-template-columns: 2fr 1fr 1fr;&#13;\n}<\/span><\/pre>\n<p id=\"9b0a\" class=\"it iu fb ar iv b fu iw fw ix iy iz ja jb jc jd je et\" data-selectable-paragraph=\"\">As you may see within the instance above, the fractional models have made it extremely easy to develop and adapt our structure to suit our new necessities.<\/p>\n<p id=\"2ec4\" class=\"iy iz co ar ja b ge jb gg jc jd je jf jg jh ji jj fe\" data-selectable-paragraph=\"\">As somebody who has intently adopted the evolution of the web, I\u2019m so inspired by the instruments and applied sciences we now have out there to us right now.<\/p>\n<p id=\"6516\" class=\"iy iz co ar ja b ge jb gg jc jd je jf jg jh ji jj fe\" data-selectable-paragraph=\"\">I\u2019ve all the time believed that the very best designs are those who actually take into consideration the instruments and applied sciences that allow them. In case you are new to the world of engineering, I actually hope that this text will encourage you to design ever-more immersive experiences with the arrogance that CSS has your again!<\/p>\n<p data-selectable-paragraph=\"\">&gt;<span class=\"title\">This text was initially printed on uxdesign.cc<\/span><\/p>\n<\/div>\n<p>[ad_2]<br \/>\n<br \/><a href=\"https:\/\/thenextweb.com\/syndication\/2020\/02\/22\/what-developers-can-teach-us-about-responsive-design\/\">Supply hyperlink <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Character models This one is pretty new to me.\u00a0Character models\u00a0(CH) are pretty area of interest and usually used to set the width of paragraphs to assist enhance legibility and create content material that&#8217;s comfy to eat and simple to scan. A single character unit\u00a0width: 1ch\u00a0ought to lead to a paragraph the place each character &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-207161","post","type-post","status-publish","format-standard","hentry","category-tie-world"],"_links":{"self":[{"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/posts\/207161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/comments?post=207161"}],"version-history":[{"count":0,"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/posts\/207161\/revisions"}],"wp:attachment":[{"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/media?parent=207161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/categories?post=207161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hameed.nwar.uk\/sa\/wp-json\/wp\/v2\/tags?post=207161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}