SlideShare a Scribd company logo
CSS3: stay tuned
   for style
 Chris Mills, Opera Software




          Slides available on http://slideshare.net/chrisdavidmills
Who the hell am I?
‣ Opera open standards evangelist and tech writer
‣ Telling the world about open standards & Opera
‣ Improving web education
‣ Drinking beer & saving the world before morning
‣ Drumming in a heavy metal band
CSS3!



 http://www.flickr.com/photos/burningmax/4956554644/
http://www.flickr.com/photos/drakelelane/3891672125/
Today I'll cover
‣ Where CSS3 came from
‣ What it brings to the table
‣ Why it is worth knowing about
‣ When (and how) you can start using it
Where did it evolve from?




              http://www.flickr.com/photos/dyanna/3202542828/
Brief CSS history
‣ CSS invented by Håkon Wium Lie and Bert Bos
  around 1994/5
‣ CSS1 rec published in 1996
‣ CSS2 rec published 1998, including things like
  absolute, relative, and fixed positioning, z-index,
  media types
Brief CSS history
‣ CSS 2.1 work started soon after, to remove
  errors and inconsistencies, but this is still not
  completely finished
‣ Kept pinging back and forth between working
  draft and candidate rec. Currently sat at last call
  working draft, as of Dec 2010
Brief CSS history
‣ CSS3 also started soon after CSS2, to add new
  features
‣ Earliest CSS3 drafts published in June 1999
‣ As of March 2011, there are over 40 CSS3
  module drafts published
‣ Some a lot more stable than others
W3C breaking down?
‣ You might think so...
‣ ...especially considering the XHTML2/HTML5
  debacle as well
‣ Browsers and developers are largely rushing
  ahead
‣ But at least things are getting standardized
Vendor prefixes help...
Like sandboxes for browsers to experiment!




                      http://www.flickr.com/photos/horiavarlan/4290846294/
Vendor prefixes...
‐ms‐transform‐origin:
center;
‐moz‐transform‐origin:
center;
‐o‐transform‐origin:
center;
‐webkit‐transform‐origin:
center;

transform‐origin:
center;
What does CSS3 offer?




              http://www.flickr.com/photos/bre/552152780/
What is CSS3?
‣ A series of new modules
‣ Adds extra functionality on top of CSS2.1
The modules
 Selectors | Color | Backgrounds and borders
  Media queries | Multi-column layout | Fonts
 2D Transformations | Transitions | Animation
   Image values | Basic user interface | Text
    Flexible box layout | 3D transformations
   Grid positioning | Ruby | Template layout
The modules
And loads more!
See http://www.w3.org/Style/CSS/current-
work.en.html for more information
Modular = good
‣ Browser vendors can work on one module at a
  time
‣ Less worry and pressure about supporting the
  entire spec
Why is CSS3 so cool?




            http://www.flickr.com/photos/mafleen/3780072133/
We've done most of
this stuff before...




            http://www.flickr.com/photos/monkeytime/4120229885/
...so why...




               http://www.flickr.com/photos/shawnblog/566041143/
...should we care?




           http://www.flickr.com/photos/philliecasablanca/2816530573/
Simple...makes common
tasks easier and simpler
‣ Less time spent in Photoshop
‣ Less time spent with JavaScript
‣ Less presentational markup
‣ Less time spent dicking about with Flash
‣ More time spent in the pub
Less Photoshop
Doing this programmatically is so much more
flexible!

Classic examples:
 ‣ Drop shadows
 ‣ Gradients
 ‣ Rounded corners
 ‣ Transparency
Drop shadows
text‐shadow:
black
3px
3px
5px;
box‐shadow:
black
4px
4px
5px;

text‐shadow:
0
0
4px
white,













0
‐5px
4px
#ffff33,













2px
‐10px
6px
#ffdd33,













‐2px
‐15px
11px
#ff8800,













2px
‐25px
18px
#ff2200,
Gradients
background‐image:
‐o‐linear‐gradient(top

left,rgb(255,0,0),rgb(150,0,0));
Rounded corners
border‐radius:
10px;

border‐radius:
0px
0px
10px
0px;
Transparency
opacity:
0.6;

background‐color:
rgba(204,204,204,0.6);
Less JavaScript
Designers don't like coding
And not relying on JS can mean smaller
downloads, and better compatibility

Obvious behavioural stuff:
 ‣ Animation
 ‣ Style/layout switchers
 ‣ Showing/hiding
