You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><strong>Question:</strong> What are the things you would do to make a website responsive</p>
84
-
<p><strong>Answer:</strong>There is a series of stuff you can do. and a summery of them are</p>
83
+
<p><strong>Question:</strong> What are the things you would consider to make a website responsive?</p>
84
+
<p><strong>Answer:</strong>It depends on what I am trying to do but you can talk about a some of them-</p>
85
85
<ul>
86
86
<li><strong>layout</strong>, keep it simple. dont use div, absolute position or float unnecessarily. kill inline styles. use HTML5 doctype, reset stylesheet, semantic core layout.</li>
87
87
<li><strong>media queries</strong>, to load stylesheet based on the size of the media or apply rules based on the orientation of the media</li>
88
88
<li><strong>breakpoints</strong>, choose the right breakpoints to switch style. common breakpoints are <480px, <768px, >768px. There are three nice to have breakpoints <320px, >769px and <1024px, >1024px.</li>
89
-
<li><strong>flexible</strong>, don't use fixed width rather use relative to viewport size. like em, %</li>
89
+
<li><strong>flexible</strong>, don't use fixed width rather use relative to viewport size. For example, 50% of the viewport will always be half of the screen and doesn't depend on the device. This is also important for font-size and it is recommended to use something relative like em</li>
90
90
<li><strong>pictures</strong>, pictures are a big of a deal for responsive websites. Right now you can change src attribute of an image based on the media query alone. Hence you can use background-image or use different picture versions and show/hide their parent in media queries.</li>
91
-
<li><strong></strong></li>
92
-
<li><strong></strong></li>
93
-
<li><strong></strong></li>
94
-
<li><strong></strong></li>
95
-
<li><strong></strong></li>
91
+
<li><strong>max-*, min-*</strong>, you can use <code>max-width:768px;</code><code>min-height:350px;</code> to apply style</li>
92
+
<li><strong>navigation</strong>, re-layout navigation/ menu in lower resolution is very important</li>
93
+
<li><strong>tools</strong>, don't reinvent the wheel. use bootstrap or similar libraries for responsive website</li>
96
94
</ul>
97
-
<p>ref: <ahref="http://readwrite.com/2013/04/16/10-developer-tips-to-build-a-responsive-website-infographic#awesm=~ou5vLQZqqXIubV">Read best practices</a></p>
95
+
<p>ref: <ahref="http://www.1stwebdesigner.com/css/responsive-website-tutorial/">responsive tutorial</a>, <ahref="http://readwrite.com/2013/04/16/10-developer-tips-to-build-a-responsive-website-infographic#awesm=~ou5vLQZqqXIubV">Read best practices</a></p>
0 commit comments