SlideShare a Scribd company logo
1 of 105
Download to read offline
Refresh Orlando • April 27, 2010
CSS3
Ready for Primetime?
Who am I?
Why is CSS3
so appealing?
Why is CSS3
so appealing?
Simplified solutions
Less Markup
Zebra Striping a Table
Zebra Striping a Table
<table>
<tr><td></td></tr>
<tr class=“even”><td></td></tr>
<tr><td></td></tr>
<tr class=“even”><td></td></tr>
<tr><td></td></tr>
<tr class=“even”><td></td></tr>
<tr><td></td></tr>
<tr class=“even”><td></td></tr>
</table>
Zebra Striping a Table
.even{
style declaration
}
New Solution using
CSS3 advanced selector
New Solution using
CSS3 advanced selector
tr:nth-child(even){
style declaration
}
Code solutions
opposed to
image solutions
Rounded Corners
Rounded Corners
Rounded Corners
<div class=“box”>
<div class=“box-inner”>
<img src=“boat.jpg” alt=“boat” />
</div>
</div>
Rounded Corners
.box{
width:226px;
background:#e2e1d4 url(round-bottom.gif) no-
repeat bottom left;}
.box-inner{
padding:15px;
background: url(round-top.gif) no-repeat top left;}
Rounded Corners - Fluid
Rounded Corners - Fluid
Rounded Corners - Fluid
<div class=“box”>
<div class=“box-inner”>
<div class=“box-inner2”>
<div class=“box-inner3”>
<img src=“boat.jpg” alt=“boat” />
</div></div></div>
</div>
Rounded Corners á la CSS3
Rounded Corners á la CSS3
<div class=“box”>
<img src=“boat.jpg” alt=“boat” />
</div>
Rounded Corners á la CSS3
<div class=“box”>
<img src=“boat.jpg” alt=“boat” />
</div>
.box{
padding:15px;
background:#e2e1d4;
border-radius:8px;
}
The Problem with CSS3
The Problem with CSS3
Not all browsers support it (yet)
http://www.findmebyip.com/litmus/
Is CSS3 ready for
primetime?
Yes?
Progressive
Enhancement
No?
It depends
“Good craftsmanship is about
understanding the various ways to
solve a particular problem, then
choosing the right task for the job.”
Dan Cederholm, Handcrafted CSS
Things to consider
The Client
The Audience
Photo by werkunz, http://www.flickr.com/photos/werkunz/
Used under Creative Commons License
The Design Problem
Photo by Seth and Alexa, http://www.flickr.com/people/sethandalexa/
Used under Creative Commons License
The Design Solution
http://theshipandthesea.com
The Designer
The Cost
My Challenge to you:
My Challenge to you:
Try CSS3 where it is
appropriate
Pitching it
to a Client
Not all browsers see the
same design
HDTV
Video
Games
Paul Stanton
http://coffeepowered.co.uk/2010/02/an-analogy-for-progressive-enhancement/
Wii XBox 360
Ramp Champ
Now for the fun
part of our show
Ramp Champ
Andy Clarke
http://www.cannybill.com
Rounded Corners
Rounded Corners
Text shadows
Rounded Corners
Text shadows
Transforms
Rounded Corners
Text shadows
Transforms
Webkit transitions
Rounded Corners
Text shadows
Transforms
Webkit transitions
RGBa
Rounded Corners
.borderradius header.branding nav ul {

 -moz-border-radius:20px 20px 20px 20px;

 -web-kit-border-radius: 20px 20px 20px 20px;
}
Text shadows and RGBa
.rgba body {

 color:rgba(255, 255, 255, 0.9);

 text-shadow:0 1px 1px rgba(0, 0, 0, 0.8);
}
Transforms
.csstransforms figure.video-tour:hover img {

 -moz-transform:scale(1.15);

 -web-kit-tranform:scale(1.15);
}
Transitions (web-kit)
.csstransforms figure.video-tour img {

 -webkit-transition-property : scale;

 -webkit-transition-duration : 0.2s;

 -webkit-transition-timing-function : ease-in-
out;
}
http://sxsw.beercamp.com/
Multiple Text shadows
Multiple Text shadows
Transform
Multiple Text shadows
Transform border-radius
Multiple Text shadows
Transform border-radius
@font-face
Transform
Multiple Text Shadow
h1 .b {
text-shadow: 1px 0px #FE8, 1px 2px #EB0, 3px 1px #FE8, 2px 3px #EB0, 4px 2px #FE8, 4px
4px #EB0, 5px 3px #FE8, 5px 5px #EB0, 7px 4px #FE8, 6px 6px #EB0, 8px 5px #FE8, 7px 7px
#EB0, 9px 6px #FE8, 9px 8px #EB0, 11px 7px #FE8, 10px 9px #EB0, 12px 8px #FE8, 11px
10px #EB0, 13px 9px #FE8, 12px 11px #EB0, 15px 10px #FE8, 13px 12px #EB0, 16px 11px
#FE8, 15px 13px #EB0, 17px 12px #FE8, 16px 14px #EB0, 19px 13px #FE8, 17px 15px #EB0,
19px 14px #FE8, 18px 16px #EB0, 21px 15px #FE8, 19.6px 17px #EB0, 22px 16px #FE8, 21px
18px #EB0, 24px 17px #FE8, 22px 19px #EB0, 25px 18px #FE8, 23px 20px #EB0, 26px 19px
#FE8, 24.5px 21px #EB0, 27.783px 20px #FE8, 26px 22px #EB0, 29px 21px #FE8, 27px 23px
#EB0, 30px 22px #FE8, 28px 24px #EB0, 32px 23px #FE8, 29.4px 25px #EB0, 33px 24px
#FE8, 31px 26px #EB0;
z-index: 50;
}
Transform
Transform
#location:hover {
top: 25px;
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);}
Transform
#location:hover {
top: 25px;
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);}
#location h2 {
-moz-transform: rotate(-7deg);
-webkit-transform: rotate(-7deg);
}
Transform
Transform
#sponsors li a:hover {
-moz-transform-origin: right bottom;
-webkit-transform-origin: right bottom;
-moz-transform: rotate(7deg) scale(1.2);
-webkit-transform: rotate(7deg) scale(1.2);
}
#location .pointer {
display: block;
position: absolute;
left: -20px;
bottom: -55px;
border-style: solid;
border-width: 60px 90px 0;
border-color: #EB0 transparent;
}
Elliot Jay Stocks
http://neutroncreations.com/blog/
Text
Text
Text
Web-kit animation
div.neutron01 {
-webkit-animation-name:neutron01;
-webkit-animation-duration:10s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:linear }
@-webkit-keyframes neutron01 { from { -webkit-transform:rotate(0deg) } to { -webkit-
transform:rotate(360deg) }
}
div.neutron02 {
-webkit-animation-name:neutron02;
-webkit-animation-duration:4s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:linear }
@-webkit-keyframes neutron02 { from { -webkit-transform:rotate(360deg) } to { -webkit-
transform:rotate(0deg) }
}
Edge of My Seat
http://24ways.org
My Challenge to you:
My Challenge to you:
Try CSS3 where it is
appropriate
Jeff Bridgforth
Jeff Bridgforth
http://www.slideshare.net/JBridg4th
Jeff Bridgforth
http://www.slideshare.net/JBridg4th
jeffbridgforth.com/refresh-talk
Jeff Bridgforth
http://www.slideshare.net/JBridg4th
jeffbridgforth.com/refresh-talk
Twitter: @webcraftsman

