SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Introduction to CSS3
What’s different about CSS3?




     1. Selectors
     2. RGBA And Opacity
     3. Multi-Column Layout
     4. Multiple Backgrounds
     5. Word Wrap
     6. Text Shadow
     7. @font-face-Attribute
     8. Border Radius
     9. Border Image
     10. Box Shadow
     11. Box Sizing
     12. Media Queries
     13. Speech


     http://coding.smashingmagazine.com/2009/06/15/take-your-design-to-the-next-level-with-css3/
CSS3
                                                          CSS




       http://trentwalton.com/examples/CSS3_Speed_Test/
1. linear-gradient
   2. border-radius
   3. radial-gradient
   4. text-shadow
   5. box-shadow with RGBa




http://coding.smashingmagazine.com/2011/04/21/css3-vs-css-a-speed-benchmark/
Selectors: Pseudo-Classes



  CSS3 provides four powerful pseudo-classes that allow the CSS designer to select
  multiple elements according to their positions in a document tree. Using these
  pseudo-classes can be a little confusing at first, but it’s easy once you get the
  hang of it. The pseudo-classes are:


  :nth-child(N)
  matches elements on the basis of their positions within a parent element’s list of child elements

  :nth-last-child(N)
  matches elements on the basis of their positions within a parent element’s list of child elements

  :nth-of-type(N)
  matches elements on the basis of their positions within a parent element’s list of child elements of the same type

  :nth-last-of-type(N)
  matches elements on the basis of their positions within a parent element’s list of child elements of the same type




                                                                     http://reference.sitepoint.com/css/understandingnthchildexpressions
Selectors: Pseudo-Classes
Selectors: Pseudo-Classes



          :last-child - matches an element that’s the last child element of its parent element
          :first-of-type - matches the first child element of the specified element type
          :last-of-type - matches the last child element of the specified element type
          :only-child - matches an element if it’s the only child element of its parent
          :only-of-type - matches an element that’s the only child element of its type
          :root - matches the element that’s the root element of the document
          :empty - matches elements that have no children
          :target - matches an element that’s the target of a fragment identifier in the document’s URI
          :enabled - matches user interface elements that are enabled
          :disabled - matches user interface elements that are disabled
          :checked Pseudo-class - matches elements like checkboxes or radio buttons that are checked
          :not(S) - matches elements that aren’t matched by the specified selector




                                                                          http://reference.sitepoint.com/css/css3psuedoclasses
Selectors: Pseudo-Classes: Browser Compatibility




                                                   http://www.quirksmode.org/css/contents.html
RGBA & Opacity




                 http://24ways.org/2009/working-with-rgba-colour
RGBA & Opacity




                 http://coding.smashingmagazine.com/2009/06/15/take-your-design-to-the-next-level-with-css3
RGBA & Opacity: Browser Compatibility




                                        http://caniuse.com/#feat=css3-colors
Cross-browser support with CSS Vendor Prefixes




    CSS vendor prefixes or CSS browser prefixes are a way for browser makers to add support for
   new CSS features in a sort of testing and experimentation period. Browser prefixes are used
   to add new features that may not be part of a formal specification and to implement features
   in a specification that hasn’t been finalized.

   The CSS browser prefixes are:    Android: -webkit-
                                    Chrome: -webkit-
                                    Firefox: -moz-
                                    Internet Explorer: -ms-
                                    iOS: -webkit-
                                    Opera: -o-
                                    Safari: -webkit-


                                                                 http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm
Cross-browser support with CSS Vendor Prefixes


  In most cases, to use a more advanced CSS style property, you take the standard CSS property and add the prefix
 above for each browser. For example, if you want to add a CSS3 transition to your document, you would use the
 transition property with the prefixes listed first:

   -webkit-transition: all 4s ease;
   -moz-transition: all 4s ease;
   -ms-transition: all 4s ease;
   -o-transition: all 4s ease;
   transition: all 4s ease;




                                                                           http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm
Cross-browser support with CSS Vendor Prefixes



       Yes, might feel annoying and repetitive to have to write the properties 2–5 times to get it to work in all
      browsers, but it’s temporary. As browsers improve, they add support for the standards based version of
      the property, and you can remove the prefixed versions. For example, just a few years ago, to set a
      rounded corner on a box you had to write:

        -moz-border-radius: 10px 5px;
        -webkit-border-top-left-radius: 10px;
        -webkit-border-top-right-radius: 5px;
        -webkit-border-bottom-right-radius: 10px;
        -webkit-border-bottom-left-radius: 5px;
        border-radius: 10px 5px;

      But now you really only need:

        -webkit-border-radius: 10 5px;
        border-radius: 10px 5px;




                                                                            http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm

