Web Design I. Spring 2009 Kevin Cole Gallaudet University 2009.03.05



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

Outline of CSS: Cascading Style Sheets

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

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Selectors in Action LESSON 3

Using Style Sheets for Consistency

How to Create a Mobile Responsive Template in ExactTarget

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

CSS for Page Layout. Key Concepts

Joomla Article Advanced Topics: Table Layouts

ICE: HTML, CSS, and Validation

Introduction to Adobe Dreamweaver CC

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

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

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

Building Your First Drupal 8 Company Site

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

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

Dreamweaver CS5. Module 1: Website Development

Creating A Webpage Using HTML & CSS

Magento Responsive Theme Design

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

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

Style & Layout in the web: CSS and Bootstrap

JJY s Joomla 1.5 Template Design Tutorial:

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

Create Your own Company s Design Theme

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

Using an external style sheet with Dreamweaver (CS6)

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

SkaDate 9 Custom Template Creation Manual

Web Development 1 A4 Project Description Web Architecture

HTML Tables. IT 3203 Introduction to Web Development

Positioning Container Elements

Web Design with CSS and CSS3. Dr. Jan Stelovsky

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

Google Sites: Creating, editing, and sharing a site

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

Designing HTML s for Use in the Advanced Editor

Campaign Guidelines and Best Practices

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

Coding HTML Tips, Tricks and Best Practices

Base template development guide

Advanced Drupal Features and Techniques

Embedding a Data View dynamic report into an existing web-page

Web Design and Development ACS Chapter 9. Page Structure

Web layout guidelines for daughter sites of Scotland s Environment

In this chapter, you will learn how to...

ORACLE WEB CONTENT MANAGEMENT SYSTEM 2010

Website Planning Checklist

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

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

Creating a Newsletter with Microsoft Word

Tagging an Existing PDF in Adobe Acrobat 8

ireview Template Manual

Fortis Theme. User Guide. v Magento theme by Infortis. Copyright 2012 Infortis

SAHARA DIGITAL8 RESPONSIVE MAGENTO THEME

How to Properly Compose HTML Code : 1

RADFORD UNIVERSITY. Radford.edu. Content Administrator s Guide

State of Nevada. Ektron Content Management System (CMS) Basic Training Guide

USER S MANUAL JOOMLA! GOVERNMENT WEB TEMPLATE

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

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

Joostrap RWD Bootstrap Template

Using Adobe Dreamweaver CS4 (10.0)

Tutorial 5. Working with Web Tables

Introduction to Web Design Curriculum Sample

Creating Web Pages with Dreamweaver CS 6 and CSS

CSS - Cascading Style Sheets

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

ITNP43: HTML Lecture 4

Joomla! template Blendvision v 1.0 Customization Manual

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

BlueHornet Whitepaper

Creating a Restaurant Website

Themes and Templates Manual FOR ADVANCED USERS

<Insert Picture Here>

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

Caldes CM12: Content Management Software Introduction v1.9

Web Developer Jr - Newbie Course

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

Mobile Web Site Style Guide

Create a Web Page with Dreamweaver

RESPONSIVE DESIGN BY COMMUNIGATOR

How to craft a modern, mobile-optimized HTML template. Jason Samuels, NCFR IT Manager DrupalCamp Twin Cities May 2012

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

MCH Strategic Data Best Practices Review

The Essential Guide to HTML Design

Building A Very Simple Web Site

Basic tutorial for Dreamweaver CS5

Microsoft Expression Web Quickstart Guide

Interspire Website Publisher Developer Documentation. Template Customization Guide

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

Transcription:

Web Design I Spring 2009 Kevin Cole Gallaudet University 2009.03.05

Layout Page banner, sidebar, main content, footer Old method: Use <table>, <tr>, <td> New method: <div> and "float" CSS property Think of your web pages like water. With "float" your <div>'s will automatically move around to allow other <div>'s to fit.

Common layout Banner (Header) Navigation (Menu) Sidebar (News, etc) Main page content Footer (Copyright, Contact information)

The infamous "box model" Margin Border Padding Content

Common layout Banner (Header) Navigation (Menu) Sidebar (News, etc) Main page content Footer (Copyright, Contact information) Container (wrapper)

Layout template <div id="wrapper"> <div id="header"></div> <div id="menus"></div> <div id="sidebar"></div> <div id="main"></div> <div id="footer"></div> </div>

Layout with content, no style <div id="wrapper"> <div id="header">my portfolio</div> <div id="menus">home Contact About</div> <div id="sidebar">today's news</div> <div id="main">here are my photos...</div> <div id="footer">copyright 2009, Me</div> </div>

Without CSS positioning My portfolio Home Contact About Today's News Here are my photos... Copyright 2009, Me

