13
CSS3 what’s the fuss about DavideDiCillo.com @DavideDiCillo Thursday, October 22, 2009

Css3: What is the fuss about

Embed Size (px)

DESCRIPTION

A basic overview on some of the new features offered by CSS3

Citation preview

Page 1: Css3: What is the fuss about

CSS3what’s the fuss about

DavideDiCillo.com @DavideDiCillo

Thursday, October 22, 2009

Page 2: Css3: What is the fuss about

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

-webkit-border-radius: 20px;border-radius: 20px;

Thursday, October 22, 2009

Page 3: Css3: What is the fuss about

BORDER IMAGE-moz-border-images: url(/images/border-image.png) 5 repeat;

-webkit-border-images: url(/images/border-image.png) 5 repeat;

-moz-border-images: url(/images/border-image.png) 5 repeat;

Thursday, October 22, 2009

Page 4: Css3: What is the fuss about

BOX AND TEXT SHADOW-moz-box-shadow: 10px 10px 25px #ccc;

-webkit-box-shadow: 10px 10px 25px #ccc; box-shadow: 10px 10px 25px #ccc;text-shadow: 10px 10px 25px #ccc;

Thursday, October 22, 2009

Page 5: Css3: What is the fuss about

RGBA AND OPACITYrgba: (200, 30 30, 0.2);

opacity: 0.5;

Thursday, October 22, 2009

Page 6: Css3: What is the fuss about

ANY FONT YOU LIKE@fontface {font-family:‘Museo’;src: url(‘/fonts/museo.otf’) format (‘opentype’);

Thursday, October 22, 2009

Page 7: Css3: What is the fuss about

TRANSFORM-webkit-transform: rotate(45deg);

Thursday, October 22, 2009

Page 8: Css3: What is the fuss about

GRADIENTS-webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(28, 91, 155, 0.8)),to(rgba(108, 191, 255, .9)));

Thursday, October 22, 2009

Page 9: Css3: What is the fuss about

TRANSITIONSdiv { opacity: 1; -webkit-transition: opacity 1s linear; }

div:hover { opacity: 0; }

Thursday, October 22, 2009

Page 10: Css3: What is the fuss about

MUCH MORE

Multiple Background Images

Gradient Borders

Columns Support

Masking

Text Overflow

Thursday, October 22, 2009

Page 11: Css3: What is the fuss about

PROBLEMS

2.8%3.2%

48.0%

45.9%

Firefox Internet Explorer Chrome Safari

• Only half of the users can render CSS3• Different markup between browsers

Thursday, October 22, 2009

Page 12: Css3: What is the fuss about

REMEMBER THIS?Only cause we can, doesn’t mean that we have to

Thursday, October 22, 2009

Page 13: Css3: What is the fuss about

THANKS!DavideDiCillo.com@DavideDiCillo

Thursday, October 22, 2009