Weitere ähnliche Inhalte

Andere mochten auch

Household items for sport
Household items for sportHousehold items for sport
Household items for sportCecilia Aguilar
 
Paisley Engaging young professionals in the agri food sector - strategies, le...
Paisley Engaging young professionals in the agri food sector - strategies, le...Paisley Engaging young professionals in the agri food sector - strategies, le...
Paisley Engaging young professionals in the agri food sector - strategies, le...futureagricultures
 
Improving Land Governance for Inclusive and Sustainable Agriculture Transform...
Improving Land Governance for Inclusive and Sustainable Agriculture Transform...Improving Land Governance for Inclusive and Sustainable Agriculture Transform...
Improving Land Governance for Inclusive and Sustainable Agriculture Transform...futureagricultures
 
McCrindle Research Pty Ltd
McCrindle Research Pty LtdMcCrindle Research Pty Ltd
McCrindle Research Pty Ltdjohnarthur101
 
Tadele “Last resort and often not an option at all”: youth, education and far...
Tadele “Last resort and often not an option at all”: youth, education and far...Tadele “Last resort and often not an option at all”: youth, education and far...
Tadele “Last resort and often not an option at all”: youth, education and far...futureagricultures
 
Keunggulan kepimpinan rasulullah saw
Keunggulan kepimpinan rasulullah sawKeunggulan kepimpinan rasulullah saw
Keunggulan kepimpinan rasulullah sawmohamad fairuz
 
Track2 -杨世芬--cloudena-apac-8-11-2012
Track2 -杨世芬--cloudena-apac-8-11-2012Track2 -杨世芬--cloudena-apac-8-11-2012
Track2 -杨世芬--cloudena-apac-8-11-2012OpenCity Community
 
Acids & Bases Day 1
Acids & Bases   Day 1Acids & Bases   Day 1
Acids & Bases Day 1jmori1
 
Mass, Volume and Density Labs Day 2
Mass, Volume and Density Labs Day 2Mass, Volume and Density Labs Day 2
Mass, Volume and Density Labs Day 2jmori1
 
Appeared in new york times yesterday
Appeared in new york times yesterdayAppeared in new york times yesterday
Appeared in new york times yesterdayAbhishek Saha
 
Mass, volume and density labs day 1
Mass, volume and density labs day 1Mass, volume and density labs day 1
Mass, volume and density labs day 1jmori1
 
Chuong 03. nhap du lieu
Chuong 03.  nhap du lieuChuong 03.  nhap du lieu
Chuong 03. nhap du lieuThuy Thanh
 
Colors scramble 2
Colors scramble 2Colors scramble 2
Colors scramble 2Les Davy
 
Keynote -henry xu--dell open stack powered cloud solution and case sharing-
Keynote -henry xu--dell open stack powered cloud solution and case sharing-Keynote -henry xu--dell open stack powered cloud solution and case sharing-
Keynote -henry xu--dell open stack powered cloud solution and case sharing-OpenCity Community
 
Final Cooperative Project 2012 day 5
Final Cooperative Project 2012 day 5Final Cooperative Project 2012 day 5
Final Cooperative Project 2012 day 5jmori1
 

Andere mochten auch (20)

Household items for sport
Household items for sportHousehold items for sport
Household items for sport
 
Pemodelan Geografi berbasis AHP
Pemodelan Geografi berbasis AHPPemodelan Geografi berbasis AHP
Pemodelan Geografi berbasis AHP
 
Paisley Engaging young professionals in the agri food sector - strategies, le...
Paisley Engaging young professionals in the agri food sector - strategies, le...Paisley Engaging young professionals in the agri food sector - strategies, le...
Paisley Engaging young professionals in the agri food sector - strategies, le...
 
Improving Land Governance for Inclusive and Sustainable Agriculture Transform...
Improving Land Governance for Inclusive and Sustainable Agriculture Transform...Improving Land Governance for Inclusive and Sustainable Agriculture Transform...
Improving Land Governance for Inclusive and Sustainable Agriculture Transform...
 
McCrindle Research Pty Ltd
McCrindle Research Pty LtdMcCrindle Research Pty Ltd
McCrindle Research Pty Ltd
 
Tadele “Last resort and often not an option at all”: youth, education and far...
Tadele “Last resort and often not an option at all”: youth, education and far...Tadele “Last resort and often not an option at all”: youth, education and far...
Tadele “Last resort and often not an option at all”: youth, education and far...
 
