CSS3 Media Queries. There are several media types all braille embossed handheld print projection screen speech tty tv.

Slides:



Advertisements
Similar presentations
Coding a Responsive HTML
Advertisements

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Creating Special Effects with CSS
Responsive Web Design (RWD) Building a single web site for the desktop, tablet and smartphone An Infopeople Webinar November 13, 2013 Jason Clark Head.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Media Queries Jeffery Davis CIT media is used to define different style rules for different media types and devices. Media queries.
Responsive Web Design Sheri German, Instructor Montgomery College.
Being Responsibly Responsive Jason
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Responsive Web Design Design websites so that they can adapt to different devices seamlessly. Image by Muhammed RafizeldiMuhammed Rafizeldi.
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
1 Responsive Web Design for Universal Access Image: Kate Walser CX Insights
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
WRA 210 – SS2014 RWD1 : CSS Media Queries. Responsive? Responsive Web Design… Means that a web site works optimally well for users regardless of the device.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
UNIT 6 JAVASCRIPT EVENT HANDLERS &WEB BROWSERS DETECTION.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
DEVELOPING FOR MOBILE Jackie Calapristi. AGENDA  Why you should go mobile  Mobile Design Options  Responsive Design  Tips & Tools to Help You Build.
Responsive Design - It’s time for a reality check.
San Diego 2014 SharePoint Saturday San Diego November 15, 2014 UCSD Extension SharePoint Saturday San Diego November 15, 2014 UCSD Extension.
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
COMP 135 Web Site Design Intermediate Week 8. Responsive Web Design Responsive Design Adaptive Design.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Banners - HTML A banner is a zip-package containing a HTML file, CSS file, and optionally JavaScript file and assets in a asset directory. The banner is.
Style Sheets for Print and Mobile Media Types Supplemental Material.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
PRESENTED BY Content Authoring for Responsive Design Mike Hamilton V.P. Product Evangelism at MadCap Software
Tutorial 8 Enhancing a Web Site with Advanced CSS
HTML, CSS, and XML Tutorial 8 Enhancing a Web Site with Advanced CSS.
Slide 1 CMPS 211 Internet Programming Spring 2008 Style Sheet Building Blocks Chapter 7 & 8 4/8/08.
+ Responsive Design Communication Strategy for Mobile, Desktop Los Alamos National Laboratory Ask a question at #interlab.
RWD: Responsive Web Design. Terms Media queries SVG Responsive Adaptive/RESS Dedicated mobile.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Positioning and Printing Creating Special Effects with CSS.
Responsive Design Design that Adapts to Different Devices SoftUni Team Technical Trainers Software University
INFO1300 LAB7 OCT.11TH RESPONSIVE DESIGN. WHAT IS RESPONSIVE WEB DESIGN A mix of flexible grids and layouts, images and an intelligent use of CSS media.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
1 Company Confidential Need a Mobile DotNetNuke Site? Get One the Quick and Easy Way Using CSS Media Queries Amelia Marschall Partner & Creative Director.
The usable Media types are: all Suitable for all devices Braille Intended for Braille tactile feedback devices. embossed Intended for paged Braille printers.
Small Business Website Revisited Smita Roy. Background The Art of Bloom’ has been chosen which is a florist shop located in a small town called Hornchurch.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Web Development & Design Foundations with HTML5
Implementing Responsive Design UNIT I.
Implementing Responsive Design
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
A better approach to mobile
Responsive Design and Twitter Bootstrap
Responsive Web Design (RWD)
Responsive Web Pages.
Concepts for fluid layout
Introduction to CSS Media Query - Lesson 11
Web Development & Design Foundations with HTML5
RESPONSIVE WEB DESIGN.
CSS part 2 Outro.
Responsive Design.
Responsive Web Design (RWD)
Responsive Web Design (RWD)
Session VI Chapter 8 - How to Use Responsive Web Design (RWD)
Chapter 8 - How to Use Responsive Web Design (RWD)
Responsive Web Design (RWD)
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Web Development & Design Foundations with HTML5
Concepts for fluid layout
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

CSS3 Media Queries

There are several media types all braille embossed handheld print projection screen speech tty tv

Some print { body {font-size: 10pt;} screen { body {font-size: 13px;} screen, print { body {line-height: 1.0;} }

Why?

@media screen - establishing breakpoints There are no hard and fast rules! Some like to set the breakpoints based on the devices' resolution. E.g.: 320px for mobile, 768px for tablet, 1024px or higher for desktop. RWD is meant in an attempt to be future proof, so spending too much time focusing on present devices is not good practice DeviceResolution Mobile320px Tablet768px Desktop1024px

Example layout manipulated by media queries Layout container given a minimum and maximum width Interior components (children) are declared blocks {display: block} Example main content given 67% width and the sidebar 33% Media query instructs browser/device to display main content at 100% width and sidebar 100% width The result is that the sidebar folds beneath the main content 67%33%100%.content { width: 67%; }.sidebar { width: 33%; screen and (max-width: 768px) {.content { width: 100%; }.sidebar { width: 100%; }

Add to element

Launch Responsive website Establish Breakpoints Insert media queries appropriate to your design Add Viewport Meta Tag LAUNCH!

Fallback

Javascript : wp_enqueue_scripts <?php add_action( 'wp_enqueue_scripts', 'jmd_enqueue_lt_ie9' ); function jmd_enqueue_lt_ie9() { global $is_IE; if ( ! $is_IE ) return; if ( ! function_exists( 'wp_check_browser_version' ) ) include_once( ABSPATH. 'wp-admin/includes/dashboard.php' ); $response = wp_check_browser_version(); if ( 0 > version_compare( intval( $response['version'] ), 9 ) ) wp_enqueue_script('responsive', get_stylesheet_directory_uri(). '/js/responsive.js', array(), "1.0", false ); }

Links JSFiddle