#wrapper {...} #header {...} #menu {...} #sidebar {...} #main {...} #footer {...} CSS style for each id

width: and float: #wrapper {width: 750px; margin: 0px auto;} #header {...} #menu {...} #sidebar {width: 200px; float: left;} #main {width: 550px; float: right;} #footer {...}

With CSS positioning added My portfolio Today's News Home Contact About Here are my photos... Copyright 2009, Me

Web Design I Spring 2009 Kevin Cole Gallaudet University 2009.03.05 1

Layout Page banner, sidebar, main content, footer Old method: Use <table>, <tr>, <td> New method: <div> and "float" CSS property Think of your web pages like water. With "float" your <div>'s will automatically move around to allow other <div>'s to fit. 2 Tables are an easy way to break material into columns and rows. Tables should be used for information in a spreadsheet form. Columns and rows should be related. Use tables to look up information. Layout with <div> when columns and rows are not related to each other. Examples: Team schedules are tables: dates, locations, and scores are related to each other. News page with menu and ads are not tables: Ads do not relate to news content, and menus appear on all pages.

Common layout Banner (Header) Navigation (Menu) Sidebar (News, etc) Main page content Footer (Copyright, Contact information) 3 The sidebar often appears on the right instead of the left. Navigation menus often appear in more than one location on the page. Main content may be split into two columns. Simpler is better. Too many columns and sections becomes confusing, and also hinders accessiblity for blind users or others using by non-standard equipment.

The infamous "box model" Margin Border Padding Content 4 The box model is described in full at: http://www.w3.org/tr/css2/box.html Not easy to understand, but important. Remember nesting, from the first class? <div>'s can nest inside other <div>'s. Each <div> has width, margins, borders, padding and content. Content is the "real" part. Often, margins, borders and padding will be zero, or set automatically. Together with the "float" they will position your content. More explaination at: Chapter 10 in your textbook http://redmelon.net/tstme/box_model/ http://www.brainjar.com/css/positioning/default.asp

Common layout Banner (Header) Navigation (Menu) Sidebar (News, etc) Main page content Footer (Copyright, Contact information) Container (wrapper) 5 First, create a "wrapper" <div>. Specify the width, to confine all other <div>'s inside it. Then, nest all other <div>'s inside it.

Layout template <div id="wrapper"> <div id="header"></div> <div id="menus"></div> <div id="sidebar"></div> <div id="main"></div> <div id="footer"></div> </div> 6 In this example, we do not have content yet. We will between the header <div></div>, the menus <div></div>, etc. All tags can have an id attribute. Each tag that uses an id attribute should use a different value for the id. No duplicate id's on the page. (You can use the same id on different pages. So, if you have two files, and both have a tag that has id="content" that is okay.) The <div> with the id "wrapper" surrounds (encloses) all the other <div>'s on the page. The other <div>'s are "nested" inside.

Layout with content, no style <div id="wrapper"> <div id="header">my portfolio</div> <div id="menus">home Contact About</div> <div id="sidebar">today's news</div> <div id="main">here are my photos...</div> <div id="footer">copyright 2009, Me</div> </div> 7 Now there is content between the tags, but no style. <div> without style is like <p>.

Without CSS positioning My portfolio Home Contact About Today's News Here are my photos... Copyright 2009, Me 8 Without the CSS position properties, the text will appear as paragraphs in the same order as the source code: header, menus, sidebar, main and footer will appear one below the other on the page. Set widths, margins, etc. and add position properties to fit the pieces together like Lego blocks.

CSS style for each id #wrapper {...} #header {...} #menu {...} #sidebar {...} #main {...} #footer {...} 9 CSS sections start with a "selector". We have used tag names as selectors: p {font-size: 32px; color: #ff00c3;} h2 {background-color: #ffff00;} We have used "class names" as selectors. Class names start with a period in the CSS:.hello {color: red;} Now we will use id names as selectors. Id selectors start with a # #main {font-size: 24px; font-weight: bold;}

width: and float: #wrapper {width: 750px; margin: 0px auto;} #header {...} #menu {...} #sidebar {width: 200px; float: left;} #main {width: 550px; float: right;} #footer {...} 10 The wrapper surrounds all the other <div>'s. It is set to 750px wide. ALL <div>'s nested inside must fit inside 750px. <div id="sidebar">...</div> will be 200px; and will appear on the left. <div id="main">...</div> will be 550px, and will "float" up and to the right to fill in the space next to <div id="sidebar">...</div>. Together, they will add up to 750px the maximum width that can fit inside the <div id="wrapper">...</div>. Try working through the steps in the lesson Simple 2 column CSS layout Click that link in the list at: http://research.gallaudet.edu/art290/

With CSS positioning added My portfolio Today's News Home Contact About Here are my photos... Copyright 2009, Me 11 With CSS it will eventually look like this example.