Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties-- List properties –Table properties-- Classification properties.
Advertisements

LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
Tutorial 4: Creating page layout with css
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
Tutorial 4 Creating Special Effects with CSS
WDV 101 Intro to Website Development
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Doman’s Sections Information in this presentation includes text and images from
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
CSS Class 2 -Add margins to elements on a page. -Set width and height of elements. - CSS shorthand properties for box model. -Style links. -Style tables.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with HTML5 7th Edition
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
CONTROLLING Page layout
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
Web Development & Design Foundations with HTML5
Cascading Style Sheets Layout
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CSS Layouts: Positioning and Navbars
Creating Page Layouts with CSS
Web Development & Design Foundations with HTML5
Cascading Style Sheets (Layout)
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
The Internet 10/25/11 XHTML Tables
Cascading Style Sheets
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Objectives Create a reset style sheet Explore page layout designs
6 Layout.
Fixed Positioning.
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
List Properties Box Properties Pseudoclass
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
CSc 337 Lecture 5: Grid layout.
Presentation transcript:

Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile

The Box Model

Margin Property margin: (top, right, bottom, left) margin: 10px 30px 20px 5px; margin-topmargin-rightmargin-bottommargin-left

Normal Flow Two div elements vs. Nested div elements When coded separately ( … ), the two will flow from top to bottom unstacked When coded nested ( … … … ), the two will be stacked where div2 uses margins from inside div1

CSS Positioning Relative vs. Absolute position Relative inside of the normal flow Absolute specific outside the normal flow position (static, relative, absolute, fixed) left, right, top, bottom = the position of the element offset from the container element

CSS Float (no ice cream jokes) Elements that seem to float on the right or left side of either the browser window or another element are often configured using the float property float (right, left) Should be configured using margins with(out) borders #test{float: right; margin: 0 0 5px 5px; border: 1px solid #000000;} Use the ‘clear’ property to clear a float (clear:left; or clear:right;)

The overflow Property overflow (visible, hidden, auto, scroll) Visible = the content will display and overflow to the outside of the area allocated Hidden = the content is clipped to fit the area Auto = the content fills the areas and, if needed, scroll bars are added automatically Scroll = the content is fit into the area and scroll bars are present

CSS Two-Column Page Layout Two Columns with Left Navigation

CSS Two-Column Page Layout Two Columns with Top Header and Left Navigation

Hyperlinks in Unordered Lists List Markers for Ordered and Unordered Lists list-style-type (none, disc, circle, square, decimal, upper-alpha, lower-alpha, lower-roman) list-style-image (url with () surrounding URL of image) list-style-position (inside (markers are indented; text wraps under markers), outside (default) ul {list-style-type: square;}ol {list-style-type: upper-alpha;} ul {list-style-image: url(pic.jpg)}

Vertical Navigation … … … … #leftcolumn ul {list-style-type: none;} #leftcolumn a {text-decoration: none;}

Horizontal Navigation display: none, inline, block; Shown: #nav ul {list-style-type: none;} li {display: inline;} a {text-decoration: none; padding-right: 10px;}

CSS Pseudo-Classes :link, :visited, :focus, :hover, :active a:link {color: #ff0000;} a:hover {text-decoration: none; color: #000066;}

HTML5 Structural Elements Can be used in place of CSS div elements header element header element hgroup element = often used for taglines nav element nav element footer element footer element section element section element article element article element aside element aside element time element time element

Phone Links and Mobile Call Call Txt Txt Not supported by most browsers, mainly used for mobile pages

Three Column CSS Layout div’s needed for each section Code the HTML5 (index.html) index.html Code the CSS (style.css) style.css Enclose the images (plsthumb.jpg, trillium.jpg, showybg.jpg) plsthumb.jpg trillium.jpgshowybg.jpgplsthumb.jpg trillium.jpgshowybg.jpg

CSS Styling for Mobile Web You can have two domains (abc.com, abc.mobi), a subdomain (abc.com, m.abc.com), or a separate folder (abc.com, abc.com/mobile/) CSS should “restructure” the site for mobile viewers The web server should detect whether the visitor is on a PC or a mobile device and redirect them accordingly

Mobile Web Design Best Practices: Small screen size Low bandwidth Font, color, media issues Awkward controls, limited power Functionality

Typical Mobile Website Screen size min: 320 x 480 Target size min: 44 x 44 (Apple), 34 x 26 (MS), 28 x 28 (Nokia) MIT Study – average index finger width: 45-57px Average thumb width: 72px

Other Considerations Viewport Meta Tag Viewport Meta Tag Viewport Meta Tag Directives (width, height, initial- scale, minimum-scale, maximum-scale, user- scalable)

Testing Mobile Display Opera Mobile Emulator Mobilizer iPhone Emulator iPhoneyiBBDemo2.air

Mobile Madness… Mobile Site Development Assistants… jQuery Mobile with Codiqa jQTouch Turn a mobile site into a native app… Apache Cordova (formerly PhoneGap) Download mobile template and retrofit your site