Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Similar documents
CSS for Page Layout. Key Concepts

CST 150 Web Design I CSS Review - In-Class Lab

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Web Design with CSS and CSS3. Dr. Jan Stelovsky

{color:blue; font-size: 12px;}

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Web layout guidelines for daughter sites of Scotland s Environment

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Style & Layout in the web: CSS and Bootstrap

Coding Standards for Web Development

Building a Horizontal Menu in Dreamweaver CS3 Using Spry R. Berdan

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

Web Authoring CSS. Module Descriptor

Using Style Sheets for Consistency

Contents. Downloading the Data Files Centering Page Elements... 6

JJY s Joomla 1.5 Template Design Tutorial:

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Web Design for Print Designers WEB DESIGN FOR PRINT DESIGNERS: WEEK 6

Chapter 8 More on Links, Layout, and Mobile Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Outline of CSS: Cascading Style Sheets

Further web design: Cascading Style Sheets Practical workbook

Base template development guide

CSS - Cascading Style Sheets

Basic tutorial for Dreamweaver CS5

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Foundations. Web Development and Design. with HTML5. [Terry Ann Felke-Morris, Ed.D.J. 6th Edition. Harper College. Piyali Sengupta.

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Contents. Introduction Downloading the Data Files... 2

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Responsive Web Design Creative License

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Creating Web Pages with Microsoft FrontPage

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Web Developer Jr - Newbie Course

Introduction to web development and JavaScript

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Designing HTML ers

Positioning Container Elements

How to Properly Compose HTML Code : 1

HTML5 and CSS3 Design with CSS Page 1

Joomla! template JSN Mico Customization Manual

MCH Strategic Data Best Practices Review

Web publishing: An introduction to CSS

Using Adobe Dreamweaver CS4 (10.0)

IAS Web Development using Dreamweaver CS4

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

WP Popup Magic User Guide

Microsoft Expression Web Quickstart Guide

Designing HTML s for Use in the Advanced Editor

Mobile Web Site Style Guide

Web Design I. Spring 2009 Kevin Cole Gallaudet University

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

RESPONSIVE DESIGN BY COMMUNIGATOR

IE Class Web Design Curriculum

CHAPTER 10. When you complete this chapter, you will be able to:

The Essential Guide to HTML Design

Citrix StoreFront. Customizing the Receiver for Web User Interface Citrix. All rights reserved.

ITNP43: HTML Lecture 4

Chapter 1 Introduction to web development and PHP

Campaign Guidelines and Best Practices

JTouch Mobile Extension for Joomla! User Guide

for Modern Web Design Andy Blanchard / Chris Keller

Chapter 1. Introduction to web development

Skills for Employment Investment Project (SEIP)

Simply download Beepip from and run the file when it arrives at your computer.

Introduction to Web Design Curriculum Sample

LaGuardia Community College Thomson Ave, Long Island City, New York Created by ISMD s Dept. Training Team. Overview

Coding HTML Tips, Tricks and Best Practices

GUIDE TO CODE KILLER RESPONSIVE S

Selectors in Action LESSON 3

Web Design and Development Program (WDD)

Joomla! template JSN Boot Customization Manual

WP Popup Magic User Guide

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Web Design and Development ACS Chapter 9. Page Structure

Textbook s Website for Online Review of Each Chapter

Magento Responsive Theme Design

RESPONSIVE DESIGN FOR MOBILE RENDERING

Responsive Web Design (RWD) Best Practices Guide Version:

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Microsoft Word Revising Word Documents Using Markup Tools

Creating a Web Site with Publisher 2010

Transcription:

Chapter 7 Page Layout Basics Key Concepts Copyright 2013 Terry Ann Morris, Ed.D 1

Learning Outcomes float fixed positioning relative positioning absolute positioning two-column page layouts vertical navigation in an unordered list horizontal navigation in an unordered list. CSS pseudo-classes for hyperlinks CSS sprites 2

Normal Flow Browser display of elements in the order they are coded in the Web page document (see box1.html & try nesting) Figure 7.1 Figure 7.2

float Property h1 { background-color: #A8C682; padding: 5px; color: #000000; } p { font-family: Arial, sans-serif; } #yls { float: right; margin: 0 0 5px 5px; border: solid; } Elements that seem to float" on the right or left side of either the browser window or another element are often configured using the CSS float property. (try practice 7.2) 4

The h2 text is displayed in normal flow. clear Property Useful to clear or terminate a float Values are left, right, and both clear: left; was applied to the h2. Now the h2 text displays AFTER the floated image.

The background does not extend as far as you d expect. overflow Property Configures the display of elements on a web page. Useful to clear or terminate a float before the end of a container element Values are auto, hidden, and scroll overflow: auto; was applied to the container div. Now the background extends and the h2 text displays AFTER the floated image.

CSS Page Layout Two Columns (left nav) See twocolumn1.html & twocolumn2.html

CSS Page Layout Two Columns (top logo, left nav)

<nav <ul> Vertical Navigation with an Unordered List <li><a href="index.html">home</a></li> <li><a href="menu.html">menu</a></li> <li><a href="directions.html">directions</a></li> <li><a href="contact.html">contact</a></li> </ul> </nav> CSS removes the list marker and underline: nav ul { list-style-type: none; } nav a { text-decoration: none; } 9

display Property Configures how and if an element is displayed display: none; The element will not be displayed. display: block; The element is rendered as a block element even if it is actually an inline element, such as a hyperlink. display: inline; The element will be rendered as an inline element even if it is actually a block element such as a <li>. 10

<nav <ul> </ul> </nav> HTML: Horizontal Navigation with an <li><a href="index.html">home</a></li> <li><a href="menu.html">menu</a></li> <li><a href="directions.html">directions</a></li> <li><a href="contact.html">contact</a></li> Unordered List CSS removes the list marker, removes the underline, adds padding, and configures the list items for inline display. nav ul { list-style-type: none;} nav a { text-decoration: none; padding-right: 10px; } nav li { display: inline; } 11

CSS Pseudo-classes Pseudo-classes and the anchor element :link default state for a hyperlink :visited a hyperlink that has been visited :focus triggered when the hyperlink has focus a:link {color:#000066;} a:visited {color:#003366;} a:focus {color:#ff0000;} a:hover {color:#0099cc;} a:active {color:#ff0000;} :hover triggered when the mouse moves over the hyperlink :active triggered when the hyperlink is being clicked

CSS Pseudo-classes a:link { color: #ff0000; } a:hover { text-decoration: none; color: #000066; } 13

Position Property 14

Fixed Positioning nav { position: fixed; } 15

Relative Positioning p { position: relative; left: 30px; font-family: Arial, sans-serif; } Changes the location of an element in relation to where it would otherwise appear in normal flow 16

Absolute Positioning p { position: absolute; left: 200px; top: 100px; font-family: Arial, sans-serif; width: 300px; } Precisely specifies the location of an element outside of normal flow in in relation to its first parent non-static element 17

Sprite CSS Sprites an image file that contains multiple small graphics advantage: saves download time 18

CSS Debugging Tips Manually check syntax errors Use W3C CSS Validator to check syntax errors http://jigsaw.w3.org/css-validator/ Configure temporary background colors Configure temporary borders Use CSS comments to find the unexpected /* the browser ignores this code */ Don t expect your pages to look exactly the same in all browsers! Be patient! Use Firebug or Web Developer Plugins 19

Summary This chapter expanded your CSS skillset. You configured web pages with floating elements with CSS. You were introduced to fixed, relative, and absolute positioning. You configured web pages with two-column page layouts You used unordered lists to provide structure for navigation hyperlinks. You added interactivity to hyperlinks with CSS pseudo-classes. You configured a CSS sprite image. 20