ADAM ENGELSGJERD UA LIBRARY MAY 9, 2007 CSS and Internet Explorer.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Quiz #3 - CSS Lecture Code: Get Neighbors’ URLs for MP1
Cascading Style Sheets
Today CSS HTML A project.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Authoring Languages and Web Authoring Software 4.01 Examine web page development and design.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Internet Design Issues and Internet Explorer 7 Let’s Take a Look at IE 7+ Goto IE7 (Click Here)
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Project 1 Introduction to HTML.
Cascading Style Sheets Controlling the Display Of Web Content.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
1st Project Introduction to HTML.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Web Design Basic Concepts.
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
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.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
Using Styles and Style Sheets for Design
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.
HTML (HyperText Markup Language)
Chapter 2 Developing a Web Page. Chapter 2 Lessons Introduction 1.Create head content and set page properties 2.Create, import, and format text 3.Add.
Page Layout with CSS Learning Web Design: Chapter 16.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
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.
Client Side Programming with JavaScript Why use client side programming? Web sides built on CGI programs can rapidly become overly complicated to maintain,
CSS = Cascading Style Sheet CSS consists of rules to display, style and decorate HTML elements Why CSS ? – Separate decoration from HTML markup (Ex :,,…)
WEB DESIGN AND PROGRAMMING Advanced CSS Techniques.
Lesson 8. Test 1 Topics Browser incompatibility Design Tips Site Navigation Browser- safe color Monitor resolution Content Copyright Use of tables vs.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
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.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Positioning Objects with CSS and Tables
Cascading Style Sheets CSS2 - a bit more advanced.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
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
Chapter 1 Introduction to HTML.
Advanced CSS BIS1523 – Lecture 20.
Creating a Baseline Grid
Cascading Style Sheets™ (CSS)
More CSS 22-Feb-19.
Presentation transcript:

ADAM ENGELSGJERD UA LIBRARY MAY 9, 2007 CSS and Internet Explorer