Keunggulan kepimpinan rasulullah saw
Keunggulan kepimpinan rasulullah sawKeunggulan kepimpinan rasulullah saw
Keunggulan kepimpinan rasulullah saw
 
Track2 -杨世芬--cloudena-apac-8-11-2012
Track2 -杨世芬--cloudena-apac-8-11-2012Track2 -杨世芬--cloudena-apac-8-11-2012
Track2 -杨世芬--cloudena-apac-8-11-2012
 
Acids & Bases Day 1
Acids & Bases   Day 1Acids & Bases   Day 1
Acids & Bases Day 1
 
소셜의 이해
소셜의 이해소셜의 이해
소셜의 이해
 
Mass, Volume and Density Labs Day 2
Mass, Volume and Density Labs Day 2Mass, Volume and Density Labs Day 2
Mass, Volume and Density Labs Day 2
 
Appeared in new york times yesterday
Appeared in new york times yesterdayAppeared in new york times yesterday
Appeared in new york times yesterday
 
Mass, volume and density labs day 1
Mass, volume and density labs day 1Mass, volume and density labs day 1
Mass, volume and density labs day 1
 
Lagu-lagu SM
Lagu-lagu SMLagu-lagu SM
Lagu-lagu SM
 
Chuong 03. nhap du lieu
Chuong 03.  nhap du lieuChuong 03.  nhap du lieu
Chuong 03. nhap du lieu
 
Osac2012
Osac2012Osac2012
Osac2012
 
Colors scramble 2
Colors scramble 2Colors scramble 2
Colors scramble 2
 
Keynote -henry xu--dell open stack powered cloud solution and case sharing-
Keynote -henry xu--dell open stack powered cloud solution and case sharing-Keynote -henry xu--dell open stack powered cloud solution and case sharing-
Keynote -henry xu--dell open stack powered cloud solution and case sharing-
 
Solarpower by holly
Solarpower by hollySolarpower by holly
Solarpower by holly
 
Final Cooperative Project 2012 day 5
Final Cooperative Project 2012 day 5Final Cooperative Project 2012 day 5
Final Cooperative Project 2012 day 5
 

Ähnlich wie Introduction to CSS3

So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 Evan Mullins
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS MethodologyZohar Arad
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developernariyaravi
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?Denise Jacobs
 
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!Evan Mullins
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentEvan Mullins
 
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sasschriseppstein
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web DesignClarissa Peterson
 
OOScss Architecture For Rails Apps
OOScss Architecture For Rails AppsOOScss Architecture For Rails Apps
OOScss Architecture For Rails AppsNetguru
 
It's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking ModernizrIt's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking ModernizrMichael Enslow
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sitesFelipe Lavín
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
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.comapplicake
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksNathan Smith
 
Css3 shubelal
Css3   shubelalCss3   shubelal
Css3 shubelalShub
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascripttutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascripttutorialsruby
 

Ähnlich wie Introduction to CSS3 (20)

So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developer
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?
 
Death of a Themer
Death of a ThemerDeath of a Themer
Death of a Themer
 
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
 
CSS3
CSS3CSS3
CSS3
 
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
 
OOScss Architecture For Rails Apps
OOScss Architecture For Rails AppsOOScss Architecture For Rails Apps
OOScss Architecture For Rails Apps
 
It's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking ModernizrIt's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking Modernizr
 
Css3
Css3Css3
Css3
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sites
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
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
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + Fireworks
 
Css3 shubelal
Css3   shubelalCss3   shubelal
Css3 shubelal
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
 

Mehr von hstryk

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Propertieshstryk
 
Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2hstryk
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013hstryk
 
Lesson2
Lesson2Lesson2
Lesson2hstryk
 
CSS3 Transitions
CSS3 TransitionsCSS3 Transitions
CSS3 Transitionshstryk
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorialhstryk
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovershstryk
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSShstryk
 
Lecture4
Lecture4Lecture4
Lecture4hstryk
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2hstryk
 
Tutorial1
Tutorial1Tutorial1
Tutorial1hstryk
 
Project1
Project1Project1
Project1hstryk
 
Lesson 3
Lesson 3Lesson 3
Lesson 3hstryk
 
Lesson2
Lesson2Lesson2
Lesson2hstryk
 
Lesson1
Lesson1Lesson1
Lesson1hstryk
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resumehstryk
 

Mehr von hstryk (16)

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013
 
Lesson2
Lesson2Lesson2
Lesson2
 
CSS3 Transitions
CSS3 TransitionsCSS3 Transitions
CSS3 Transitions
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
 
