SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
CSS 3  Overview  SyniatkinViacheslav Sevastopol 29 October 2010
Today’s website ,[object Object]
Fancy eye-catching designsThe modern web page is sometimes like a book, sometimes like an application, sometimes like an extension of your TV. Current web languages were never designed to do this. The web has arrived where it is today despite of the current standards and not because of them.
Content Short excursion into the historical domain Overview of CSS 3 Conclusion Some useful references
CSS : development history The first CSS specification to become an official W3C Recommendation is  CSS level 1, published in December 1996.Among its capabilities are support for: ,[object Object]
 Color of text, backgrounds, and other elements
 Text attributes such as spacing between words, letters, and lines of text
 Alignment of text, images, tables and other elements
 Margin, border, padding, and positioning for most elements
 Unique identification and generic classification of groups of attributesCSS level 2 was developed by the W3C and published as a Recommendation in May 1998 and:  includes a number of new capabilities; removes poorly-supported features and adds already-implemented browser extensions to the specification.
CSS level 3 : Overview ,[object Object]
Each module is recommended separately
Several modules are already considered stable and will probably not change in the future
Many are already implemented in current browsers
www.w3.org/Style/CSS/current-work gives the state of each module,[object Object]
        Browser support for CSS3: Selectors
CSS 3 Selectors
CSS 3 Selectors : not    The negation pseudo-class, :not(X), is a functional notation taking a simple selector […] as an argument. It represents an element that is not represented by the argument.
CSS 3 Selectors : nth-child nth-child  pseudo-class matches elements on the basis of their positions within a parent element’s list of child elements.  This pseudo-class accepts an argument, N, which can be a keyword, a number, or a number expression of the form an+b.            :nth-child( { number expression | odd | even } ) {declaration block}
CSS 3 Selectors : disabled Disabled matches user interface elements that are disabled.  An element is disabled when it can’t be activated or accept focus—this often means the element can’t be selected, be clicked on, or accept text input, although it could do so if it was in an enabled state. :disabled {declaration block}
CSS 3 Selectors : checked Checked pseudo-class matches elements like checkboxes or radio buttons that are checked or toggled to the “on” state.  In HTML, this state corresponds to theselected and checked attributes. :checked {declaration block}
CSS 3 Selectors : first-of-type First-of-type pseudo-class matches the first child element of the specified element type. :first-of-type {declaration block}
CSS 3 Properties
CSS 3 Properties : border-radius It’s simple to make rounded corners. The css-code to do it is shown below(for different types of browsers). border-radius: 50px; -moz-border-radius: 50px; -webkit-border-radius: 50px; ,[object Object]
The bigger the value or the radius, the more curvy and larger are the rounded corners
Much simpler than using CSS 2 (no background images etc. needed),[object Object]
CSS 3 Properties : box-reflect Description Defines  a reflection of a border box Syntax -webkit-box-reflect: directionoffsetmask-box-image Parameters ,[object Object],     The position of the reflection relative to the border box. Can            be above, below, left, or right.                                                  ,[object Object],      The distance of the reflection from the edge of the border box, in        length units or as a percentage. The default value is 0. ,[object Object],      Used to overlay the reflection. If omitted, the reflection has no        mask. Here is an example of  text shadow effect and box reflection

Weitere ähnliche Inhalte

Ähnlich wie Css 3 overview

CSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - ImrokraftCSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - Imrokraftimrokraft
 
CSS-3 Course Slide
CSS-3 Course SlideCSS-3 Course Slide
CSS-3 Course SlideBoneyGawande
 
3-CSS_essentials.ppt
3-CSS_essentials.ppt3-CSS_essentials.ppt
3-CSS_essentials.pptdatapro2
 
3-CSS_essentials_developers_begineers.ppt
3-CSS_essentials_developers_begineers.ppt3-CSS_essentials_developers_begineers.ppt
3-CSS_essentials_developers_begineers.pptmohamed abd elrazek
 
3-CSS_essentials.ppt
3-CSS_essentials.ppt3-CSS_essentials.ppt
3-CSS_essentials.pptscet315
 
Web Programming& Scripting Lab
Web Programming& Scripting LabWeb Programming& Scripting Lab
Web Programming& Scripting LabSwapnali Pawar
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Binu Paul
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS MethodologyZohar Arad
 
Concept of CSS part 2
Concept of CSS part 2Concept of CSS part 2
Concept of CSS part 2SURBHI SAROHA
 
Web technology unit II
Web technology unit IIWeb technology unit II
Web technology unit IIMURALI ERASA
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designersSingsys Pte Ltd
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSSHemant Patidar
 
Css3 shubelal
Css3   shubelalCss3   shubelal
Css3 shubelalShub
 

Ähnlich wie Css 3 overview (20)

CSS 3 Overview
CSS 3 OverviewCSS 3 Overview
CSS 3 Overview
 
CSS3
CSS3CSS3
CSS3
 
Css3
Css3Css3
Css3
 
CSS 3
CSS 3CSS 3
CSS 3
 
CSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - ImrokraftCSS3 basics for beginners - Imrokraft
CSS3 basics for beginners - Imrokraft
 
CSS-3 Course Slide
CSS-3 Course SlideCSS-3 Course Slide
CSS-3 Course Slide
 
Css
CssCss
Css
 
3-CSS_essentials.ppt
3-CSS_essentials.ppt3-CSS_essentials.ppt
3-CSS_essentials.ppt
 
