HTML Organizing Page Content

Similar documents
HTML Organizing Page Content

FLOATING AND POSITIONING

Using CSS for page layout

Responsive Web Design (RWD)

Styles, Style Sheets, the Box Model and Liquid Layout

Chapter 16: PAGE LAYOUT WITH CSS

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

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

How to deploy for multiple screens

CSCU9B2: Web Tech Lecture 3

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

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

Table Basics. The structure of an table

Cascading Style Sheets for layout II CS7026

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

Chapter 7 BMIS335 Web Design & Development

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

Web Site Design and Development Lecture 13

COMS 359: Interactive Media

CSS.

COMSC-031 Web Site Development- Part 2

Positioning in CSS: There are 5 different ways we can set our position:

CSS Layout Part I. Web Development

CSS for Page Layout Robert K. Moniot 1

Block & Inline Elements

ITNP43: HTML Lecture 5

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

Web Design and Implementation

What if we want the child elements to calculate the offset from the boundaries of the document? CSS LAYOUT. The position Property.

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

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Chapter 3 Style Sheets: CSS

Client-Side Web Technologies. CSS Part II

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

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

Zen Garden. CSS Zen Garden

Assignments (4) Assessment as per Schedule (2)

Parashar Technologies HTML Lecture Notes-4

HTML and CSS a further introduction

CSS. Shan-Hung Wu CS, NTHU

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

The Importance of the CSS Box Model

Wolf. Responsive Website Designer. Mac Edition User Guide

IMY 110 Theme 11 HTML Frames

YouTube Break.

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

Class 3 Page 1. Using DW tools to learn CSS. Intro to Web Design using Dreamweaver (VBUS 010) Instructor: Robert Lee

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

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

HIERARCHICAL ORGANIZATION

Tips and Techniques for Designing the Perfect Layout with SAS Visual Analytics

FEWD START SCREENCAST!!!!

Header. Article. Footer

12/9/2012. CSS Layout

CS7026 Media Queries II. Different Screen Size Different Design

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Adding CSS to your HTML

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

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

CSS: formatting webpages

Lab Chapter 5: Applying The Box Model Habitat for Humanity

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations

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

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

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

CSS: Layout, Floats, and More

CSC Web Programming. Introduction to HTML

CSC309 Programming on the Web week 3: css, rwd

How to lay out a web page with CSS

Introducing CSS Flexbox Layout

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

CSS3, Media Queries, & Responsive Design. May 23, 2012 STC Summit Zoe Mickley

Getting Started with Eric Meyer's CSS Sculptor 1.0

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

The Benefits of CSS. Less work: Change look of the whole site with one edit

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

door to my garden Simple CSS resulting in impressive, sophisticated visual effects

CMPT 165: More CSS Basics

To link to an external stylesheet, the link element is placed within the head of the html page:

COMM 2555: Interactive Digital Communication / Spring 2018 Lab 9: Basic layout techniques with CSS

Building Responsive Layouts

Create a three column layout using CSS, divs and floating

CSS3: Using media queries to improve the web site experience. November 19, 2011 indieconf Zoe Mickley

By Ryan Stevenson. Guidebook #2 HTML

There are 3 places you can write CSS.

Dreamweaver Basics Workshop

COMS 359: Interactive Media

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Web Publishing Intermediate 2

CSS THE M\SS1NG MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLr Beijing Cambridge Farnham Köln Paris Sebastopol Taipei Tokyo

Programmazione Web a.a. 2017/2018 HTML5

CS193X: Web Programming Fundamentals

CSS. Selectors & Measurments. Copyright DevelopIntelligence LLC

Display, Overflow, White Space, and Cursor Karl Kasischke WCC INP 150 Winter

Module 2 (VII): CSS [Part 4]

Transcription:

HTML Organizing Page Content HTML 5 Elements Well supported by current desktop and mobile browsers (known issues with IE 8 and earlier) <section> </section> May be used to divide pages into major sections major thematic sections <section> <h2>typography Books</h2> <ul> <li> </li> </ul> </section> <article> </article> May be used for self-contained works that could stand alone or be reused in a different context <article> <h1>get To Know Helvetica</h1> <section> <h2>history of Helvetica</h2> <p> </p> </section> </article> HTML 5 Elements Well supported by current desktop and mobile browsers (known issues with IE 8 and earlier) <aside> </aside> Related to the surrounding content <nav> </nav> Primary navigation links <header> </header> Introductory material for page, section, or article <footer> </footer> Footer for page, section, or article <address> </address> Contact information 1

CSS Positioning & Layout CSS Normal Flow Normal Flow Top > bottom left > right Arranged in the order they appear in the code make room for one another (objects affect the layout of the objects around them) Float Floating allows us to alter the normal position of an element by moving it to the leftmost or rightmost edge of its parent element Values: left right none Ex: img {float: right;} Positions an element to the left or right allowing surrounding content to wrap around Floating inline Elements Must provide width & height values Floating Block Elements Must provide width & height values Elements do not float higher than their reference in the source code 2

Float Removes object from normal document flow 3

Clear The clear property allows us to turn floats off and return to normal document flow. Values: left right both inherit none Ex:.element 1 {clear: right;} breaks down to the next line and returns to normal document flow. Prevents elements from appearing next to a floated element clear: left nothing allowed to float to the left clear: right nothing allowed to float to the right clear: both nothing allowed to float to right or left 4

Position Values: static relative absolute fixed Static: elements positioned as in normal flow Relative: moves an element relative to its original position - space it would have occupied is preserved (empty space left behind) - overlap happens offset Values: top right bottom left Defines the distance the element should be moved Ex: em { position: relative: top: 30px: left: 60px: } Position Values: static relative absolute fixed Absolute: removes elements from normal document flow - Absolute position elements have NO influence on layout of surrounding elements - Positioned relative to its containing element - Space it would have occupied is closed - Overlap happens 5

Containing Blocks If the positioned element is not contained within another positioned element it is placed relative to the html element (initial containing block) Containing Blocks If the positioned element is not contained within another positioned element it is placed relative to the html element (initial containing block) If element has an ancestor that has positioning set (relative, absolute, fixed) it is placed relative to its containing block Relative positioning commonly used to a create positioning context for absolutely positioned elements Pixel measurements Percentage values 6

Position Values: static relative absolute fixed Fixed: element fixed in one position (does not scroll) - Similar to absolute positioning - Offset values are always relative to the browser window (viewport) Stacking Order Absolutely positioned elements overlap Elements stack in the order they appear in the source doc Z-index (change the stacking order) Higher the z-index the higher the element will appear in the stack CSS Page Layout Liquid (fluid): Page reflow in browser window Advantage: Design for any monitor resolution Disadvantage: may end up with long lines of text (uncomfortable to read) www.w3.org Fixed: Page stays a specific pixel width Advantage: predictable layout, more control Disadvantage: right edge may not be seen on smaller browsers awkward leftover spacing on large screens www.oreilly.com Elastic: layout expands and contracts with size of text (em based) Advantage: provides consistent layout while allowing flexibility in text size Disadvantage: images can t be dynamically resized www.csszengarden.com/?cssfile=/063/063.css Responsive http://www.burton.com/on/demandware.store/sites-burton_us-site/default 7

CSS Layout Fixed (pixel based) Layouts CSS Layout Fluid (percentage based) Layout CSS Layout Hybrid 8

Let s see how this works 9