Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box...

34
Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager Charles Mihm, Product Engineer

Transcript of Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box...

Page 1: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Advanced WebPAC Design and Best Practices:Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets

Dinah Sanders, Product Manager

Charles Mihm, Product Engineer

Page 2: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

WebPAC Example Sets

• in CSDirect Downloads area• separate sets for classic Web OPAC

and WebPAC Pro• updated with new releases, with

additional corrections/additions between releases

• change notes provided

Page 3: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Role of the Example Set

• out-of-the-box look & feel• no dead links to support iterative

improvement - extend/alter as you have time

• reference for customizable forms• easy starting point for redesigns

Page 4: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Contents

• XHTML pages• images• example wwwoptions (what you need

to compare most when using the set for a redesign)

• javascripts supporting this look & feel• style sheets

Page 5: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Style sheets & the cascade

• ProStyles.cssnot editable, provides default presentation

• styles.csseditable, allows you to override defaults

• ie_styles.csseditable, provides workarounds for Internet Explorer’s foibles

Page 6: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Classic Example Set

Page 7: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Pro Example Set

Page 8: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Ideal Web Design

Valid, standards based, and semantically meaningful markup with a complete separation of presentation (CSS), behavior (JavaScript) and content (X/HTML).

Page 9: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Challenges to the ideal

• Variable support for standards in browsers used by your audience– Internet Explorer– Screen readers & other alternate tech– Small devices like PDAs & phones

• Older HTML code which works but is not compliant with current standard

Page 10: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Screen Resolutions

• 800 X 600 – 12%• 1024 X 768 – 53%• Larger – 21%

These figures will vary based upon your audience.

Stats for April 2007 from:http://www.thecounter.com/stats/2007/April/res.php

Page 11: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Current Browser Market Share

• Internet Explorer – 58.7 %• IE 7 – 18%• IE 6 – 38.7%• IE 5 – 2%

• Firefox – 31.8%• Safari – 1.7%• Opera – 1.6%

Stats for March 2007 from: http://www.w3schools.com/browsers/browsers_stats.asp

Page 12: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Browser Differences

• One of these kids is doing their own thing, one of the kids is not the same…

Firefox Opera Safari Internet Explorer

Page 13: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

IE likes to be different

• Issues you need to learn about if you are doing design changes & run into problems Box model hasLayout Incomplete CSS support IE 6 non native PNG transparency support

Page 14: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Sanity-saving solutions

• Accept imperfection & variability: this is not print design

• Test in many browsers & platforms• Fix on fail• Iterate & improve• Do new work to current standards

(test in Firefox and then adjust for IE behavior)

Page 15: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Moving on from the technical…

What can you do with the example set?

Page 16: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Alternate Example Sets – one

Page 17: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Alternate Example Sets – two

Page 18: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Alternate Example Sets – three

Page 19: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Other Ideas

Page 20: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Tools

Aptana - an excellent multi-purpose editor

Firefox - development tool

FileZilla - powerful FTP client

Page 24: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Suggested ReadingDOM Scripting

by Jeremy Keith

WEB Standards Creativityby Cameron Adams, Mark Boulton, Andy Clarke,

Simon Collison, Jeff Croft, Derek Featherstone, Ian Lloyd, Ethan Marcotte, Dan Rubin, Rob Weychert

Page 25: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Suggested ReadingTranscending CSS: The Fine

Art of Web Design by Andy Clarke & Molly E Holzschlag

The Principles of Beautiful Web Design

By Jason Beaird

Page 26: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Suggested ReadingBulletproof Web Designby Dan Cedarholm

Bulletproof AjaxBy Jeremy Keith

Page 27: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Questions?

Page 28: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Appendix: Challenges

• Explaining the IE differences Box model hasLayout Incomplete CSS support IE 6 non native PNG transparency support

Page 29: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Box Model

CSS Implementation:

The total width including borders and padding should be 400px

20+30+300+30+20 = 400

Microsoft Implementation:IE includes the borders and padding within the total width so you actually have a width of 200px for your content

300-20-30-30-20 = 200

Page 30: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Some boxy CSS: Microsoft Implementation:

div.boxtest { border:20px solid #000;padding:30px; width:300px; } Standards Browser:

Page 31: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

hasLayout

• Most of the quirks that IE has in regards to the way it displays web pages are related to the “hasLayout” property

• “hasLayout is an IE/Win proprietary concept that determines how elements draw and bound their content, interact with and relate to other elements, and react on and transmit application/user events” - Holly Bergevin, et. al.

• “Understanding “layout” gives a huge insight into lots of

other IE bugs and idiosyncrasies.” - Dean Edwards

Page 32: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

Some hasLayout display issues

• float handling• list marker display• relatively positioned parent and disappearing

floated child• :hover reflow• background image positioning• margin collapsing (or lack thereof)• …the list goes on…

Page 33: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

More hasLayout Resources

• on having layout• Microsoft's documentation

Page 34: Advanced WebPAC Design and Best Practices: Discussion with the People who Create the Out-Of-The-Box WebPAC Default Sets Dinah Sanders, Product Manager.

See Innovative @ IUG 15!

• Encore Booth / Millennium Self Check Exhibits– CC/Exhibit Hall 1

Open During Exhibit Hours

• Innovative Help Desk Annex / Customer Sales Center– CC/Room B

Tuesday 11 a.m. – 5:30 p.m.Wednesday 8 – 11 a.m., 1:30 – 5:30 p.m.Thursday 8 a.m. – 3 p.m.