Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN 6710 - Section A – TR 9:30-10:45 CRN 10570 – Section B – TR 5:30-6:45.

Slides:



Advertisements
Similar presentations
Coding a Responsive HTML
Advertisements

Slice and Dice: From PSD Image to XHTML+CSS Svetlin Nakov Telerik Corporation
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Chapter 3 – Web Design Tables & Page Layout
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Excel Lesson 3 Organizing the Worksheet
Using Charts in a Presentation Lesson 6. Software Orientation Charts can help your audience understand relationships among numerical values. The figure.
Responsive Wed Design : An Emerging Technology Archana Jain.
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.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Lesson 15: Mobile Design and Layout Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
Layouts with CSS Web Design – Section 4-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Principles of Web Design 6 th Edition Chapter 7 – Page Layouts.
ITP 104.  While you can do things like this:  Better to use styles instead:
CSS Sprites. What are sprites? In the early days of video games, memory for graphics was very low. So to make things load quickly and make graphics look.
| imodules.com Making Your Site Mobile-Ready Presented by Chris Smith and Mark Werner.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
D2L Notes Be sure to submit your link in the dropbox provided on D2L You can just upload an empty text file if a file upload is required Do not use D2L.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Adding Content to the Agency Web Site - Part 2. Adding individual web pages for success stories Agency Web Site Adding Content 2, Slide 2Copyright © 2004,
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
CIS 205—Web Design & Development Dreamweaver Chapter 5 Using HTML Tables to Lay Out a Page.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
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.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
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.
GO MOBILE. GO RESPONSIVE. 185 mil mobile internet users in India
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Positioning Objects with CSS and Tables
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Nesting and Floating. Nesting and Floating Elements To make our page content appear the way we want, and to make the best use of screen space, we can.
Navigation grid – Wide desktop 1 Main navigation bar maximum width 890 px (= 4 content columns) 3 text columns, each 256 px wide 51 px margins in between.
Laying out Elements with CSS
CNIT131 Internet Basics & Beginning HTML
Implementing Responsive Design UNIT I.
Weebly Elements, Continued
>> Navigation and Layouts in CSS
Implementing Responsive Design
A better approach to mobile
CS 321: Human-Computer Interaction Design
User Interface Design and Usability Bootstrap
Creating a Baseline Grid
IS1500: Introduction to Web Development
CSS part 2 Outro.
Enhancing a Document Part 1
Making Your Site Mobile-Ready
Fixed Positioning.
Enhancing a Document Part 1
Responsive Framework.
Responsive Web Design (RWD)
Chapter 2 Bootstrap Grid System
WEB DESIGN FOR MULTIPLE SCREENS
Bootstrap 4 December 17, 2018.
PHP.
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45

Responsive Web Design Responsive Web Design (RWD) is the concept of building a site to render well on various platforms and screen sizes “Content is like water” RWD employs various HTML/CSS/JS to achieve the various content layouts on different sized screens Fluid Grid Flexible Images Media Queries Responsive JS

Fluid Grid Fluid Grid is the concept of laying out the page like a grid, and giving each element a certain number of cells in the grid When we discussed basic layout, using float, we set our menu to 20%, our sidebar to 20% and our main content to 60%, this is a fluid grid, where we broke that row into 1/5 sections, and gave the main content 3 of those sections 20% (1/5)60% (3/5)20% (1/5) MENUMAIN CONTENTSIDEBAR

Fluid Grid How we divide up the page is entirely up to us and our content The header area might be broken into 1/3 sections, with 1/3 for the logo, and 2/3 for the top menus Another key component to consider, is our total screen space 20% of a desktop screen is an easy to read size 20% of a tablet is probably ok 20% of a vertical phone is not really going to be usable

Fluid Grid So, often we determine grids for various screen sizes Desktop has 1-12 sections Tablet has 1-8 sections Phone has 1-5 sections (horizontal) Phone has 1-3 sections (vertical) Then, as we adjust from one screen size to another, we take into account how many sections the content needs to properly display

Fluid Grid We can also take a section, and break it up further Main content is 60% This could be made into three 20% sections, two 30% sections, etc Every option we decide to use on our desktop view has to be considered as we translate down into other screen sizes For example, the ung.edu allows the main content area to be broken into 4 columns if there is a menu and no sidebar, if there is no menu, the max is 5 columns

Flexible Images Now that our content is broken into containers that we can later adjust for different screen sizes, we need to consider images Images do not scale up in size very well in most browsers, the stretching often leaves them looking pixelated So, we need to start with an image that is the appropriate size for the largest we will want it to be, and then scale it down based on the container we put it in on the page

Flexible Images Depending on how an image is used, it may need to be larger on a phone or tablet than it would be on a desktop, so we need to take this into consideration when determining image size For example, if we have our image set to be 2/12 sections in our desktop view, but decide on phone view to make it the full width (3/3), then it would larger on the phone The key to flexible image sizing, is making sure the image respects the size of the container it is in as the maximum size

Flexible Images If the container is 200px wide or 50px wide, we expect the image to stay within the container, and not expand past the bounds Our tricks for doing this include: max-width: 100% height: auto This ensures the image fills the entire width, but automatically choses a height that maintains the aspect ratio of the image to prevent stretch/skew issues

Media Queries Finally we look at media queries, which is the final part of our HTML/CSS side of RWD Media Queries allow us to apply specific styles based on the browser window only screen and (max-width:900px){} This creates a place where we can apply CSS that will only take effect if the width of the screen is 900px or less We can then stack these queries to handle various sizes differently y.asp

RWD Like many tasks related to web development, there are several tools online to help get you started Fluid Grid HTML/CSS Builder: There are also several tools online for helping you get your media queries initially set up

Responsive JS As we have discussed before, we can use onresize() to determine when a window size changes and execute JS based on the change But, this is a problem many programmers have run into before, so with a little bit of searching, we can find some pre-built examples of how to do this One such example, is called jRespond Since this is on github, we will want to download our own copy and use that instead of a CDN

jRespond The basic concept behind jRespond is setting up begin/end points for various device types, then executing specific functions at the begin/end points For example, when you leave tablet view around 980px, you might execute one function that removes some tablet specific JS, but then execute a desktop function to initialize the desktop version of the JS

RWD JS To achieve the best final view for different devices, sometimes we need to move content from one container to another when shifting from one screen size to another Instead of just putting that content in multiple places before loading the page, we can let JS move the content for us based on the page size

Project 1 – Responsive Site Due: Oct 8 th Build a responsive site with 3+ pages on a separate sub- domain (ex: project1.yourdomain.com) Screen Sizes: Desktop – 1280 X 1024 Tablet – 1024 X 768 Phone – 320 X 480 Home Page Header/Footer Slideshow

Project 1 – Responsive Site Interior Page 1 Header/Footer Main Content + Sidebar Content Interior Page 2 Header/Footer Main Content (no sidebar) Table that fills content area on desktop view (use JS/CSS to adjust for smaller views) Extra Credit (2pts) Tabbed content in desktop view that switches to vertical expandable content in tablet/phone views

Next Time Begin PHP I am getting us a day ahead, as I am going to be out Sept 22 nd to present at a conference, which was supposed to be the first day of MySQL Sept 10 th – PHP Sept 15 th – PHP Sept 17 th – MySQL Sept 22 nd – No Class Sept 24 th - MySQL