using a css framework

16
Using a CSS Framework or How to spend less time making CSS layouts and more time at the Tugboat Brewpub Chris Barr, Villanova University

Upload: eby

Post on 14-Nov-2014

10.815 views

Category:

Business


0 download

DESCRIPTION

Using a CSS framework can allow you to speed up your development time, normalize your code base, and avoid some common browser bugs. In this talk I will discuss when it is appropriate to use a framework, potential pitfalls of common frameworks, how the Yahoo User Interface (YUI) Grids system has been implemented in the default installation of the VuFind software, and demonstrate the creation of a 3 column CSS layout from scratch in under 5 minutes.

TRANSCRIPT

Page 1: Using a CSS Framework

Using a CSS Frameworkor

How to spend less time making CSS layouts and more time at the Tugboat

Brewpub

Chris Barr, Villanova University

Page 2: Using a CSS Framework

Play along at home.

http://vufind.org/demo/css/layout.css

Page 3: Using a CSS Framework

Framework

“a set of tools, libraries, conventions, and best practices that attempt to abstract routine tasks into generic modules that can be reused.”

Page 4: Using a CSS Framework

Why we use a CSS Framework?

• Normalize code base

• Well documented

• Browser compliance (with some hacks baked in)

• Easily create multiple layouts

• We’ve got better things to do than finding novel ways of creating columns

Page 5: Using a CSS Framework

Yahoo User Interface Library

Page 6: Using a CSS Framework

Microsoft? User Interface Library

Page 7: Using a CSS Framework

What we like about YUI

• 4 standard size layouts out of the box

• Ems based (nice zoom layouts)

• Source order independence

• A-grade browser compliance

• BSD License

Page 8: Using a CSS Framework

The YUI CSS Files

• Reset.css

• Fonts.css

• Grids.css

• And a helper… base.css

Page 9: Using a CSS Framework
Page 10: Using a CSS Framework
Page 11: Using a CSS Framework
Page 12: Using a CSS Framework
Page 13: Using a CSS Framework
Page 14: Using a CSS Framework
Page 15: Using a CSS Framework
Page 16: Using a CSS Framework

Let’s play!