SlideShare ist ein Scribd-Unternehmen logo
1 von 28
CSS
• CSS      Cascading Style Sheet
     CSS

• CSS




                               CSS
CSS
• CSS                       2513
•                        CSS
  web browser

•    2539                   CSS1

•          4               2540
    CSS2                           W3C    12
                  2541
•          CSS3                    2541
                  2552      2548               CSS
                   CSS
CSS 3
• CSS Level
  WC3
•

        IE , Firefox , Safari , Chome     Opera
                                     CSS3

              CSS3
CSS3
1.          CSS
                       HTML
                   code              HTML


2.       code                 HTML

3.
     style sheet                               HTML

                                            HTML tag
CSS3
4.
                          Web Browser
5.


        PDA
6.
     attribute    HTML
                 W3C            CSS
                    CSS        HTML
•
    HTML
  <html><body>
  <h1><font color="red" face="Arial">
•                         font></h1>
  <p><font color="black" face="Arial"><b>
•
                        b></font></p>
  <h1><font color="red" face="Arial">
•                         font></h1>
  <p><font color ="black" face="Arial"><b>



                        b></font></p>
•                                       style sheet
                                            code
    HTML           code
•    html><head>
    <style type="text/css">
    h1{color:red; font-family:Arial; }
    p{color:black; font-family:Arial; font-weight:bold }
    </style> </head>
    <body> <h1>                            h1>
    <p>
                                       p>
    <h1>                           h1>
    <p>



                                  p>
CSS
                  Selectors
•               CSS3 Selectors
     W3C

      CSS2.1
•                          Selectors CSS3
                          Selectors

• 1. Group of selectors
• 2. Simple Selectors
• 3. Pseudo-elements
Group of Selectors
•                 Selectors    CSS


    Comma ( , )



•                 a                        class
                          strong
                   RGB      ,   ,
•                               Selector
1. Type Selectors
• Type Selectors            Element
    CSS                         Xhtml
                   h {font-size: px;} h
      type selector
•           Element             CSS
                         CSS
                         HTML
•                  CSS           SVG
    XML
Universal Selector
• Universal Selector
                            Selector
                                U+    A]
•                         Reset    CSS
          {padding: ;}
  padding
      Attribute Selectors
• Attribute Selectors     CSS

          Attribute“
                                Attribute"
[attribute]
•                                h1[id] {}       a[rel]
    {color: red;}
                    Attribute
•          [attribute="value"]
•       Element                attribute




•                   blockqoute    title
                                     rgb     ,    ,
HTML



•                     CSS



•                                         hue
    = , saturation=         , lightnes=
     img   alt attribute
Pseudo-elements
•   ::first-line
•   ::first-letter
•   ::before              x)
•   ::after                    x)
•                                    Selectors


                                    Printer
• CSS         Selectors
::first-line
•                    CSS2        pseudo-
    classes    pseudo-elements
•                    CSS3         pseudo-
    elements
•                 CSS3
                foo      pseudo-classes
                 bar     pseudo-elements
text-shadow
•      text-shadow               CSS3


                                    Horizontal
    Offset , Vertical Offset , Blur   Color
•
text-shadow

<head> <meta charset='UTF- '> <style>
      tr:first-child { background-color: blue;
                    color: white;  }
      h { text-shadow: px px px             ;
      }
</style></head> </html>

                 3px                       4px
                              5px
engrave