Animation
‣ CSS keyframe animations allow you to create
  animations that run independently
‣ Transitions allow animation that is dependant
  on state changes
Controlling layouts
‣ Media queries allow you to apply CSS
  depending on browser/device attributes such
  as resolution, screen width and height, and
  more
‣ Multi-column layout allows you to easily put
  your content into columns
Showing/hiding
‣ :target pseudo-class: apply CSS depending on
  whether the element selected is the target of a
  fragment identifier
‣ So when links are clicked you could make
  panels, etc. appear.
Less presentational markup
‣ CSS3 includes a wide variety of new selectors
  to allow you to select what you want more
  easily, with less classes/ids
‣ Features like multiple background images and
  rounded corners allow you to get rid of some of
  those nested divisions!
CSS3 selectors
[attr*=str]       :nth‐last‐of‐type(n)
[attr^=str]       :nth‐last‐child(n)
[attr~=str]       :only‐child
:first‐child      :only‐of‐type
:last‐child       :checked
:first‐of‐type    :valid
:last‐of‐type     :invalid
:nth‐child(n)     :enabled       :target
:nth‐of‐type(n)   :disabled      And
more!
Multiple backgrounds
header
{


background:
url(icon.gif)
top
left
no‐repeat,














url(pattern.jpg)
repeat,














url(center‐spine.png)
top
center














repeat‐y;


}
When can we start using
these tools?
Now!




       http://www.flickr.com/photos/ilamont/5538511847/
Yes, there's browser
support to consider
‣ But most browsers support most of this stuff
  now, even IE9!
‣ Most of it degrades gracefully
‣ And you can work around problems
‣ Depends on what your client needs
‣ By “identical”, how similar do you mean??
Try to argue the case...
...”identical in every browser” is outdated
‣ Especially with mobile phones, iPad, tablets...
‣ And IE6 is a decade old now
‣ Surely providing an acceptable experience in
   each browser is, well, acceptable?
‣ Then you can spend more less time on hacking
Selectivizr
CSS3 pie
Modernizr
Thanks for listening!
‣ cmills@opera.com
‣ @chrisdavidmills
‣ http://dev.opera.com
‣ http://www.opera.com/wsc

More Related Content

Viewers also liked (15)

KEY
(For non-developers) HTML5: A richer web for everyone
Chris Mills
 
KEY
Selling Yourself Online Chrismills
Chris Mills
 
KEY
Optimizing content for the "mobile web"
Chris Mills
 
PDF
A web sized education problem?
Chris Mills
 
PDF
HTML5 Pearson preso
Chris Mills
 
PDF
HTML5 and CSS3 Shizzle
Chris Mills
 
KEY
CSS3: stay tuned for style
Chris Mills
 
KEY
HTML5: A brave new world of markup
Chris Mills
 
KEY
HTML5: what's new?
Chris Mills
 
ODP
Cross Device Accessibility
Chris Mills
 
KEY
Web education, and the Opera web standards curriculum
Chris Mills
 
PDF
HTML5 and CSS3: does now really mean now?
Chris Mills
 
PDF
APIs for modern web apps
Chris Mills
 
PDF
APIs, now and in the future
Chris Mills
 
PDF
Feedback handling, community wrangling, panhandlin’
Chris Mills
 
(For non-developers) HTML5: A richer web for everyone
Chris Mills
 
Selling Yourself Online Chrismills
Chris Mills
 
Optimizing content for the "mobile web"
Chris Mills
 
A web sized education problem?
Chris Mills
 
HTML5 Pearson preso
Chris Mills
 
HTML5 and CSS3 Shizzle
Chris Mills
 
CSS3: stay tuned for style
Chris Mills
 
HTML5: A brave new world of markup
Chris Mills
 
HTML5: what's new?
Chris Mills
 
Cross Device Accessibility
Chris Mills
 
Web education, and the Opera web standards curriculum
Chris Mills
 
HTML5 and CSS3: does now really mean now?
Chris Mills
 
APIs for modern web apps
Chris Mills
 
APIs, now and in the future
Chris Mills
 
Feedback handling, community wrangling, panhandlin’
Chris Mills
 

Similar to CSS3: stay tuned for style (20)

PPT
CSS3 and a brief introduction to Google Maps API v3
Jeffrey Barke
 
PDF
CSS3: Ripe and Ready to Respond
Denise Jacobs
 
PDF
Simply Responsive CSS3
Denise Jacobs
 
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
PDF
Intro to CSS3
Denise Jacobs
 