Lecture4
Lecture4Lecture4
Lecture4
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
 
Tutorial1
Tutorial1Tutorial1
Tutorial1
 
Project1
Project1Project1
Project1
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Lesson2
Lesson2Lesson2
Lesson2
 
Lesson1
Lesson1Lesson1
Lesson1
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resume
 

Introduction to CSS3

  • 2. What’s different about CSS3? 1. Selectors 2. RGBA And Opacity 3. Multi-Column Layout 4. Multiple Backgrounds 5. Word Wrap 6. Text Shadow 7. @font-face-Attribute 8. Border Radius 9. Border Image 10. Box Shadow 11. Box Sizing 12. Media Queries 13. Speech http://coding.smashingmagazine.com/2009/06/15/take-your-design-to-the-next-level-with-css3/
  • 3. CSS3 CSS http://trentwalton.com/examples/CSS3_Speed_Test/
  • 4. 1. linear-gradient 2. border-radius 3. radial-gradient 4. text-shadow 5. box-shadow with RGBa http://coding.smashingmagazine.com/2011/04/21/css3-vs-css-a-speed-benchmark/
  • 5. Selectors: Pseudo-Classes CSS3 provides four powerful pseudo-classes that allow the CSS designer to select multiple elements according to their positions in a document tree. Using these pseudo-classes can be a little confusing at first, but it’s easy once you get the hang of it. The pseudo-classes are: :nth-child(N) matches elements on the basis of their positions within a parent element’s list of child elements :nth-last-child(N) matches elements on the basis of their positions within a parent element’s list of child elements :nth-of-type(N) matches elements on the basis of their positions within a parent element’s list of child elements of the same type :nth-last-of-type(N) matches elements on the basis of their positions within a parent element’s list of child elements of the same type http://reference.sitepoint.com/css/understandingnthchildexpressions
  • 7. Selectors: Pseudo-Classes :last-child - matches an element that’s the last child element of its parent element :first-of-type - matches the first child element of the specified element type :last-of-type - matches the last child element of the specified element type :only-child - matches an element if it’s the only child element of its parent :only-of-type - matches an element that’s the only child element of its type :root - matches the element that’s the root element of the document :empty - matches elements that have no children :target - matches an element that’s the target of a fragment identifier in the document’s URI :enabled - matches user interface elements that are enabled :disabled - matches user interface elements that are disabled :checked Pseudo-class - matches elements like checkboxes or radio buttons that are checked :not(S) - matches elements that aren’t matched by the specified selector http://reference.sitepoint.com/css/css3psuedoclasses
  • 8. Selectors: Pseudo-Classes: Browser Compatibility http://www.quirksmode.org/css/contents.html
  • 9. RGBA & Opacity http://24ways.org/2009/working-with-rgba-colour
  • 10. RGBA & Opacity http://coding.smashingmagazine.com/2009/06/15/take-your-design-to-the-next-level-with-css3
  • 11. RGBA & Opacity: Browser Compatibility http://caniuse.com/#feat=css3-colors
  • 12. Cross-browser support with CSS Vendor Prefixes CSS vendor prefixes or CSS browser prefixes are a way for browser makers to add support for new CSS features in a sort of testing and experimentation period. Browser prefixes are used to add new features that may not be part of a formal specification and to implement features in a specification that hasn’t been finalized. The CSS browser prefixes are: Android: -webkit- Chrome: -webkit- Firefox: -moz- Internet Explorer: -ms- iOS: -webkit- Opera: -o- Safari: -webkit- http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm
  • 13. Cross-browser support with CSS Vendor Prefixes In most cases, to use a more advanced CSS style property, you take the standard CSS property and add the prefix above for each browser. For example, if you want to add a CSS3 transition to your document, you would use the transition property with the prefixes listed first: -webkit-transition: all 4s ease; -moz-transition: all 4s ease; -ms-transition: all 4s ease; -o-transition: all 4s ease; transition: all 4s ease; http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm
  • 14. Cross-browser support with CSS Vendor Prefixes Yes, might feel annoying and repetitive to have to write the properties 2–5 times to get it to work in all browsers, but it’s temporary. As browsers improve, they add support for the standards based version of the property, and you can remove the prefixed versions. For example, just a few years ago, to set a rounded corner on a box you had to write: -moz-border-radius: 10px 5px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 5px; -webkit-border-bottom-right-radius: 10px; -webkit-border-bottom-left-radius: 5px; border-radius: 10px 5px; But now you really only need: -webkit-border-radius: 10 5px; border-radius: 10px 5px; http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm