SlideShare a Scribd company logo
CSS3
Shubelal kumar
− Introduction of CSS3?
− New Selector?
− Fonts
− Pseudo-Classes
− Transformation (Rotate, Resize…etc)
− Animation (Fade In/Fade Out)
− Media Queries
− Cross Browser Compatibility
Topics
Agenda for CSS3
− CSS is used to control the style and layout of Web pages.
− CSS3 is the latest standard for CSS.
− CSS (Cascading Style Sheets) is a language which describes how a
document written in a markup language looks and how it is formatted. Giving
layout, colors and fonts to a document and its elements can change how your
website looks and how people think about it. CSS has evolved over time from
CSS1 to CSS2 (which is the current standard) to CSS3 (which is still in
development). Modern browser support CSS1 and CSS2 but for CSS3 the
support is still limited.
Introduction of CSS3?
The CSS3 Selectors module introduces three new attribute selectors, which are
grouped together under the heading “Substring Matching Attribute Selectors”.
These new selectors are as follows:
[att^=val] – the “begins with” selector
[att$=val] – the “ends with” selector
[att*=val] – the “contains” selector
CSS3 Attribute Selectors
− translate()
− rotate()
− scale()
− skew()
− matrix()
Transformation
<style>
div
{
width:200px;
height:100px;
background-color:yellow;
/* Rotate div */
transform:rotate(30deg);
-ms-transform:rotate(30deg); /* IE 9 */
-webkit-transform:rotate(30deg); /* Safari and Chrome */
-moz-transform:rotate(30deg); /* Firefox */
}
</style>
<body>
<div>Hello</div>
</body>
Animation (Fade In/Fade Out)
he CSS3 Transitions module introduces a number of properties which together can
be used to specify: the CSS property (or properties) to be transitioned; the
duration of the transition; the timing function of the transition; and an optional
delay.
These properties are as follows:
transition-property
transition-duration
transition-timing-function
transition-delay
Live Demo
With CSS3, you can create rounded borders, add shadow to boxes, and use an image
as a border - without using a design program, like Photoshop.
− border-radius
− box-shadow
− border-image
CSS3 Borders
CSS3 Borders Examples
<style>
div
{
width:300px;
height:100px;
border:2px solid;
border-radius:25px;
background-color:#890000;
box-shadow: 10px 10px 5px #888888;
}
</style>
Box shadow
Live Demo
In the new @font-face rule you must first define a name for the font (e.g.
myFirstFont), and then point to the font file.
− Internet Explorer 9+, Firefox, Chrome, Safari, and Opera support the WOFF (Web
Open Font Format) font.
− Firefox, Chrome, Safari, and Opera support fonts of type TTF (True Type Fonts) and
OTF (OpenType Fonts).
− Chrome, Safari and Opera also support SVG fonts/shapes.
− Internet Explorer also supports EOT (Embedded OpenType) fonts.
Note: Internet Explorer 8 and earlier versions, do not support the @font-face rule.
The CSS3 Font Rule
Live Demo
@font-face Rule
@font-face
{
font-family: myFirstFont;
src: url(sansation_light.woff);
}
@font-face
{
font-family: myFirstFont;
src: url(sansation_bold.woff);
font-weight:bold;
}
Pseudo-Classes
:root - Selects the element that is at the root of the document. Almost certainly will select the
<html> element, unless you are specifically working in some weird environment that somehow
also allows CSS. Perhaps XML.
:first-child - Selects the first element of its type within a parent.
:last-child - Selects the last element of its type within a parent.
:nth-child(N) - Selects elements based on a simple provided algebraic expression (e.g. "2n" or
"4n-1"). Has the ability to do things like select even/odd elements, "every third", "the first five",
and things like that. Covered in more detail here with a tester tool.
:nth-of-type(N) - Works like :nth-child, but used in places where the elements at the same
level are of different types. Like if inside a div you had a number of paragraphs and a
number of images. You wanted to select all the odd images.
Pseudo-Classes continue…
:nth-child won't work there, you'd use div img:nth-of-type(odd). Particularly useful when working
with definition lists and their alternating <dt> and <dd> elements.
:first-of-type - Selects the first element of this type within any parent. So if you have two divs, each
had within it a paragraph, image, paragraph, image. Then div img:first-of-type would select the first
image inside the first div and the first image inside the second div.
:last-of-type - Same as above, only would select the last image inside the first div and the last
image inside the second div.
:nth-last-of-type(N) - Works like :nth-of-type, but it counts up from the bottom instead of the top.
:nth-last-child(N) - Works like :nth-child, but it counts up from the bottom instead of the top.
:only-of-type - Selects only if the element is the only one of its kind within the current parent.
Pseudo-Classes
− This new CSS3 selector lets you achieve multi-column layouts without having to use
multiple divs. The browser interprets the properties and create the columns, giving
the text a newspaper-like flow.
Multi-Column Layout
.index #content div {
-webkit-column-count : 4;
-webkit-column-gap : 20px;
-moz-column-count : 4;
-moz-column-gap : 20px; }
div { column-rule: 1px solid #00000; }
Multi-Column Layout Example
Live Demo
− Media queries allow the page to use different CSS style rules based on
characteristics of the device the site is being displayed on, most commonly the width
of the browser.
Media Queries
<meta name=”viewport” content=”width:device-width”>
Live Demo
Cross Browser Compatibility
Cross Browser Compatibility
Cross Browser Compatibility
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br />
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br />
<![endif]-->
CSS3
− http://css3-tutorial.com/
− http://www.w3schools.com/css3/
− http://net.tutsplus.com/tutorials/html-css-techniques/11-classic-css-techniques-made-simple-with-css3/
− http://www.css3.info/
− http://webdesignerwall.com/
Reference
Questions?
Thank you

More Related Content

What's hot

FFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSSFFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSS
Toni Kolev
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
Russ Weakley
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
Zohar Arad
 
OOP CSS Presenation
OOP CSS PresenationOOP CSS Presenation
OOP CSS Presenation
RobotDeathSquad
 
FFW Gabrovo PMG - jQuery
FFW Gabrovo PMG - jQueryFFW Gabrovo PMG - jQuery
FFW Gabrovo PMG - jQuery
Toni Kolev
 
FFW Gabrovo PMG - JavaScript 1
FFW Gabrovo PMG - JavaScript 1FFW Gabrovo PMG - JavaScript 1
FFW Gabrovo PMG - JavaScript 1
Toni Kolev
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
Jalpesh Vasa
 
Basic css
Basic cssBasic css
Basic css
Gopinath Ambothi
 
Css3
Css3Css3
Hardcore CSS
Hardcore CSSHardcore CSS
Hardcore CSS
PDX Web & Design
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
Sohail Christoper
 
CSS
CSSCSS
CSS - Basics
CSS - BasicsCSS - Basics
CSS - Basics
Shubham_Saurabh
 

What's hot (13)

FFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSSFFW Gabrovo PMG - CSS
FFW Gabrovo PMG - CSS
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
OOP CSS Presenation
OOP CSS PresenationOOP CSS Presenation
OOP CSS Presenation
 
FFW Gabrovo PMG - jQuery
FFW Gabrovo PMG - jQueryFFW Gabrovo PMG - jQuery
FFW Gabrovo PMG - jQuery
 
FFW Gabrovo PMG - JavaScript 1
FFW Gabrovo PMG - JavaScript 1FFW Gabrovo PMG - JavaScript 1
FFW Gabrovo PMG - JavaScript 1
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
 
Basic css
Basic cssBasic css
Basic css
 
Css3
Css3Css3
Css3
 
Hardcore CSS
Hardcore CSSHardcore CSS
Hardcore CSS
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
CSS
CSSCSS
CSS
 
CSS - Basics
CSS - BasicsCSS - Basics
CSS - Basics
 

Similar to Css3 shubelal

Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
Usman Mehmood
 
Rh10 css presentation
Rh10 css presentationRh10 css presentation
Rh10 css presentation
Neil Perlin
 
Rh10 css presentation
Rh10 css presentationRh10 css presentation
Rh10 css presentation
Neil Perlin
 
Css and its future
Css and its futureCss and its future
Css and its future
Alex Bondarev
 
CSS 3
CSS 3CSS 3
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
hstryk
 
CSS 3
CSS 3CSS 3
Learn css3
Learn css3Learn css3
Learn css3
Mostafa Bayomi
 
CSS 3 Overview
CSS 3 OverviewCSS 3 Overview
CSS 3 Overview
Danilo Sousa
 
Css3
Css3Css3
Chapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSSChapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSS
Dr. Ahmed Al Zaidy
 
Web Programming& Scripting Lab
Web Programming& Scripting LabWeb Programming& Scripting Lab
Web Programming& Scripting Lab
Swapnali Pawar
 
html5_css3
html5_css3html5_css3
To create a web service
To create a web serviceTo create a web service
To create a web service
Paneliya Prince
 
Formatting text with CSS
Formatting text with CSSFormatting text with CSS
Formatting text with CSS
Nicole Ryan
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI Developers
Darren Gideon
 
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStartIntro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Scott DeLoach
 
Css3 101
Css3 101Css3 101
Css3 101
Ignacio Coloma
 
HTML5 for the Flash Developer
HTML5 for the Flash DeveloperHTML5 for the Flash Developer
HTML5 for the Flash Developer
DevelopmentArc LLC
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A
 

Similar to Css3 shubelal (20)

Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
 
Rh10 css presentation
Rh10 css presentationRh10 css presentation
Rh10 css presentation
 
Rh10 css presentation
Rh10 css presentationRh10 css presentation
Rh10 css presentation
 
Css and its future
Css and its futureCss and its future
Css and its future
 
CSS 3
CSS 3CSS 3
CSS 3
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
CSS 3
CSS 3CSS 3
CSS 3
 
Learn css3
Learn css3Learn css3
Learn css3
 
CSS 3 Overview
CSS 3 OverviewCSS 3 Overview
CSS 3 Overview
 
Css3
Css3Css3
Css3
 
Chapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSSChapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSS
 
Web Programming& Scripting Lab
Web Programming& Scripting LabWeb Programming& Scripting Lab
Web Programming& Scripting Lab
 
html5_css3
html5_css3html5_css3
html5_css3
 
To create a web service
To create a web serviceTo create a web service
To create a web service
 
Formatting text with CSS
Formatting text with CSSFormatting text with CSS
Formatting text with CSS
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI Developers
 
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStartIntro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
 
Css3 101
Css3 101Css3 101
Css3 101
 
HTML5 for the Flash Developer
HTML5 for the Flash DeveloperHTML5 for the Flash Developer
HTML5 for the Flash Developer
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 

Recently uploaded

312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town
Rick Peterson
 
Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24
deerfootcoc
 
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
franktsao4
 
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
Phoenix O
 
Important places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptxImportant places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptx
ShyamSundar991228
 
Sanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu ExpertSanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu
 
English - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdfEnglish - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdf
Filipino Tracts and Literature Society Inc.
 
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_RestorationThe_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
Network Bible Fellowship
 
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
cfk7atz3
 
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
makhmalhalaaay
 
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
OH TEIK BIN
 
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
Traditional Healer, Love Spells Caster and Money Spells That Work Fast
 
The Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - MessageThe Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - Message
Cole Hartman
 

Recently uploaded (13)

312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town312 A Wise Woman of Abel Beth Maakah Saves The Town
312 A Wise Woman of Abel Beth Maakah Saves The Town
 
Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24Deerfoot Church of Christ Bulletin 6 16 24
Deerfoot Church of Christ Bulletin 6 16 24
 
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...A375 Example Taste the taste of the Lord,  the taste of the Lord The taste of...
A375 Example Taste the taste of the Lord, the taste of the Lord The taste of...
 
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
The Enchantment and Shadows_ Unveiling the Mysteries of Magic and Black Magic...
 
Important places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptxImportant places of Vrindavan-Braj Mandal Parikrama .pptx
Important places of Vrindavan-Braj Mandal Parikrama .pptx
 
Sanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu ExpertSanatan Vastu | Experience Great Living | Vastu Expert
Sanatan Vastu | Experience Great Living | Vastu Expert
 
English - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdfEnglish - The Book of Ruth - King James Bible.pdf
English - The Book of Ruth - King James Bible.pdf
 
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_RestorationThe_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
The_Chronological_Life_of_Christ_Part_104_Repentance_and_Restoration
 
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
快速办理(PU毕业证书)普渡大学毕业证文凭证书一模一样
 
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
Kala jadu (black magic) expert,Black magic specialist in Dubai vashikaran spe...
 
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...A Free eBook ~ Valuable LIFE Lessons    to Learn   ( 5 Sets of Presentations)...
A Free eBook ~ Valuable LIFE Lessons to Learn ( 5 Sets of Presentations)...
 
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
How to Stop a Divorce and Save Your Marriage: Divorce Spells That Really Work...
 
The Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - MessageThe Hope of Salvation - Jude 1:24-25 - Message
The Hope of Salvation - Jude 1:24-25 - Message
 

Css3 shubelal

  • 2. − Introduction of CSS3? − New Selector? − Fonts − Pseudo-Classes − Transformation (Rotate, Resize…etc) − Animation (Fade In/Fade Out) − Media Queries − Cross Browser Compatibility Topics Agenda for CSS3
  • 3. − CSS is used to control the style and layout of Web pages. − CSS3 is the latest standard for CSS. − CSS (Cascading Style Sheets) is a language which describes how a document written in a markup language looks and how it is formatted. Giving layout, colors and fonts to a document and its elements can change how your website looks and how people think about it. CSS has evolved over time from CSS1 to CSS2 (which is the current standard) to CSS3 (which is still in development). Modern browser support CSS1 and CSS2 but for CSS3 the support is still limited. Introduction of CSS3?
  • 4. The CSS3 Selectors module introduces three new attribute selectors, which are grouped together under the heading “Substring Matching Attribute Selectors”. These new selectors are as follows: [att^=val] – the “begins with” selector [att$=val] – the “ends with” selector [att*=val] – the “contains” selector CSS3 Attribute Selectors
  • 5. − translate() − rotate() − scale() − skew() − matrix() Transformation
  • 6. <style> div { width:200px; height:100px; background-color:yellow; /* Rotate div */ transform:rotate(30deg); -ms-transform:rotate(30deg); /* IE 9 */ -webkit-transform:rotate(30deg); /* Safari and Chrome */ -moz-transform:rotate(30deg); /* Firefox */ } </style> <body> <div>Hello</div> </body>
  • 7. Animation (Fade In/Fade Out) he CSS3 Transitions module introduces a number of properties which together can be used to specify: the CSS property (or properties) to be transitioned; the duration of the transition; the timing function of the transition; and an optional delay. These properties are as follows: transition-property transition-duration transition-timing-function transition-delay Live Demo
  • 8. With CSS3, you can create rounded borders, add shadow to boxes, and use an image as a border - without using a design program, like Photoshop. − border-radius − box-shadow − border-image CSS3 Borders
  • 9. CSS3 Borders Examples <style> div { width:300px; height:100px; border:2px solid; border-radius:25px; background-color:#890000; box-shadow: 10px 10px 5px #888888; } </style> Box shadow Live Demo
  • 10. In the new @font-face rule you must first define a name for the font (e.g. myFirstFont), and then point to the font file. − Internet Explorer 9+, Firefox, Chrome, Safari, and Opera support the WOFF (Web Open Font Format) font. − Firefox, Chrome, Safari, and Opera support fonts of type TTF (True Type Fonts) and OTF (OpenType Fonts). − Chrome, Safari and Opera also support SVG fonts/shapes. − Internet Explorer also supports EOT (Embedded OpenType) fonts. Note: Internet Explorer 8 and earlier versions, do not support the @font-face rule. The CSS3 Font Rule Live Demo
  • 11. @font-face Rule @font-face { font-family: myFirstFont; src: url(sansation_light.woff); } @font-face { font-family: myFirstFont; src: url(sansation_bold.woff); font-weight:bold; }
  • 12. Pseudo-Classes :root - Selects the element that is at the root of the document. Almost certainly will select the <html> element, unless you are specifically working in some weird environment that somehow also allows CSS. Perhaps XML. :first-child - Selects the first element of its type within a parent. :last-child - Selects the last element of its type within a parent. :nth-child(N) - Selects elements based on a simple provided algebraic expression (e.g. "2n" or "4n-1"). Has the ability to do things like select even/odd elements, "every third", "the first five", and things like that. Covered in more detail here with a tester tool. :nth-of-type(N) - Works like :nth-child, but used in places where the elements at the same level are of different types. Like if inside a div you had a number of paragraphs and a number of images. You wanted to select all the odd images.
  • 13. Pseudo-Classes continue… :nth-child won't work there, you'd use div img:nth-of-type(odd). Particularly useful when working with definition lists and their alternating <dt> and <dd> elements. :first-of-type - Selects the first element of this type within any parent. So if you have two divs, each had within it a paragraph, image, paragraph, image. Then div img:first-of-type would select the first image inside the first div and the first image inside the second div. :last-of-type - Same as above, only would select the last image inside the first div and the last image inside the second div. :nth-last-of-type(N) - Works like :nth-of-type, but it counts up from the bottom instead of the top. :nth-last-child(N) - Works like :nth-child, but it counts up from the bottom instead of the top. :only-of-type - Selects only if the element is the only one of its kind within the current parent.
  • 15. − This new CSS3 selector lets you achieve multi-column layouts without having to use multiple divs. The browser interprets the properties and create the columns, giving the text a newspaper-like flow. Multi-Column Layout .index #content div { -webkit-column-count : 4; -webkit-column-gap : 20px; -moz-column-count : 4; -moz-column-gap : 20px; } div { column-rule: 1px solid #00000; }
  • 17. − Media queries allow the page to use different CSS style rules based on characteristics of the device the site is being displayed on, most commonly the width of the browser. Media Queries <meta name=”viewport” content=”width:device-width”> Live Demo
  • 20. Cross Browser Compatibility <!--[if gte IE 8]> According to the conditional comment this is IE 8 or higher<br /> <![endif]--> <!--[if lt IE 9]> According to the conditional comment this is IE lower than 9<br /> <![endif]--> <!--[if lte IE 7]> According to the conditional comment this is IE lower or equal to 7<br /> <![endif]--> <!--[if gt IE 6]> According to the conditional comment this is IE greater than 6<br /> <![endif]-->
  • 21. CSS3 − http://css3-tutorial.com/ − http://www.w3schools.com/css3/ − http://net.tutsplus.com/tutorials/html-css-techniques/11-classic-css-techniques-made-simple-with-css3/ − http://www.css3.info/ − http://webdesignerwall.com/ Reference

Editor's Notes

  1. TITLE PAGE– Headline 36pt Arial in WHITE– Sub-head 18pt Arial Reg in GREY– Do not include client logos on title page– TEXT ONLY
  2. 1-COLUMN– Headline 32pt Arialin BLACK– Sub-heads 12pt Arial Reg in ORANGE– Body copy &amp; bulleted text 10pt Arial Reg in GRAY; body copy not to go below 6 pt– Left-justify all text and design elements– Divider Lines no larger than 1pt*****Divider lines are not built into Master Slides – must copy and paste from example slide*****
  3. TITLE PAGE (ALT)Footer is only editable feature.