SlideShare a Scribd company logo
CSS 3
   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!

More Related Content

PPTX
CSS3 basics for beginners - Imrokraft
ODP
PPT
Getting started with html5
KEY
CSS and CSS3
PPTX
CSS3: The Next Generation Of Style
PDF
CSS3 Text Effect and Typography Tutorials
PDF
Feature Subset Selection for Automatically Classifying Anuran Calls Using Sen...
PDF
Progetto sociale
CSS3 basics for beginners - Imrokraft
Getting started with html5
CSS and CSS3
CSS3: The Next Generation Of Style
CSS3 Text Effect and Typography Tutorials
Feature Subset Selection for Automatically Classifying Anuran Calls Using Sen...
Progetto sociale

Viewers also liked (20)

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

Similar to CSS 3 (20)

PDF
Layar Tutorial - 3D Content Creation Tips & Tricks
PPTX
Presentation about html5 css3
KEY
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
PPT
CSS Methodology
PPTX
PPTX
PDF
KharkivJS: Flaws of the Web Components in 2019 and how to address them
PPTX
KEY
HTML CSS & Javascript
PPTX
Css3 shubelal
PPT
CSS3 and a brief introduction to Google Maps API v3
PPTX
CSS 3 Overview
PPTX
Boilerplates: Step up your Web Development Process
PPT
CSS3 : Animation ,Transitions, Gradients
PDF
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
PDF
CSS-3 Course Slide
PDF
Css3 transitions and animations + graceful degradation with jQuery
PDF
Organize Your Website With Advanced CSS Tricks
PPT
Creating Visual Effects and Animation
Layar Tutorial - 3D Content Creation Tips & Tricks
Presentation about html5 css3
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
CSS Methodology
KharkivJS: Flaws of the Web Components in 2019 and how to address them
HTML CSS & Javascript
Css3 shubelal
CSS3 and a brief introduction to Google Maps API v3
CSS 3 Overview
Boilerplates: Step up your Web Development Process
CSS3 : Animation ,Transitions, Gradients
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
CSS-3 Course Slide
Css3 transitions and animations + graceful degradation with jQuery
Organize Your Website With Advanced CSS Tricks
Creating Visual Effects and Animation
Ad

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The AUB Centre for AI in Media Proposal.docx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Digital-Transformation-Roadmap-for-Companies.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
MIND Revenue Release Quarter 2 2025 Press Release
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Agricultural_Statistics_at_a_Glance_2022_0.pdf
sap open course for s4hana steps from ECC to s4
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Big Data Technologies - Introduction.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

CSS 3

  • 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!