More Related Content

What's hot

Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
Postlet June1709
Postlet June1709Postlet June1709
Postlet June1709
bnbanmare
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
Erin M. Kidwell
 
Class 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web designClass 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web design
Erin M. Kidwell
 

What's hot (16)

Css & css3
Css & css3Css & css3
Css & css3
 
Pemrograman Web 3 - CSS Basic Part 2
Pemrograman Web 3 - CSS Basic Part 2Pemrograman Web 3 - CSS Basic Part 2
Pemrograman Web 3 - CSS Basic Part 2
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with Bootstrap
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
ARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSSARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSS
 
Slicing the web
Slicing the webSlicing the web
Slicing the web
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
 
Postlet June1709
Postlet June1709Postlet June1709
Postlet June1709
 
Pemrograman Web 2 - CSS
Pemrograman Web 2 - CSSPemrograman Web 2 - CSS
Pemrograman Web 2 - CSS
 
Troubleshooting Email Like a Pro
Troubleshooting Email Like a ProTroubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
 
Troubleshooting Email Like a Pro
Troubleshooting Email Like a ProTroubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
 
Troubleshooting Email Like a Pro
Troubleshooting Email Like a ProTroubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
 
Class 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web designClass 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web design
 

Similar to CSS3 Ready for Primetime

Big Design Conference: CSS3
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3
Wynn Netherland
 
Static web sites assignment 1 philip lemmon1
Static web sites assignment 1 philip lemmon1Static web sites assignment 1 philip lemmon1
Static web sites assignment 1 philip lemmon1
Lemmon12
 

Similar to CSS3 Ready for Primetime (20)

CSS3: Ready for Primetime?
CSS3: Ready for Primetime?CSS3: Ready for Primetime?
CSS3: Ready for Primetime?
 
Css3 101
Css3 101Css3 101
Css3 101
 
Big Design Conference: CSS3
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3
 
Compass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS DeveloperCompass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS Developer
 
HTML5, CSS3, and other fancy buzzwords
HTML5, CSS3, and other fancy buzzwordsHTML5, CSS3, and other fancy buzzwords
HTML5, CSS3, and other fancy buzzwords
 
CSS3 - is everything we used to do wrong?
CSS3 - is everything we used to do wrong? CSS3 - is everything we used to do wrong?
CSS3 - is everything we used to do wrong?
 
Implementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopImplementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 Workshop
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
CSUN 2020: CSS Display Properties Versus HTML Semantics
CSUN 2020: CSS Display Properties Versus HTML SemanticsCSUN 2020: CSS Display Properties Versus HTML Semantics
CSUN 2020: CSS Display Properties Versus HTML Semantics
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
Flipping Tables: Displaying Data on Small Screens
Flipping Tables: Displaying Data on Small ScreensFlipping Tables: Displaying Data on Small Screens
Flipping Tables: Displaying Data on Small Screens
 
Web Development for Mobile: GTUG Talk at Google
Web Development for Mobile: GTUG Talk at GoogleWeb Development for Mobile: GTUG Talk at Google
Web Development for Mobile: GTUG Talk at Google
 
Static web sites assignment 1 philip lemmon1
Static web sites assignment 1 philip lemmon1Static web sites assignment 1 philip lemmon1
Static web sites assignment 1 philip lemmon1
 
Interactive Responsive Emails - Creative ways to innovate in email development
Interactive Responsive Emails - Creative ways to innovate in email developmentInteractive Responsive Emails - Creative ways to innovate in email development
Interactive Responsive Emails - Creative ways to innovate in email development
 
My First Rails Plugin - Usertext
My First Rails Plugin - UsertextMy First Rails Plugin - Usertext
My First Rails Plugin - Usertext
 
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.comA brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
 
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and ConsCSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

CSS3 Ready for Primetime