1 / 12

Responsive and Adaptive Web Design

Responsive and Adaptive Web Design. By: Chad W. Stoker (MCTS, MCP, MCAD) President & Chief Technology Officer. Responsive Web Design means what??? Hardware form factors… Re-thinking web layout… As always, balance between existing skill-sets and project priorities….

spiro
Download Presentation

Responsive and Adaptive Web Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Responsive and Adaptive Web Design By: Chad W. Stoker (MCTS, MCP, MCAD) President & Chief Technology Officer

  2. Responsive Web Design means what??? • Hardware form factors… • Re-thinking web layout… • As always, balance between existing skill-sets and project priorities… Responsive Web Design intro

  3. HTML5 – This should be the new target for all of your web development. Think about how to achieve this with ASP.NET versus ASP.NET MVC. • Fluid Grids • Fluid Images • Media Queries • CSS3 • Javascript Tools

  4. Modernizr • http://www.modernizr.com/ • Example: • if (Modernizr.canvas) { • // let's draw some shapes! • } else { • // no native canvas support available :( • } • W/O Modernizr : return !!document.createElement('canvas').getContext; Pre-requisites (1)

  5. HTML5 shim for IE… (http://code.google.com/p/html5shiv/) • <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> • CSS3 Media Queries Shim… (http://code.google.com/p/css3-mediaqueries-js/) • <!--[if lt IE 9]> <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script> <![endif]--> • Note: Doesn't work on @import'edstylesheets (which you shouldn't use anyway for performance reasons). Also won't listen to the media attribute of the <link> and <style> elements Pre-requisites (2)

  6. The goal: Your first Responsive design…

  7. 1,024 pixels and above (Desktops and Laptops) • Between 1,024 and 700 pixels (tablets) • 700 pixels and below (phones) Standard screen-sizes

  8. Using the “float” CSS attribute • Remembering your HTML5 tags • Remembering your backward-compatibility issues • Keeping it to just 2 columns max • Keeping the content to simple text that wraps. • Float settings… Starting out easy

  9. Identifying where a “Fluid Grid” can be constructed. • Calculating width… • Demonstrate how Border, padding, margins, etc affect the wrapping behavior. Making it a bit more tricky…

  10. Now we’ve got something… • Welcome - @media CSS! MEDIA QUERIES IN ACTION…

  11. What about my static top navigation width? • Demo… Navigation Options

  12. http://www.zeldman.com/ • http://easy-readers.net/books/adaptive-web-design/ (Book) • http://www.alistapart.com/articles/responsive-web-design/ • http://www.w3.org/TR/css3-mediaqueries/ (W3WC Media Queries) More Information at…

More Related