Tuesday, August 6, 2019

Responsive Web Design Essay Example for Free

Responsive Web Design Essay Ethan Marcotte, author of this original A List Apart article back in 2010, provided us with the concept of Responsive Web Design. Removing the need to develop multiple versions of the same site for different devices, its popularity led to the release of his book. Id like to share with you a few concepts of Responsive Web Design, allowing the content and structure of the website conform to that of the device or browser. Starting any layout, we typically rely on pixels. Measuring the width of our structure from the design document. Ethans concept suggests using percentages. Requiring a little more calculation, but otherwise fairly simple. Now since we do not want to simply shrink everything down, we combine this with the use of CSS Media Queries. These can be thought of as conditional CSS, allowing us to alter the structure as a whole when the browser size drops below a certain size. Check out this article for a more detailed explanation on media queries: http://css-tricks.com/css-media-queries/ Now since images dont adjust themselves into the containing structure like text does, we have to call on the use of JavaScript. We can save out two versions of the image, one optimized for mobile and another for browsers capable of larger sizes and resolutions. The JavaScript is then used to render the image proportionally and at the appropriate resolution. After hearing Ethan discuss this concept at Front-End design conference in 2011, fellow WDD instructors and I found ourselves very excited about it. Now most users do not actively resize their browser as they experience the web, but we found that we disliked that the continual re-render as you do. To this end, Ive created an alternate solution based off of Ethans original concept. Start off by building out your structure at the maximum size. Then, calculate out what the required minimum browser size is in order to view this correctly. Just as in the original concept, you add additional CSS using Media Queries to make adjustments. The difference is that you continue to use pixels instead of percentages. As any item can still be hidden, moved, or shrunk, this allows for a full range of layouts, ones which snap to place at certain intervals, rather than doing so continually. Now some may argue that if the users browser falls in-between these content sizes that screen real-estate is still being wasted. I am willing to concede this point, however feel this is minimal. The avoidance of any unwanted readability issues caused from the auto-format outweighs the negatives.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.