Media Queries Jeffery Davis CIT media is used to define different style rules for different media types and devices. Media queries.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Advertisements

CSS Menus and Rollovers. Agenda foil Separating style from content 3 pages in one file Rollovers in CSS Horizontal drop-downs Vertical drop-downs.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Chapter 3 Tables and Page Layout
4.01 Cascading Style Sheets
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
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
‘Mobile first’ Alexander Roberts ISS Web Team Manager Swansea University.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
Lesson 15: Mobile Design and Layout Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
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.
DEVELOPING FOR MOBILE Jackie Calapristi. AGENDA  Why you should go mobile  Mobile Design Options  Responsive Design  Tips & Tools to Help You Build.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Using Styles and Style Sheets for Design
Chen Raz Requirements: 1. HTML5/CSS3 (I remind you that we have an agreement that you don't charge me extra for this) 2. Do not use the html element 3.
COMP 135 Web Site Design Intermediate Week 8. Responsive Web Design Responsive Design Adaptive Design.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: – The head content – The body Creating Head Content and Setting Page.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
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.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Responsive vs. Adaptive Web Design A responsive web design will "fluidly change and respond to fit any screen or device size" An adaptive design will "change.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
EXTERNAL STYLESHEETS AND MORE HTML STYLING HTML and CSS part 2.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
Web Development & Design Foundations with HTML5
Implementing Responsive Design UNIT I.
>> Navigation and Layouts in CSS
Implementing Responsive Design
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
A better approach to mobile
Chapter 2 Developing a Web Page.
Responsive Web Pages.
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Concepts for fluid layout
Styling For Print From Screen to Paper
Introduction to CSS Media Query - Lesson 11
Web Development & Design Foundations with HTML5
Intro to CSS CS 1150 Fall 2016.
CS 0134 (term 2181) Jarrett Billingsley
RESPONSIVE WEB DESIGN.
Responsive Design in WordPress
Responsive Design.
Intro to CSS CS 1150 Spring 2017.
Styles and the Box Model
Session VI Chapter 8 - How to Use Responsive Web Design (RWD)
What are Cascading Stylesheets (CSS)?
Chapter 8 - How to Use Responsive Web Design (RWD)
Responsive Web Design (RWD)
Training & Development
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Web Development & Design Foundations with HTML5
Concepts for fluid layout
One Set of Styles Connected to As Many Pages as You Want!!!
How to add a photo gallery in html/css
Christopher Harrison Jeremy Foster
Presentation transcript:

Media Queries Jeffery Davis CIT 230

@media media is used to define different style rules for different media types and devices. Media queries are used to check the capability and attributes of a device. Medias queries can check many things including: 1.Height and width of a browser 2.Height and width of a device 3.Check orientation of a device (landscape or portrait. 4.Resolution

How to use media queries HTML/CSS HTML Make separate CSS files for each media querie. Usually you do one for each size of device you would like the elements of the site to adjust to. In this I will just do one size for mobile devices. In my site Jefferytdavis.com I have section of my site where I show my portfolio. I have two rows of 4 boxes each. Each have a defined width of 25%. I want to make it so when someone is using their phone my website will change so each box is 100% width instead of 25%. First, Add this to your html file in between the head tags of your site. <link rel = “stylesheet” media= “screen and (min- width:600px)” href = “small.css”> CSS First thing you need to do is define minimum or maximum width. This will make sure that the css changes made will only happen when the screen is the size that is (min-width: 600px) {.box { width:100%; } Every time that the screen changes to have a min-width of 600px the porfolio pictures with take up 100% of the screen.

Before and after add media queries BeforeAfter

Drastic Examples of Media Queries DesktopMobile Portrait I built this site for someone wanting a way for people to fill out divorce documents all online. The media queries in this site adjust a lot of different things. To mention a few it changes the menu to the 3 bars you can click which makes it very user friendly. It also removes the description in the slider to make it more readable.

Conclusion Media queries are essential in making a website 100% responsive. Responsive means that a site adjusts to make it more user friendly no matter what device they may be using. With the web becoming more and mobile first media queries are extremely important to successfully creating a successful modern day website.