SlideShare une entreprise Scribd logo
1  sur  22
   CSS 3 Stands for Cascading Style Sheets Level
    3.
   CSS 3 is actually not a replacement for CSS2.
   CSS 3 is actually an extension to the CSS 2.1
    specification which was published May 1998.
   CSS 3 work began around the time the CSS 2
    specification was published for
    recommendation.
   Some of the earliest drafts were published June
    1999.
 CSS 3 will extend the CSS 2.1 standard with
  smaller specification documents called
  “Modules.”
 The Good News: This overly preserves
  backward compatibility with CSS 2.1. All
  the features that are in CSS 2.1 will be in CSS
  3.
 The Bad News: Browsers can pick and
  choose which modules they want to adopt.
  This creates a more chaotic development
  environment and therefore slower adoption
  rate.
   Different Modules have different adoption rates.
   Some have been pushed for recommendation by
    the W3C, some have been dropped entirely.
   It is recommended to stay with W3C Recommended
    (REC), Proposed Recommended (PR), and
    Candidate Recommended (CR) modules for
    production environments.
   Working drafts and Announcements should be
    reconsidered for implementation into any
    environment due to the early nature and instability
    across browsers at this time.
   One important thing to remember: just because a
    module has been pushed for recommendation,
    doesn’t mean a browser will automatically adopt it.
   Alternate Row Styling
    › :nth-child , :first-of-type, :last-of-type
   Examples
    ›   Every odd element - :nth-child(odd)
    ›   Every even element - :nth-child(even)
    ›   Every third element - :nth-child(3n)
    ›   Third element only - nth-child(3)
    ›   First Two elements - :nth-child(-n+2)
    ›   Last two elements - :nth-last-child(-n+2)
    ›   Everything but first and last elements - :not(:first-
        of-type):not(:last-of-type)
 Allows you to set conditional styles based
  upon element attributes
 Examples
    › [att^=val] – Represents an element with the att
      attribute whose value begins with the ‘val’
      prefix.
    › [att$=val] - Represents an element with the att
      attribute whose value ends with the ‘val’ suffix.
    › [att*=val] - Represents an element with the att
      attribute whose value contains at least one
      instance of the substring ‘val’.
   :rgba
    › RGB is already part of the CSS 2.1 spec, but
     the new addition is the „a‟. It stands for
     alpha. It allows you to set the opacity of the
     particular element in question.
   :hsl & :hsla
    › Along with RGB, you can now use Hue,
      Saturation, and Lightness values.
   opacity:
    › Allows you to set the opacity of an element.
   Opacity or RGBA?
    › The opacity effect can be achieved with
     both opacity and rgba. The key difference is
     the opacity value sets for the element and
     all of it‟s children. Rgba only sets the alpha
     level of its current element.
   Multiple Backgrounds
    › You can now specify multiple background
      images in an element.
    › Examples
       background-image: url(image-1.png),
        url(image-2.png);
       background-position: center bottom, left top;
   background-size:
    › Allows you to specify the size of the
     background image in question
   border-image:
    › Allows you to create image borders around
     your elements.
   border-radius:
    › Allows you to create rounded corners in your
      elements
   box-shadow:
    › Allows you to create a drop shadow effect
     on your elements.
   Allows you to change styles of elements based
    the width and height of the viewport.
   This allows you to dynamically change the style
    of your page without changing the content.
   This will enable singular development across
    devices, including mobile, by dynamically
    changing how the style displays based upon
    minimum and maximum widths of the viewport.
    › @media all and (min-width: ) {…}
    › @media all and (max-width: ) {…}
   There are also several „Profiles‟ designed
    to suit different media.
    › Print – Widely adopted. (LC) status.
    › TV Profile – Meant to address the color
      specifications tailored to the needs and
      constraints of TV devices. (CR Status).
    › Mobile Profile – Aimed at achieving
      interoperability between full and constrained
      mobile devices. (LC Status).
   Be weary of any module below
    Candidate Recommendation in a
    Production Environment.
   Think Progressive Enhancement
    › Website and app visuals that are critical to
     the user experience should not be
     dependent on CSS3. CSS3 should be used to
     enrich and enhance an already fully-
     functional experience.
   Use Fallbacks
    › Be sure to list the most important elements
      first, so it serves as the fallback.
    › Use alternate style sheets for different
      browsers or browser-specific syntax as a
      fallback when appropriate.
   Modernizr
    › Modernizr is a javascript library that allows
      you to use the features of HTML5 and CSS 3
      while not sacrificing the compatibility of
      older browsers.
    › It is a great starting point for developers who
      have projects or clients that “require” a
      newer feature but still want to maintain
      backward compatibility.
 This is by no means an exhaustive list of
  everything CSS 3 can do.
 The development is gaining momentum,
  so be sure to look for changes, new
  modules, and enhancements in the
  coming months.
 I encourage you to try out some of the
  new features in CSS 3. You will be very
  surprised at how far it has come.
 Thanks for listening!

Contenu connexe

En vedette

Pendle kitchens
Pendle kitchensPendle kitchens
Pendle kitchens
alf16870
 
Year 12 Introduction to 6th Form 2012 2013
Year 12 Introduction to 6th Form 2012 2013Year 12 Introduction to 6th Form 2012 2013
Year 12 Introduction to 6th Form 2012 2013
axc55
 
UMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕES
UMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕESUMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕES
UMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕES
UFAM - Universidade Federal do Amazonas
 
Power pointpsyc380chapter12010
Power pointpsyc380chapter12010Power pointpsyc380chapter12010
Power pointpsyc380chapter12010
rashmil105
 
Dokumen standard kssr matematik tahun 1 sk (1)
Dokumen standard kssr matematik tahun 1  sk (1)Dokumen standard kssr matematik tahun 1  sk (1)
Dokumen standard kssr matematik tahun 1 sk (1)
Leong Lee
 
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebHTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
Robert Nyman
 

En vedette (20)

Data Loading With Magento
Data Loading With MagentoData Loading With Magento
Data Loading With Magento
 
Drupal commerce + search api (solr)
Drupal commerce + search api (solr)Drupal commerce + search api (solr)
Drupal commerce + search api (solr)
 
Pendle kitchens
Pendle kitchensPendle kitchens
Pendle kitchens
 
Year 12 Introduction to 6th Form 2012 2013
Year 12 Introduction to 6th Form 2012 2013Year 12 Introduction to 6th Form 2012 2013
Year 12 Introduction to 6th Form 2012 2013
 
PaginLIbro Totò di Alberto De Marco Duilio Paoluzzi "Antonio De Curtis Il Gra...
PaginLIbro Totò di Alberto De Marco Duilio Paoluzzi "Antonio De Curtis Il Gra...PaginLIbro Totò di Alberto De Marco Duilio Paoluzzi "Antonio De Curtis Il Gra...
PaginLIbro Totò di Alberto De Marco Duilio Paoluzzi "Antonio De Curtis Il Gra...
 
Sixth form yr 11 evening internal students
Sixth form yr 11 evening internal studentsSixth form yr 11 evening internal students
Sixth form yr 11 evening internal students
 
UMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕES
UMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕESUMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕES
UMA ABORDAGEM PARA CLASSIFICAÇÃO DE ANUROS BASEADA EM VOCALIZAÇÕES
 
Carabinieri d'Italia Magazine
Carabinieri d'Italia MagazineCarabinieri d'Italia Magazine
Carabinieri d'Italia Magazine
 
Tamang Pagtingin sa Sarili (Healthy Self-Image)
Tamang Pagtingin sa Sarili (Healthy Self-Image)Tamang Pagtingin sa Sarili (Healthy Self-Image)
Tamang Pagtingin sa Sarili (Healthy Self-Image)
 
Comparison of Top CMS Systems
Comparison of Top CMS SystemsComparison of Top CMS Systems
Comparison of Top CMS Systems
 
Power pointpsyc380chapter12010
Power pointpsyc380chapter12010Power pointpsyc380chapter12010
Power pointpsyc380chapter12010
 
Dokumen standard kssr matematik tahun 1 sk (1)
Dokumen standard kssr matematik tahun 1  sk (1)Dokumen standard kssr matematik tahun 1  sk (1)
Dokumen standard kssr matematik tahun 1 sk (1)
 
Solr site search makes shopping simple
Solr site search makes shopping simpleSolr site search makes shopping simple
Solr site search makes shopping simple
 
Magento 2 Workflows
Magento 2 WorkflowsMagento 2 Workflows
Magento 2 Workflows
 
Introduction to Japan
Introduction to JapanIntroduction to Japan
Introduction to Japan
 
Start Your Search Engines: Optimizing Solr to Improve Results
Start Your Search Engines: Optimizing Solr to Improve ResultsStart Your Search Engines: Optimizing Solr to Improve Results
Start Your Search Engines: Optimizing Solr to Improve Results
 
Html 5 and css 3
Html 5 and css 3Html 5 and css 3
Html 5 and css 3
 
Css 3 checklist
Css 3 checklistCss 3 checklist
Css 3 checklist
 
The beginners guide to web hosting
The beginners guide to web hostingThe beginners guide to web hosting
The beginners guide to web hosting
 
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebHTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
 

Similaire à CSS 3

CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
Zohar Arad
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
Andrea Verlicchi
 

Similaire à CSS 3 (20)

Layar Tutorial - 3D Content Creation Tips & Tricks
Layar Tutorial - 3D Content Creation Tips & TricksLayar Tutorial - 3D Content Creation Tips & Tricks
Layar Tutorial - 3D Content Creation Tips & Tricks
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
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 Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
Html5
Html5Html5
Html5
 
Css3
Css3Css3
Css3
 
KharkivJS: Flaws of the Web Components in 2019 and how to address them
KharkivJS: Flaws of the Web Components in 2019 and how to address themKharkivJS: Flaws of the Web Components in 2019 and how to address them
KharkivJS: Flaws of the Web Components in 2019 and how to address them
 
Css3
Css3Css3
Css3
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
 
Css3 shubelal
Css3   shubelalCss3   shubelal
Css3 shubelal
 
Css 3 session1
Css 3 session1Css 3 session1
Css 3 session1
 
CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3 CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3
 
CSS 3 Overview
CSS 3 OverviewCSS 3 Overview
CSS 3 Overview
 
Boilerplates: Step up your Web Development Process
Boilerplates: Step up your Web Development ProcessBoilerplates: Step up your Web Development Process
Boilerplates: Step up your Web Development Process
 
CSS3 : Animation ,Transitions, Gradients
CSS3 : Animation ,Transitions, GradientsCSS3 : Animation ,Transitions, Gradients
CSS3 : Animation ,Transitions, Gradients
 
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages ApplicationsIBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
 
CSS-3 Course Slide
CSS-3 Course SlideCSS-3 Course Slide
CSS-3 Course Slide
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Creating Visual Effects and Animation
Creating Visual Effects and AnimationCreating Visual Effects and Animation
Creating Visual Effects and Animation
 

Dernier

Dernier (20)

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...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
[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
 

CSS 3

  • 1.
  • 2. CSS 3 Stands for Cascading Style Sheets Level 3.  CSS 3 is actually not a replacement for CSS2.  CSS 3 is actually an extension to the CSS 2.1 specification which was published May 1998.  CSS 3 work began around the time the CSS 2 specification was published for recommendation.  Some of the earliest drafts were published June 1999.
  • 3.  CSS 3 will extend the CSS 2.1 standard with smaller specification documents called “Modules.”  The Good News: This overly preserves backward compatibility with CSS 2.1. All the features that are in CSS 2.1 will be in CSS 3.  The Bad News: Browsers can pick and choose which modules they want to adopt. This creates a more chaotic development environment and therefore slower adoption rate.
  • 4. Different Modules have different adoption rates.  Some have been pushed for recommendation by the W3C, some have been dropped entirely.  It is recommended to stay with W3C Recommended (REC), Proposed Recommended (PR), and Candidate Recommended (CR) modules for production environments.  Working drafts and Announcements should be reconsidered for implementation into any environment due to the early nature and instability across browsers at this time.  One important thing to remember: just because a module has been pushed for recommendation, doesn’t mean a browser will automatically adopt it.
  • 5. Alternate Row Styling › :nth-child , :first-of-type, :last-of-type  Examples › Every odd element - :nth-child(odd) › Every even element - :nth-child(even) › Every third element - :nth-child(3n) › Third element only - nth-child(3) › First Two elements - :nth-child(-n+2) › Last two elements - :nth-last-child(-n+2) › Everything but first and last elements - :not(:first- of-type):not(:last-of-type)
  • 6.  Allows you to set conditional styles based upon element attributes  Examples › [att^=val] – Represents an element with the att attribute whose value begins with the ‘val’ prefix. › [att$=val] - Represents an element with the att attribute whose value ends with the ‘val’ suffix. › [att*=val] - Represents an element with the att attribute whose value contains at least one instance of the substring ‘val’.
  • 7. :rgba › RGB is already part of the CSS 2.1 spec, but the new addition is the „a‟. It stands for alpha. It allows you to set the opacity of the particular element in question.
  • 8. :hsl & :hsla › Along with RGB, you can now use Hue, Saturation, and Lightness values.
  • 9. opacity: › Allows you to set the opacity of an element.
  • 10. Opacity or RGBA? › The opacity effect can be achieved with both opacity and rgba. The key difference is the opacity value sets for the element and all of it‟s children. Rgba only sets the alpha level of its current element.
  • 11. Multiple Backgrounds › You can now specify multiple background images in an element. › Examples  background-image: url(image-1.png), url(image-2.png);  background-position: center bottom, left top;
  • 12. background-size: › Allows you to specify the size of the background image in question
  • 13. border-image: › Allows you to create image borders around your elements.
  • 14. border-radius: › Allows you to create rounded corners in your elements
  • 15. box-shadow: › Allows you to create a drop shadow effect on your elements.
  • 16. Allows you to change styles of elements based the width and height of the viewport.  This allows you to dynamically change the style of your page without changing the content.  This will enable singular development across devices, including mobile, by dynamically changing how the style displays based upon minimum and maximum widths of the viewport. › @media all and (min-width: ) {…} › @media all and (max-width: ) {…}
  • 17. There are also several „Profiles‟ designed to suit different media. › Print – Widely adopted. (LC) status. › TV Profile – Meant to address the color specifications tailored to the needs and constraints of TV devices. (CR Status). › Mobile Profile – Aimed at achieving interoperability between full and constrained mobile devices. (LC Status).
  • 18. Be weary of any module below Candidate Recommendation in a Production Environment.
  • 19. Think Progressive Enhancement › Website and app visuals that are critical to the user experience should not be dependent on CSS3. CSS3 should be used to enrich and enhance an already fully- functional experience.
  • 20. Use Fallbacks › Be sure to list the most important elements first, so it serves as the fallback. › Use alternate style sheets for different browsers or browser-specific syntax as a fallback when appropriate.
  • 21. Modernizr › Modernizr is a javascript library that allows you to use the features of HTML5 and CSS 3 while not sacrificing the compatibility of older browsers. › It is a great starting point for developers who have projects or clients that “require” a newer feature but still want to maintain backward compatibility.
  • 22.  This is by no means an exhaustive list of everything CSS 3 can do.  The development is gaining momentum, so be sure to look for changes, new modules, and enhancements in the coming months.  I encourage you to try out some of the new features in CSS 3. You will be very surprised at how far it has come.  Thanks for listening!