Creating Scalable, Flexible, Cross-browser Pages Rick Ells Communications Group UW Technnology.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Cascading Style Sheets
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
University of WashingtonComputing & Communications Standards-Based Web Publishing XHTML and CSS Rick Ells Senior Computer Specialist Computing & Communications.
Making Accessible Drupal Sites Rick Ells UW Technology.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Structure Content Presentation Semantics.
Creating Web Pages with HTML
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
 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.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
WEB DESIGN AND PROGRAMMING Advanced CSS Techniques.
 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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
XHTML and CSS. The Browser The browser is not print!
Daveandal.net Cascading Style Sheets 101 “How I learnt to love CSS and found my inner designer”
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
XHTML and CSS Web Applications. Using HTML/XHTML XHTML is relatively simple. You do most of your work with about twenty tags. XHTML is orderly and structured.
WEB DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
Jozef Goetz, STEM Summer Camp Dr. Jozef Goetz.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
CONTROLLING Page layout
8/13/2003 Designing Without Tables Using CSS by Reshma Kumar and Marina Naito.
Today’s objectives  Announcements  Positioning  Measurement units.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets
CSS Layouts: Grouping Elements
Concepts for fluid layout
Display Property.
Creating a Baseline Grid
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
Cascading Style Sheets
Styles and the Box Model
CSS and Box Model.
Web Development & Design Foundations with H T M L 5
More CSS 22-Feb-19.
Floating and Positioning
Laying out Elements with CSS
Concepts for fluid layout
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Creating Scalable, Flexible, Cross-browser Pages Rick Ells Communications Group UW Technnology

Do Big Things While They Are Small In Search of Memory Dr. Eric Kandel built an understanding of how memory works by studying Aplysia worms, earning a Nobel Prize.

Goals Scalable so people adjust the whole page to the size they find comfortable to read Flexible so people can adjust the browser window to the configuration they find useful Cross-browser so that you only have to maintain a single page and a single stylesheet for all your audiences

Principles Build from basics Keep it simple Aim for management simplicity Be creative within the medium User’s needs come first Content manager’s needs come first Site manager’s needs come first

Methods Strive for Standards Mode Validate, Validate, Validate Tame Default Browser CSS Files Keep Division Structure Simple Markup Semantically Use Relative Sizes for Everything

Strive for Standards Mode DOCTYPE Statements On Every Page  Strict is good - makes you learn  Strict DOCTYPEs do not allow deprecated elements Code To Comply With The Declared DOCTYPE Avoid Quirks Mode  Quirks Mode rewrites your HTML  Produces inconsistent results across browsers Standards Mode Displays Your Code As Written

Validate, Validate, Validate Routine Validation Clarifies Your Understanding of Structure, Syntax, and Relationship Tidy is Mighty The Browser Is Not a Validator

Tame Default Browser CSS Files Each Browser Type and Version Has a Different Default CSS File A Reset CSS File “removes and neutralizes the inconsistent default styling of HTML elements” A Base CSS File “applies a style foundation for common HTML elements that is consistent across A-grade browsers”

Control Layout With CSS KPSS – Keep Page Structure Simple Use DIVs For Basic Page Structure  Header, Navigation, Sidebar, Main, Footer Mind Your P’s, B’s, and M’s  Remember padding, borders, and margins are outside the content box - your DIV is wider than you think  Often it is better for the DIV to not have padding or margins - apply them to the elements within the DIV instead

Markup Semantically Use Elements As Semantically Intended  as paragraphs, as headers, etc. Elements of the Same Semantic Type Usually Have the Same Presentation  Consistent semantic markup facilitates effective use of CSS to create a consistent look and feel Semantic Markup Helps Assistive Technology  Voice browsers use headings as quicky table of contents

Use Relative Sizes for Everything Use relative units – em, % Think fluid Be careful about relative sizes within relative sizes  Setting font size to 70% in the and then specifying x-small in an element makes really little text

Let Not Thy Floats Bump By definition, floats have width and their contents have width  They do not like to be squeezed  When squeezed they are likely to drop Figure out a page layout that minimizes bump as the page is flexed or scaled  Have content in the main flow and use floats for secondary information Limit the number of floats

Secret Spells When some elements have position in a flow and others do not, you may need to give position to the container of the elements or weird spacing may occur in IE. Hack be gone – Strict code and standards mode avoids many of the old glitches. Test all hacks, they may not be needed anymore. For your IE users, you may need to set “word- spacing: 0; letter-spacing: 0;” in an element for stable scaling behavior.

Last Thoughts Work Creatively With XHTML/CSS  Don’t just try to implement tables designs with CSS Simplicity First, Then Complexity New versions of HTML and XHTML are coming: Fear them not for they are all fruit of the same XML tree.