Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Responsive and Adaptive Web Design By: Chad W. Stoker (MCTS, MCP, MCAD) President & Chief Technology Officer."— Presentation transcript:

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

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

3 Tools 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

4 Pre-requisites (1) 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;

5 Pre-requisites (2) HTML5 shim for IE… (http://code.google.com/p/html5shiv/)http://code.google.com/p/html5shiv/ ◦ CSS3 Media Queries Shim… (http://code.google.com/p/css3-mediaqueries- js/)http://code.google.com/p/css3-mediaqueries- js/ ◦ ◦Note: Doesn't work on @import'ed stylesheets (which you shouldn't use anyway for performance reasons). Also won't listen to the media attribute of the and elements

6 Your first Responsive design… The goal:

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

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

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

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

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

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


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

Similar presentations


Ads by Google