CELL TEST
h2 {        color: #444;
            background-color: #999;
            text-shadow: 0px 1px 0px
#e7e7e7;    }
emboss




CELL TEST
h2 { color: #ddd;
     background-color: #444;
     text-shadow: 0px 2px 1px #111 }
CCS3 Background
•
• CSS3

•
•

Example        80x60px
div {
background:url(img_flwr.gif);
-moz-background-size:80px 60px; /* Old Firefox */
background-size:80px 60px;
background-repeat:no-repeat;
}
CSS3 Transitions
•       CSS

    Flash     JavaScripts



• CSS

•                      2
• 1.                CSS
CSS3 Transitions
•
    div { transition: width 2s;
    -moz-transition: width 2s; /* Firefox 4 */
    -webkit-transition: width 2s; /* Safari and
    Chrome */
    -o-transition: width 2s; /* Opera */ }
    Note :
    - div:hover { width:300px; }
•                      HTML       CSS
•
•                   Aqua,

                        ,     ,
•   Blue          #0000FF
    Brown         #A52A2A
    Orange        #FFA500
    YellowGreen   #9ACD32
CSS

•   %    •
•   In   •
•   Mm   •
•   em   • 1em
           2em
                   element
                      em
         'em'                CSS

• px
         • pixel
CSS3 Multiple Columns
•         CSS3

•
 Example
div {
-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome
*/                              Lorem        tincidunt ut exerci tation
column-count:3;                 ipsum dolor laoreet
                                sit amet,    dolore
                                                          ullamcorper
                                                          suscipit

}     3                         consectetue magna         lobortis nisl
                                r adipiscing aliquam erat ut aliquip ex
                                elit, sed    volutpat. Ut ea
                                              diam      wisi enim ad commodo

            3                                 nonummy
                                              nibh
                                              euismod
                                                        minim        consequat.
                                                        veniam, quis Duis
                                                        nostrud
CSS3
•
 Example
div {
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome
*/
column-gap:40px;
}
       40
• dasdasdasdas

Weitere ähnliche Inhalte

Was ist angesagt?

New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
Jamshid Hashimi
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Deepak Sharma
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
chriseppstein
 

Was ist angesagt? (20)

Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with Sass
 
Fundamental CSS3
Fundamental CSS3Fundamental CSS3
Fundamental CSS3
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & Efficiency
 
Sass
SassSass
Sass
 
Css3
Css3Css3
Css3
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS Troubleshooting
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
 
Concept of CSS unit3
Concept of CSS unit3Concept of CSS unit3
Concept of CSS unit3
 
Css
CssCss
Css
 
Html css
Html cssHtml css
Html css
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
 

Ähnlich wie Css 3

Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
Peter Kaizer
 

Ähnlich wie Css 3 (20)

Web 102 INtro to CSS
Web 102  INtro to CSSWeb 102  INtro to CSS
Web 102 INtro to CSS
 
How to dominate a free theme WCTO 2014
How to dominate a free theme WCTO 2014How to dominate a free theme WCTO 2014
How to dominate a free theme WCTO 2014
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
 
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondTrendsetting: Web Design and Beyond
Trendsetting: Web Design and Beyond
 
Web
WebWeb
Web
 
Responsive web design with html5 and css3
Responsive web design with html5 and css3Responsive web design with html5 and css3
Responsive web design with html5 and css3
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
Css
CssCss
Css
 
CSS workshop @ OutSystems
CSS workshop @ OutSystemsCSS workshop @ OutSystems
CSS workshop @ OutSystems
 
Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSS
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
 
Intro to CSS3
Intro to CSS3Intro to CSS3
Intro to CSS3
 
Css intro
Css introCss intro
Css intro
 
CSS
CSSCSS
CSS
 
CSS3: Ripe and Ready
CSS3: Ripe and ReadyCSS3: Ripe and Ready
CSS3: Ripe and Ready
 
Web Development - Lecture 5
Web Development - Lecture 5Web Development - Lecture 5
Web Development - Lecture 5
 
Unit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptxUnit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptx
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
 
Css
CssCss
Css
 
Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!
 

Css 3

  • 1. CSS • CSS Cascading Style Sheet CSS • CSS CSS
  • 2. CSS • CSS 2513 • CSS web browser • 2539 CSS1 • 4 2540 CSS2 W3C 12 2541 • CSS3 2541 2552 2548 CSS CSS
  • 3. CSS 3 • CSS Level WC3 • IE , Firefox , Safari , Chome Opera CSS3 CSS3
  • 4. CSS3 1. CSS HTML code HTML 2. code HTML 3. style sheet HTML HTML tag
  • 5. CSS3 4. Web Browser 5. PDA 6. attribute HTML W3C CSS CSS HTML
  • 6. HTML <html><body> <h1><font color="red" face="Arial"> • font></h1> <p><font color="black" face="Arial"><b> • b></font></p> <h1><font color="red" face="Arial"> • font></h1> <p><font color ="black" face="Arial"><b> b></font></p>
  • 7. style sheet code HTML code • html><head> <style type="text/css"> h1{color:red; font-family:Arial; } p{color:black; font-family:Arial; font-weight:bold } </style> </head> <body> <h1> h1> <p> p> <h1> h1> <p> p>
  • 8. CSS Selectors • CSS3 Selectors W3C CSS2.1 • Selectors CSS3 Selectors • 1. Group of selectors • 2. Simple Selectors • 3. Pseudo-elements
  • 9. Group of Selectors • Selectors CSS Comma ( , ) • a class strong RGB , , • Selector
  • 10. 1. Type Selectors • Type Selectors Element CSS Xhtml h {font-size: px;} h type selector • Element CSS CSS HTML • CSS SVG XML
  • 11. Universal Selector • Universal Selector Selector U+ A] • Reset CSS {padding: ;} padding Attribute Selectors • Attribute Selectors CSS Attribute“ Attribute"
  • 12. [attribute] • h1[id] {} a[rel] {color: red;} Attribute • [attribute="value"] • Element attribute • blockqoute title rgb , ,
  • 13. HTML • CSS • hue = , saturation= , lightnes= img alt attribute
  • 14. Pseudo-elements • ::first-line • ::first-letter • ::before x) • ::after x) • Selectors Printer • CSS Selectors
  • 16. CSS2 pseudo- classes pseudo-elements • CSS3 pseudo- elements • CSS3 foo pseudo-classes bar pseudo-elements
  • 17. text-shadow • text-shadow CSS3 Horizontal Offset , Vertical Offset , Blur Color •
  • 18. text-shadow <head> <meta charset='UTF- '> <style> tr:first-child { background-color: blue; color: white; } h { text-shadow: px px px ; } </style></head> </html> 3px 4px 5px
  • 19. engrave CELL TEST h2 { color: #444; background-color: #999; text-shadow: 0px 1px 0px #e7e7e7; }
  • 20. emboss CELL TEST h2 { color: #ddd; background-color: #444; text-shadow: 0px 2px 1px #111 }
  • 21. CCS3 Background • • CSS3 • • Example 80x60px div { background:url(img_flwr.gif); -moz-background-size:80px 60px; /* Old Firefox */ background-size:80px 60px; background-repeat:no-repeat; }
  • 22. CSS3 Transitions • CSS Flash JavaScripts • CSS • 2 • 1. CSS
  • 23. CSS3 Transitions • div { transition: width 2s; -moz-transition: width 2s; /* Firefox 4 */ -webkit-transition: width 2s; /* Safari and Chrome */ -o-transition: width 2s; /* Opera */ } Note : - div:hover { width:300px; }
  • 24. HTML CSS • • Aqua, , , • Blue #0000FF Brown #A52A2A Orange #FFA500 YellowGreen #9ACD32
  • 25. CSS • % • • In • • Mm • • em • 1em 2em element em 'em' CSS • px • pixel
  • 26. CSS3 Multiple Columns • CSS3 • Example div { -moz-column-count:3; /* Firefox */ -webkit-column-count:3; /* Safari and Chrome */ Lorem tincidunt ut exerci tation column-count:3; ipsum dolor laoreet sit amet, dolore ullamcorper suscipit } 3 consectetue magna lobortis nisl r adipiscing aliquam erat ut aliquip ex elit, sed volutpat. Ut ea diam wisi enim ad commodo 3 nonummy nibh euismod minim consequat. veniam, quis Duis nostrud
  • 27. CSS3 • Example div { -moz-column-gap:40px; /* Firefox */ -webkit-column-gap:40px; /* Safari and Chrome */ column-gap:40px; } 40