3-CSS_essentials_developers_begineers.ppt
3-CSS_essentials_developers_begineers.ppt3-CSS_essentials_developers_begineers.ppt
3-CSS_essentials_developers_begineers.ppt
 
3-CSS_essentials.ppt
3-CSS_essentials.ppt3-CSS_essentials.ppt
3-CSS_essentials.ppt
 
Web Programming& Scripting Lab
Web Programming& Scripting LabWeb Programming& Scripting Lab
Web Programming& Scripting Lab
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
CSS - Basics
CSS - BasicsCSS - Basics
CSS - Basics
 
Concept of CSS part 2
Concept of CSS part 2Concept of CSS part 2
Concept of CSS part 2
 
Web technology unit II
Web technology unit IIWeb technology unit II
Web technology unit II
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Css3 shubelal
Css3   shubelalCss3   shubelal
Css3 shubelal
 

Mehr von dotNETUserGroupDnipro (9)

Sonar quality
Sonar qualitySonar quality
Sonar quality
 
Mercurial presentation
Mercurial presentationMercurial presentation
Mercurial presentation
 
Rx for .net
Rx for .netRx for .net
Rx for .net
 
Winmobile
WinmobileWinmobile
Winmobile
 
Soft serve prism
Soft serve prismSoft serve prism
Soft serve prism
 
Html5
Html5Html5
Html5
 
Erp microsoft dynamics
Erp microsoft dynamicsErp microsoft dynamics
Erp microsoft dynamics
 
Mvc3
Mvc3Mvc3
Mvc3
 
Azure for ug
Azure for ugAzure for ug
Azure for ug
 

Css 3 overview

  • 1. CSS 3 Overview SyniatkinViacheslav Sevastopol 29 October 2010
  • 2.
  • 3. Fancy eye-catching designsThe modern web page is sometimes like a book, sometimes like an application, sometimes like an extension of your TV. Current web languages were never designed to do this. The web has arrived where it is today despite of the current standards and not because of them.
  • 4. Content Short excursion into the historical domain Overview of CSS 3 Conclusion Some useful references
  • 5.
  • 6. Color of text, backgrounds, and other elements
  • 7. Text attributes such as spacing between words, letters, and lines of text
  • 8. Alignment of text, images, tables and other elements
  • 9. Margin, border, padding, and positioning for most elements
  • 10. Unique identification and generic classification of groups of attributesCSS level 2 was developed by the W3C and published as a Recommendation in May 1998 and: includes a number of new capabilities; removes poorly-supported features and adds already-implemented browser extensions to the specification.
  • 11.
  • 12. Each module is recommended separately
  • 13. Several modules are already considered stable and will probably not change in the future
  • 14. Many are already implemented in current browsers
  • 15.
  • 16. Browser support for CSS3: Selectors
  • 18. CSS 3 Selectors : not The negation pseudo-class, :not(X), is a functional notation taking a simple selector […] as an argument. It represents an element that is not represented by the argument.
  • 19. CSS 3 Selectors : nth-child nth-child pseudo-class matches elements on the basis of their positions within a parent element’s list of child elements. This pseudo-class accepts an argument, N, which can be a keyword, a number, or a number expression of the form an+b.  :nth-child( { number expression | odd | even } ) {declaration block}
  • 20. CSS 3 Selectors : disabled Disabled matches user interface elements that are disabled. An element is disabled when it can’t be activated or accept focus—this often means the element can’t be selected, be clicked on, or accept text input, although it could do so if it was in an enabled state. :disabled {declaration block}
  • 21. CSS 3 Selectors : checked Checked pseudo-class matches elements like checkboxes or radio buttons that are checked or toggled to the “on” state. In HTML, this state corresponds to theselected and checked attributes. :checked {declaration block}
  • 22. CSS 3 Selectors : first-of-type First-of-type pseudo-class matches the first child element of the specified element type. :first-of-type {declaration block}
  • 24.
  • 25. The bigger the value or the radius, the more curvy and larger are the rounded corners
  • 26.
  • 27.
  • 28. CSS 3 Properties : box-shadow Description The box-shadow property attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional inset keyword. Omitted lengths are 0; omitted colors are a UA-chosen color. Here is a code example: -webkit-box-shadow: inset 0px 3px 20px 3px #f00, 3px 10px The inset keyword, if present, changes the drop shadow from an outer shadow  to an inner shadow
  • 29.
  • 30. First declare the font:@font-face { font-family: Calluna; src: url('Calluna-Regular.otf');}
  • 31.
  • 32.
  • 33. Express in terms of number of columns or width.
  • 34.
  • 35.
  • 36.
  • 37. CSS 3 : Variables One more innovation in CSS 3 is variables. Here is the simple syntax to declare variable: @variables { keyColor: #f00; } And then you can use it anywhere in CSS: h1 { color: var(keyColor); }
  • 38. Conclusion CSS 3 bring many great features as well as fixing problems with the existing implementations CSS 3 will make it easier to achieve real world designs and layouts http://www.romancortes.com/blog/pure-css-coke-can/ http://www.addyosmani.com/resources/googlebox/
  • 39. Some resources User’s guide with examles of css and html (http://htmlbook.ru/ ) Front-end development secrets and fundamentals (http://www.xiper.net/) Collection of CSS-projects (http://www.zurb.com/playground/osx-dock) Css3 news (http://www.css3.info/)