Responsive Web Design (RWD)

Similar documents
Front-End UI: Bootstrap

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

COMP519 Web Programming Lecture 8: Cascading Style Sheets: Part 4 Handouts

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

HTML Organizing Page Content

Introduction to Computer Science Web Development

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

Zen Garden. CSS Zen Garden

Programming web design MICHAEL BERNSTEIN CS 247

International Conference KNOWLEDGE-BASED ORGANIZATION Vol. XXIII No RESPONSIVE WEB DESIGN TECHNIQUES. Luminita GIURGIU, Ilie GLIGOREA

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

HTML Organizing Page Content

CSC Website Design, Spring CSS Flexible Box

Chapter 7 BMIS335 Web Design & Development

How to deploy for multiple screens

Create First Web Page With Bootstrap

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Responsive Design. Responsive Design Approach. Technique for building webpages

TODAY S AGENDA. An introduction for Libraries UW-SLIS CES Webinar April 6, 2015 What is Responsive Web Design? Definition & History

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Introducing CSS Flexbox Layout

In this tutorial, we are going to learn how to use the various features available in Flexbox.

Styles, Style Sheets, the Box Model and Liquid Layout

Responsive Web Design. From: Ethan Marcotte - Responsive Web Design 2011

Fixed-width. Liquid. Web Development 1 CS1115/CS5002. Types of layout. relative, fixed), CSS Flexbox layout or CSS Grid Layout

BA. (Hons) Graphics Design

CSS: Layout, Floats, and More

EXPLORE MODERN RESPONSIVE WEB DESIGN TECHNIQUES

Responsive Design. Responsive design is it important? But typical is not enough. Some typical screen sizes

Client-Side Web Technologies. CSS Part II

Using CSS for page layout

Lecture 13. Page Layout. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Advanced Dreamweaver CS6

CSC309 Programming on the Web week 3: css, rwd

AGENDA. :: Add Meta Tag for Viewport (inside of head element): :: Add Script that renders HTML5 elements for older versions of Internet Explorer

CS193X: Web Programming Fundamentals

IMY 110 Theme 11 HTML Frames

Block & Inline Elements

What is the Box Model?

CHRIS SAUVE 2

IDM 221. Web Design I. IDM 221: Web Authoring I 1

Web Design, 5 th Edition

Building Web Applications

Micronet International College

CSS Selectors. element selectors. .class selectors. #id selectors

CIT BY: HEIDI SPACKMAN

Graduating to Grid. An Event Apart Orlando

Dreamweaver CS3 Concepts and Techniques

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Web Site Design and Development Lecture 13

WCMS Responsive Design Template Upgrade Training

Responsive Design for Web Applications R.I.T. S. Ludi/R. Kuehl p. 1 R I T. Software Engineering

Web Programming BootStrap Unit Exercises

Notes - CSS - Flexbox

Mateen Eslamy 10/31/13

Web Site Design and Development Lecture 9. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Cascading Style Sheets for layout II CS7026

BOOTSTRAP GRID SYSTEM

Page Layout Using Tables

ICT IGCSE Practical Revision Presentation Web Authoring

Reference Services Division Presents. Microsoft Word 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES. INSTALLING FONTS :: Download, Install, & Embed Your Fonts. LECTURE :: Responsive Web Design [RWD]

Designing for the Mobile Web

WEB DESIGNER CAREER BLUEPRINT

Word Tutorial 3. Creating a Multiple- Page Report COMPREHENSIVE

Website Development with HTML5, CSS and Bootstrap

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Adobe Dreamweaver CS6 Digital Classroom

Designing for diverse devices. Dr. Andres Baravalle

AGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css

Building Page Layouts

Class 9 / Instructor: Ira Epstein

FEWD START SCREENCAST!!!!

2017 Progress. All Rights Reserved. The Anatomy Of Responsive ASP.NET Apps WHITEPAPER

CE419 Web Programming. Session 3: HTML (contd.), CSS

subject to an additional IP rights grant found at polymer.github.io/patents.txt -->

Learning Adobe DreamWeaver CC. Module 1 Contents. Chapter 1: Introduction to DreamWeaver CC

IMY 110 Theme 7 HTML Tables

Web Site Design Small Screen Design Responsive Design R.I.T. S. Ludi/R. Kuehl p. 1 R I T. Software Engineering

New frontier of responsive & device-friendly web sites

Deccansoft Software Services

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

