{"id":1962,"date":"2013-12-08T16:41:00","date_gmt":"2013-12-08T12:41:00","guid":{"rendered":"http:\/\/nayarweb.com\/blog\/?p=1962"},"modified":"2013-12-09T22:39:21","modified_gmt":"2013-12-09T18:39:21","slug":"making-a-responsive-blog","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2013\/making-a-responsive-blog\/","title":{"rendered":"Making a &#8220;Responsive&#8221; Blog"},"content":{"rendered":"<p>It turned out to be a quick and fairly easy job considering the fact that it&#8217;s the first time I&#8217;m paying with @media screen stuffs.<\/p>\n<p>Changing the main divs&#8217; &#8220;width&#8221; to &#8220;max-width&#8221; did magic. The blog was like 75% responsive already. <\/p>\n<p><code>- width: 1000px;<br \/>\n+ max-width: 1000px;<\/code><\/p>\n<p>Then comes the most tedious part: fine tuning the interface.<\/p>\n<p><center><img decoding=\"async\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2013\/12\/response3.png\" alt=\"response3\" \/><\/center><\/p>\n<p>After wards, trimming margins, paddings was necessary to maximise the precious pixels on mobile devices. <\/p>\n<p><code>@media screen and (max-width: 430px){<br \/>\n   #container {<br \/>\n\u00a0\u00a0    padding: 3px:<br \/>\n   }<\/p>\n<p>   .article {<br \/>\n\u00a0\u00a0    margin: 0px;<br \/>\n   }<br \/>\n}<\/code><\/p>\n<p><center><a href=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2013\/12\/response2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2013\/12\/response2-199x300.png\" alt=\"response2\" width=\"199\" height=\"300\" class=\"aligncenter size-medium wp-image-1968\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2013\/12\/response2-199x300.png 199w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2013\/12\/response2.png 318w\" sizes=\"auto, (max-width: 199px) 100vw, 199px\" \/><\/a><\/center><\/p>\n<p>I still need to work on the side boxes. Still undecided what info would mobile uses want to see. I guess time posted should go above the article and the tags\/categories below. It might be a challenge to do this one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It turned out to be a quick and fairly easy job considering the fact that it&#8217;s the first time I&#8217;m paying with @media screen stuffs. Changing the main divs&#8217; &#8220;width&#8221; to &#8220;max-width&#8221; did magic. The blog was like 75% responsive already. &#8211; width: 1000px; + max-width: 1000px; Then comes the most tedious part: fine tuning &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2013\/making-a-responsive-blog\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Making a &#8220;Responsive&#8221; Blog<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[176,175],"class_list":["post-1962","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-html5","tag-web-design"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/1962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=1962"}],"version-history":[{"count":11,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/1962\/revisions"}],"predecessor-version":[{"id":1978,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/1962\/revisions\/1978"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=1962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=1962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=1962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}