PDF
CSS3 - is everything we used to do wrong?
Russ Weakley
 
KEY
The web standards gentleman: a matter of (evolving) standards)
Chris Mills
 
PPTX
CSS 3 Overview
Danilo Sousa
 
PDF
HTML5 for the Flash Developer
DevelopmentArc LLC
 
PPT
CSS3
Doncho Minkov
 
KEY
Trendsetting: Web Design and Beyond
Andy Stratton
 
PDF
CSS3: Ripe and Ready
Denise Jacobs
 
PDF
Introduction to CSS3
Doris Chen
 
PPTX
Css3 paul trani
Carl Ford
 
KEY
CSS and CSS3
Robyn Overstreet
 
PPTX
CSS3: The Next Generation Of Style
jbellWCT
 
PPTX
Css3 shubelal
Shub
 
PDF
Evolution of CSS
Ecaterina Moraru (Valica)
 
PDF
Css3
Renzil D'cruz
 
PDF
CSS Training Online-Online CSS Course css course online learning html and css...
Evanta Technologies
 
CSS3 and a brief introduction to Google Maps API v3
Jeffrey Barke
 
CSS3: Ripe and Ready to Respond
Denise Jacobs
 
Simply Responsive CSS3
Denise Jacobs
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Intro to CSS3
Denise Jacobs
 
CSS3 - is everything we used to do wrong?
Russ Weakley
 
The web standards gentleman: a matter of (evolving) standards)
Chris Mills
 
CSS 3 Overview
Danilo Sousa
 
HTML5 for the Flash Developer
DevelopmentArc LLC
 
Trendsetting: Web Design and Beyond
Andy Stratton
 
CSS3: Ripe and Ready
Denise Jacobs
 
Introduction to CSS3
Doris Chen
 
Css3 paul trani
Carl Ford
 
CSS and CSS3
Robyn Overstreet
 
CSS3: The Next Generation Of Style
jbellWCT
 
Css3 shubelal
Shub
 
Evolution of CSS
Ecaterina Moraru (Valica)
 
CSS Training Online-Online CSS Course css course online learning html and css...
Evanta Technologies
 
Ad

More from Chris Mills (18)

PDF
More efficient, usable web
Chris Mills
 
PDF
Guerrilla education
Chris Mills
 
PDF
Web versus Native: round 1!
Chris Mills
 
PDF
BrazilJS MDN
Chris Mills
 
PDF
Empowering the "mobile web"
Chris Mills
 
PDF
Documentation and publishing
Chris Mills
 
PDF
MDN is easy!
Chris Mills
 
PDF
Getting rid of images with CSS
Chris Mills
 
PDF
Future layouts
Chris Mills
 
PDF
Laying out the future
Chris Mills
 
PDF
Accessibility doesn't exist
Chris Mills
 
PDF
Responsive web design standards?
Chris Mills
 
PDF
Adapt! Media queries and viewport
Chris Mills
 
PDF
Adapt and respond: keeping responsive into the future
Chris Mills
 
KEY
Angels versus demons: balancing shiny and inclusive
Chris Mills
 
PDF
The W3C and the web design ecosystem
Chris Mills
 
PDF
Brave new world of HTML5
Chris Mills
 
KEY
Inclusive design: real accessibility for everyone
Chris Mills
 
More efficient, usable web
Chris Mills
 
Guerrilla education
Chris Mills
 
Web versus Native: round 1!
Chris Mills
 
BrazilJS MDN
Chris Mills
 
Empowering the "mobile web"
Chris Mills
 
Documentation and publishing
Chris Mills
 
MDN is easy!
Chris Mills
 
Getting rid of images with CSS
Chris Mills
 
Future layouts
Chris Mills
 
Laying out the future
Chris Mills
 
Accessibility doesn't exist
Chris Mills
 
Responsive web design standards?
Chris Mills
 
Adapt! Media queries and viewport
Chris Mills
 
Adapt and respond: keeping responsive into the future
Chris Mills
 
Angels versus demons: balancing shiny and inclusive
Chris Mills
 
The W3C and the web design ecosystem
Chris Mills
 
Brave new world of HTML5
Chris Mills
 
Inclusive design: real accessibility for everyone
Chris Mills
 
Ad

Recently uploaded (20)

PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
July Patch Tuesday
Ivanti
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
Français Patch Tuesday - Juillet
Ivanti
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 

CSS3: stay tuned for style

Editor's Notes