STUDENT NAME ECDL: EXCEL MR BENNELL. This is an example of how to use this checklist / evidence document

YouTube Break.

FRONT END DEVELOPER CAREER BLUEPRINT

Quick Reference Card Business Objects Toolbar Design Mode

CSS.

ENGINEERING DATA HUB VISUAL DESIGN SPECIFICATIONS VERSION 3. Created: 2/10/2017

ADOBE 9A Adobe Dreamweaver CS4 ACE.

CSS Futures. Web Development

When you complete this chapter, you will be able to:

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

How to lay out a web page with CSS

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Transcription:

Responsive Web Design (RWD) Responsive Web Design: design Web pages, so that it is easy to see on a wide range of of devices phone, tablet, desktop,... Fixed vs Fluid layout Fixed: elements have fixed width. Resizing the window does not change the appearance of the page Fluid: elements uses percentage of page width. Elements dynamically resize to fit window width General rules Do NOT force users to scroll horizontally (Why?) Do NOT use fixed-width elements (Why?) Use CSS media queries to apply different styling depending on the screen size Viewport <meta name="viewport"content="width=device-width, initial-scale=1"> viewport: user s visible area of a web page width: viewport width initial-scale: initial zoom level Always add a viewport meta tag Otherwise, default viewport width (~ 980px) is used, which can make text too small Junghoo "John" Cho (cho@cs.ucla.edu) 1

Without Viewport With Viewport Media queries Media query allows applying different css rules depending on device property Example @media screen and ( max - width : 800 px ) { / CSS rules / Apply the CSS rules only if the page is displayed on screen and viewport width is 800px or less Breakpoint: the viewport-width boundary for applying different rules. 800px in this example Possible conditions in media queries Media types screen, print, speech, and all (default) Media features orientation, min-width, max-width, min-height, max-height, resolution,... Boolean operators Junghoo "John" Cho (cho@cs.ucla.edu) 2

,=OR, and=and, not=not Precedence: not > and >, Q: When does the following rule apply? @media screen, ( orientation : portrait ) { /... / CSS Flexbox Flexible box New addition to CSS to help create flexible layout of elements A flex container (display: flex;) includes many flex items. Figure 1: CSS flexbox Flex items are arranged horizontally (flex-direction: row;) or vertically (flex-direction: column;) Flex items are dynamically resized as the container size changes grow/shrink factors can be specified (flex-growth, flex-shrink, and flex -basis). Example: http://oak.cs.ucla.edu/classes/cs144/examples/css-flexbox.html <! DOCTYPE html > < html > < head > < title > CSS flexbox </ title > < style > # container { Junghoo "John" Cho (cho@cs.ucla.edu) 3

display : flex ; flex - direction : row ; nav { flex : 1 2 100 px ; / flex - growth flex - shrink flex - basis / # main { flex : 2 1 200 px ; aside { flex : 1 2 100 px ; { text - align : center ; border : 1 px solid black ; </ style > </ head > < body > < header > Header </ header > < div id = " container " > < nav > Navigation </ nav > < div id = " main " > Main Text < aside > Aside </ aside > < footer > Footer </ footer > </ body > </ html > Dynamic image size <img src="a.png"style="max-width: 100%;"> max-width: 100%; ensures that image width is not larger than 100% of its parent element Grid system Popular CSS frameworks partition a page into multiple columns or grids e.g., Bootstrap uses 12-column grid system grid system makes it easy to design and adjust page layout Each HTML element (typically div) occupies a certain number of columns Bootstrap example: Junghoo "John" Cho (cho@cs.ucla.edu) 4

< div class = " container " > < div class = " row " > < div class = " col -4 " > First column < div class = " col -8 " > Second column First and second columns occupy 33%, and 66% of content width, respectively Column arrangement can be adjusted depending on the screen size Bootstrap < div class = " container " > < div class = " row " > < div class = " col -6 col - md -4 " > First column < div class = " col -6 col - md -8 " > Second column md stands for medium (~ desktop). xs: x-small (phone), sm: small (tablet), lg: large (large desktop) By default, first and second columns occupy 50% each For desktop (and up), first and second columns occupies 33% and 66%, respectively References More detailed explanation on flexbox: https://css-tricks.com/snippets/css/aguide-to-flexbox/ Bootstrap: https://getbootstrap.com/ Junghoo "John" Cho (cho@cs.ucla.edu) 5