Today’s Outline  Browsers & Standards  Safe CSS Hacking  Conditional Statements  Making IE6 Behave  Testing  There Is No Spoon Graphic a combination of Wooly the CSS Sheep ( and the IE7 Logo (MS Corp)

Browsers & Standards Browsers are developed by people, and people have agendas, moods, and are fallible. 1 “We come to find at the end of it all, Web standards don’t really matter. What matters is what features are implemented and what is put to use, no matter its origin” 1 Internet Explorer 3.0 beta for Windows introduced the first widely usable CSS implementation (July, 1996) 1 Standards are a shifting target. Standards are not standards, but recommendations. 1 Content origin: Molly E. Holzschlag. An Event Apart, Boston Building Better Browsers

Browsers & Standards Dead Bugs 1  Peek-a-boo bug  Guillotine bug  Duplicate character bug  Duplicate indent  3 pixel text jog  Creeping text bug  Double float margin bug  Bottom margin bug on hover  IE/Win line:height bug  Quirky percentages in IE 1 Slide content origin: Eric Meyer. An Event Apart, Boston The State of CSS in an IE7 World

Safe CSS Hacking 1 /*\*/ /**/ Hides rules from Mac IE5 /*/*/ /**/ Hides rules from Netscape 4 /*\*//*/ /**/ Shows rules to Mac IE5 * html p { } Shows rules to Mac IE and Win IE (But not IE7 in standards ulr[“style.css”]; Hides rules from Netscape 4. P { width: 400px; voice-family: “\”}\””; Hides Properties from Win IE5x width: 300px; } 1 Content origin: Ethan Marcotte. An Event Apart, Boston Web Standards Stole My Truck.

Conditional Statements Allows you to serve different CSS for different IE browsers. Learn more:

Making IE6 Behave The Dean Edwards “IE7 Script”  Created at a time when Microsoft claimed IE6 was dead.  From the site:  IE7 loads and parses all style sheets into a form that Explorer can understand. You can then use most CSS2/CSS3 selectors without having to resort to CSS hacks. The lightweight script is a single-line inclusion in your HTML/XML document. No alteration of your original markup is necessary. Neither do you have to alter your CSS.  If you’re Yahoo, it’s not for you.  Learn More:

Making IE6 Behave This means that we can take better advantage of IE7’s standards compliance.  CSS3 Selectors 1  A[href$=“.PDF”] { padding-right: 18px; background: url(/pix/pdf-icon.gif) 100% 50% no repeat;}  Does not address accessibility issues. 1 Content origin: Eric Meyer. An Event Apart, Boston The State of CSS in an IE7 World

Testing Develop in Firefox Test in IE 7 (etc.) Testing in IE6  Devote a machine to IE6.  Use evolt.org’s standalone IE installation.  ?ie/32bit/standalone ?ie/32bit/standalone

There Is No Spoon “Standard” HTML element behavior is driven by local CSS files. 1  html.css; quirk.css  /* hidden elements */ area, base, basefont, head, meta, script, style, title, noembed, param { display: none; }  p, dl, multicol { display: block; margin: 1em 0; }  Content origin: Eric Meyer. An Event Apart, Boston Secrets of the CSS Jedi

Designing Websites Questions?

CSS – There Is No Spoon “Standard” HTML element behavior is driven by local CSS files.  html.css; quirk.css  /* hidden elements */ area, base, basefont, head, meta, script, style, title, noembed, param { display: none; }  p, dl, multicol { display: block; margin: 1em 0; } 

CSS – Making IE Play Nice The Dean Edwards IE7 Script  Created at a time when Microsoft claimed IE6 was dead.  From the site:  IE7 loads and parses all style sheets into a form that Explorer can understand. You can then use most CSS2/CSS3 selectors without having to resort to CSS hacks. The lightweight script is a single-line inclusion in your HTML/XML document. No alteration of your original markup is necessary. Neither do you have to alter your CSS.  If you’re Yahoo, it’s not for you. 

CSS – Making IE Play Nice This means that we can take better advantage of IE7’s standards compliance.  CSS3 Selectors  A[href$=“.PDF”] { padding-right: 18px; background: url(/pix/pdf-icon.gif) 100% 50% no repeat;}  Does not address accessibility issues.  The use of conditional comments is still the best way to apply IE hacks to a large site like ours.  styles or link to stylesheet

DESIGN – Writing Copy If content is king; if fresh content is what drives users back; if textual content provides the majority of the interface navigation; then all large sites must have large writing budgets and content czars…right? Only 2 people out of 500 at the conference had one person in charge of content, and no one budgeted for writing. We need to make content work for us.

DESIGN – Writing Copy Modifying textual content is often the most cost effective way to improve your site. Is the copy concise? Click here to enter your username and get started! vs. Sign in! Does it serve its purpose (hard vs. soft sell, inviting vs. professional) Audience appropriate copy can mean that it’s just not inappropriate.

DESIGN – Typography Usability and design via textual design. How does typography affect the flow of a site? What typography fits with the content?

DESIGN - Microformats Designed for humans first and machines second, microformats are a set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microformats intend to solve simpler problems first by adapting to current behaviors and usage patterns (e.g. XHTML, blogging).  hCard: home : 

DESIGN – Integrity Testing Integrity tests  Turn off the images  Take a screen shot of a page and blur it  Turn off CSS  Increase and decrease the font size  Wrapping elements using EM can allow the entire design to increase as the user increases or decreases their font size.

USABILITY – Pearls from Krug “The best way to learn about [the] usability [of anything] is to watch people use things. “You can hire someone once a year to do Spring Cleaning, but that’s not the way to do it; you really need someone in house to address the usability issues as they come up…and they come up all the time.  Take 3 people, once a month, and do testing with them. “There are endorphins involved here [in the design process]

ACCESSABILITY The current state:  User agents are not in synch in how they interpret code.  Browsers and user agents are not communicating well.  Even the technical lead of accessibility at Adobe is barely able to keep his head above water. What this means for us?  We already code with access keys and with basic web accessibility compliance; for the time being this seems adequate (unless we get another position somewhere along the way).

BROWSER DESIGN Browsers are developed by people, and people have agendas, moods, and are fallible. “We come to find at the end of it all, Web standards don’t really matter. What matters is what features are implemented and what is put to use, no matter its origin”

STANDARDS Standards are not standards, but recommendations. Designing to standards is a goal, but a 100% compliant site is not required. It can allow for easier future growth of the site to multiple client devices (e.g. mobile devices). All the standards compliance in the world doesn’t mean a thing if the code will be mangled by a CMS, or if it’s so complicated the uses/maintainer can’t understand it.

Designing Websites Questions?