Principles of Web Design 6 th Edition Chapter 7 – Page Layouts.

Slides:



Advertisements
Similar presentations
Week 10 Creating Positioned Layouts
Advertisements

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.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Tutorial 4: Creating page layout with css
CSCI N241: Fundamentals of Web Design Copyright ©2006  Department of Computer & Information Science Using CSS for Float Layouts.
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Tutorial 6 Creating Fixed-Width Layouts
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Week 7 Web Typography. 2 Understanding Type Design Principles.
CSS, cont. October 12, Unit 4. Creating a Sidebar We know how to create a sidebar –Use the float property div#sidebar{ float: left; } Item1 Item2 Item3.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
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.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
ITP 104.  While you can do things like this:  Better to use styles instead:
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
Web Development & Design Foundations with XHTML
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
Page Layout with CSS Learning Web Design: Chapter 16.
 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.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
 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.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
CONTROLLING Page layout
Page Layout CHAPTER 5 1 CHARLES WYKE-SMITH: STYLIN’ WITH CSS: A DESIGNER’S GUIDE (3 ND EDITION)
Positioning Objects with CSS and Tables
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Week 5.  Normal document flow  Affecting document flow with float and position properties using CSS  Using these properties to create layouts.
Ch 11 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Positioning, CSS Layout Ing. Jiří Štěpánek.  Positioning = defining elements placement, size and behavior within a page  Important for creating layout.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
HTML 5 AND CSS Dr Mohd Soperi Mohd Zahid Semester /16.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
CHAPTER 15 Floating and Positioning. FLOAT VS. POSITION  Floating an element moves it to the left or right, allowing the following text to wrap around.
Cascading Style Sheets for layout
Laying out Elements with CSS
Webpage layout using CSS
Concepts for fluid layout
Cascading Style Sheets for layout
CS3220 Web and Internet Programming Page Layout with CSS
CS3220 Web and Internet Programming Page Layout with CSS
>> CSS Layouts.
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Objectives Create a reset style sheet Explore page layout designs
Creating Layouts Using CSS
Fixed Positioning.
Responsive Framework.
Web Development & Design Foundations with H T M L 5
Floating and Positioning
CS3220 Web and Internet Programming Page Layout with CSS
Concepts for fluid layout
Presentation transcript:

Principles of Web Design 6 th Edition Chapter 7 – Page Layouts

Objectives Understand the normal flow of elements Use the division element to create content containers Create floating layouts Build a flexible page layout Build a fixed page layout 2

Understanding the Normal Flow of Elements 3

Understanding the Normal Flow The normal flow determines the sequence of element display Boxes are laid out vertically one after the other, beginning at the top of the containing box Each box horizontally fills the browser window 4

5

Understanding the Normal Flow In the normal flow for inline elements, boxes are laid out horizontally beginning at the top left of the containing block The inline boxes comprise the lines of text within, for example, a element 6

Floating an Element When you float an element, you take it out of the normal flow Check the results frequently as you are designing your layout using floats 7

8

Creating Content Containers 9

Use the sectioning elements and occasionally elements to create content sections 10

11

12

Choosing the Correct Content Element The element has no special meaning; use it only as a container style purposes, as in a page wrapper is a thematic section of a document with a heading is a reusable section of content Be consistent when using these elements 13

Creating Floating Layouts 14

Creating Floating Layouts The float property lets you build columnar layouts You can align content elements to either the right or left side of the browser window A typical Web page design can contain both floating and non-floating elements Remember to always use a width property for floating elements 15

16

Creating Floating Layouts Building floating layouts requires that you choose a method for containing the floating elements You will often see that the floating elements extend beyond their containing elements, which will result in a “broken” layout 17

18

Solution 1: Using a Normal Flow Element If you have multiple columns, at least one needs to be non-floating (in the normal flow) The non-floating element must be positioned with the margin properties 19

20

Solution 2: Using the Clear Property Use a non-floating footer element (in the normal flow), with the clear property set to both 21

22

Floating Elements within Floats Floating elements give you a wide variety of options for building interesting page layouts If you are floating an element within another element, the order of the elements is important 23

24

25

26

Fixing Column Drops Column drops occur when the total width of the columnar elements in a page layout exceeds the width of their containing element 27

28

Clearing Problem Floats Floats occasionally do not appear exactly where you want them to appear The clear property can solve this problem 29

30

Building a Flexible Page Layout 31

Building a Flexible Page Layout Flexible layouts adapt to the size of the browser window With a flexible layout, your content has to adapt and look good at a wide range of layout sizes Flexible layouts are the basis for responsive layouts used for mobile devices 32

33

34

Controlling Flexible Layout Width You can control the compression and expansion of your content in a flexible layout by setting minimum and maximum widths div.wrapper { width: 100%; min-width: 750px; max-width: 1220px; } 35

Building a Fixed Page Layout 36

Building a Fixed Page Layout Fixed layouts remain constant despite the resizing of the browser in different screen resolutions and monitor sizes Many designers prefer fixed layouts because they have more control over the finished design Fixed layouts are normally contained by a wrapper element that controls the page width and centers the page in the browser window 37

38

Controlling Fixed Layout Centering A wrapper division lets you automatically center the layout in the browser This is a great solution for wide-screen monitors Automatic centering is a simple use of the margin property #wrapper { width: 960px; margin-left: auto; margin-right: auto; border: thin solid black; background-color: #ffc; } 39

40

Summary The normal flow dictates the way in which elements normally are displayed in the browser window When you remove an element from the normal flow, you may see unexpected behavior from other elements Remember to always use a width property for floating elements Remember to avoid using the height property For fixed layouts, content elements are usually contained with a wrapper element that sets the width for the page layout 41