CSS3


Monday, January 16, 12
Un sitio moderno se trabaja en 3 capas



                                                   Contenido

                                                  Presentacion

                                                   Interaccion




Monday, January 16, 12
Un sitio moderno se trabaja en 3 capas



                                                    HTML(5)

                                                     CSS(3)

                                                    Javascript




Monday, January 16, 12
Porque es superior CSS?




Monday, January 16, 12
Porque es superior CSS?

                          •Separacion por capas
                          •Cosistencia Global
                          •Ancho de Banda
                          •Control de cambios
                          •SEO
                          •Accebilidad
                          •Asi se trabaja la web en este siglo



Monday, January 16, 12
Arquitectura de CSS




Monday, January 16, 12
Monday, January 16, 12
Monday, January 16, 12
CSS3 no es trabaja igual que HTML5!!




Monday, January 16, 12
CSS Layer 1
                         CSS Layer 2
                         CSS Layer 3




Monday, January 16, 12
Monday, January 16, 12
Monday, January 16, 12
1996


                         CSS Layer 1
                         CSS Layer 2
                         CSS Layer 3




Monday, January 16, 12
1998


                         CSS Layer 1
                         CSS Layer 2
                         CSS Layer 3




Monday, January 16, 12
2000


                         CSS Layer 1
                         CSS Layer 2
                         CSS Layer 3




Monday, January 16, 12
CSS Layer 1
                         CSS Layer 2
                         CSS Layer 3
                         CSS Layer 4
                         CSS Layer 5
                         .....



Monday, January 16, 12
Soporte en Browsers




Monday, January 16, 12
Monday, January 16, 12
Monday, January 16, 12
Monday, January 16, 12
Modelo de Cajas




Monday, January 16, 12
Monday, January 16, 12
Selectores




Monday, January 16, 12
Selectores

                         elemento {

                              propiedad: valor

                         }



Monday, January 16, 12
Selectores

                         elemento hijo {

                              propiedad: valor

                         }



Monday, January 16, 12
Selectores

                         elemento hijo:pseudo {

                              propiedad: valor

                         }



Monday, January 16, 12
Como las cataratas, CSS solo cae

Monday, January 16, 12
Nuevos Selectores




Monday, January 16, 12
Hijo ( A > B)

         Selecciona únicamente el primer elemento B que sea

         descendiente de A
                                        A

                                            B




Monday, January 16, 12
Hermano Adyacente (A + B)

        Selecciona cualquier elemento B que tenga el mismo
        parent que E. por ejemplo en una lista li+li
        seleccionara todos los elementos de la lista menos el
        primer <li>.

                                         A

                                             B




Monday, January 16, 12
Hermano General (A ~ B)

        Selecciona cualquier elemento B que comparta el
        mismo parent que cualquier A y que venga posterior
        en la estructura HTML. Por ejemplo H1~H2
        seleccionara cualquier <h2> que este después de un
        <h1> siempre y cuando ambos compartan el mismo
        nodo padre, o sea siempre que <h2> no este anidado
        en otro elemento.
                                       A

                                           B




Monday, January 16, 12
X[atr]

        Selecciona cualquier elemento X que tenga el atributo
        “atr” con cualquier valor,

        img[alt] { border: solid}




Monday, January 16, 12
X[atr = val]

        Selecciona cualquier elemento X que tenga el atributo
        “atr” con el valor exacto a “val”.,

        img[alt=”curso”] { border: solid}




Monday, January 16, 12
X[atr ^= val]

        Selecciona cualquier elemento X que tenga un
        atributo que comience con “val”.,

        img[alt^=”.jpg”] { border: solid 1px lime}




Monday, January 16, 12
X[atr $= val]

        Selecciona cualquier elemento X que tenga un
        atributo que termine con “val”.,

        img[alt$=”.jpg”] { border: solid 1px lime}




Monday, January 16, 12
X[atr *= val]

        Selecciona cualquier elemento X que tenga un
        atributo incluya “val”.,

        img[alt=”img/”] { border: solid 1px lime}




Monday, January 16, 12
Pseudolementos




Monday, January 16, 12
X: valid

        X: invalid

        X: required

        X: optional




Monday, January 16, 12
E F:nth-child(n)

         El elemento F que es el descendiente numero #n del
        elemento parent E.


        li:nth-child(2) { border: solid 1px lime}




Monday, January 16, 12
E F:nth-last-child(n)

         El elemento F que es el descendiente numero #n del
        elemento parent E, pero contando de atras a adelante.


        li:nth-last-child(2) { border: solid 1px lime}




Monday, January 16, 12
E:nth-of-type(n)

        El elemento E que es el numero n de su tipo.


        div:nth-of-type(2) { border: solid 1px lime}




Monday, January 16, 12
E:nth-last-of-type(n)

        El elemento E que es el numero n de su
        tipo.Contando desde atras.


        div:nth-last-of-type(2) { border: solid 1px lime}




Monday, January 16, 12
F E:first-child

        El primer elemento E dentro de F.


        li:first-child { border: solid 1px lime}




Monday, January 16, 12
F E:last-child

        El ultimo elemento E dentro de F.


        li:last-child { border: solid 1px lime}




Monday, January 16, 12
E:not( selector )

        Cualquier elemento E que no coincida con el selector.


        div:not ( .destacado ) { border: solid 1px silver}




Monday, January 16, 12
Animacion y transiciones




Monday, January 16, 12
Herramientas de animacion
                         •Flash
                         •Javascript
                         •CSS3



Monday, January 16, 12
Porque animar con CSS?

            •Menos dependencia de plugins
            •Menos código
            •Menos NERD
            •Mejor Performance en moviles



Monday, January 16, 12
Ahorrar ancho de banda




Monday, January 16, 12
Bordes redondeados

            .recuadro{

            border-radius:10px

            }




Monday, January 16, 12
Sombras

            .recuadro{

            box-shadow: 1px 1px 1px rgba(0,0,0, 0.5)

            }




Monday, January 16, 12
Sombras

            .recuadro{

            text-shadow: 1px 1px 1px rgba(0,0,0, 0.5)

            }




Monday, January 16, 12
Gradientes

            .recuadro{
            background-image: linear-gradient(bottom, rgb(169,113,40) 15%,
            rgb(203,147,68) 58%, rgb(244,177,96) 79%);



            }




Monday, January 16, 12
Gradientes




                         http://gradients.glrzad.com/


Monday, January 16, 12
CSS Transforms

            •Scale
            •Rotate
            •Skew
            •Translate



Monday, January 16, 12
transform: scale()
          .cuadro{

          height:250px;
          width:250px;
          background-color:rgb(171, 38, 41);

          }




          .cuadro:hover{

          transform:scale(2)

          }




Monday, January 16, 12
transform: scale()
          .cuadro{

          height:250px;
          width:250px;
          background-color:rgb(171, 38, 41);

          }




          .cuadro:hover{

          transform:scale(2)

          }




Monday, January 16, 12
transform: rotate()
          .cuadro{

          height:250px;
          width:250px;
          background-color:rgb(171, 38, 41);

          }




          .cuadro:hover{

          transform:rotate(45deg)

          }




Monday, January 16, 12
transform: skew()
          .cuadro{

          height:250px;
          width:250px;
          background-color:rgb(171, 38, 41);

          }




          .cuadro:hover{

          transform:skew(45deg)

          }




Monday, January 16, 12
transformaciones multiples
          .cuadro{

          height:250px;
          width:250px;
          background-color:rgb(171, 38, 41);

          }




          .cuadro:hover{

          transform:scale(2) rotate(45deg);

          }




Monday, January 16, 12
Modificar el origen
       .cuadro{

       transform: rotate(45deg);
       transform-origin: rigth top

       }




       .cuadro:hover{

       transform: rotate(45deg);
       transform-origin: 100% 100%

       }




Monday, January 16, 12
Transition
       .cuadro{

       background-color: #000000
       transition-property: background-color;
       transition-duration: 1s;

       }




       .cuadro:hover{

       background-color: #000000

       }




Monday, January 16, 12
Propiedades sujetas de transformacion




Monday, January 16, 12
Demos!




Monday, January 16, 12
http://www.paulrhayes.com/experiments/cube/
                                  multiCubes.html

Monday, January 16, 12
http://ecsspert.com/adobe.php


Monday, January 16, 12
http://www.zurb.com/playground/css3-polaroids


Monday, January 16, 12
http://development.tobypitman.com/css/menu.html


Monday, January 16, 12
http://www.cssplay.co.uk/menu/css3-animation.html


Monday, January 16, 12
http://www.zurb.com/playground/osx-dock


Monday, January 16, 12
http://anthonycalzadilla.com/css3-ATAT/index.html


Monday, January 16, 12
http://silverbackapp.com/index.php?n=2


Monday, January 16, 12
El futuro de CSS




Monday, January 16, 12
CSS Shaders




              http://www.adobe.com/devnet/html5/articles/css-
                              shaders.html
Monday, January 16, 12

More Related Content

PPT
Multimedia 2
PPTX
Elementos multimedia
PPTX
Plataformas educativas; características y ejemplos
PPTX
Gestion de contenidos
PDF
Prosumer: el nuevo consumidor 2.0
PPT
lenguaje multimedia
KEY
Gerencia de Marca
PPT
La Semiótica Peirceana
Multimedia 2
Elementos multimedia
Plataformas educativas; características y ejemplos
Gestion de contenidos
Prosumer: el nuevo consumidor 2.0
lenguaje multimedia
Gerencia de Marca
La Semiótica Peirceana

What's hot (20)

PPTX
Herramientas TIC para la creación de contenidos digitales
PPTX
PPT: Internet y página web
PPT
comunicación Audiovisual
PDF
ADOBE AUDITION
DOCX
Cuaderno completo-ejercicios-word2007
PDF
Etapas de creacion de un producto multimedia
PPTX
Identidad corporativa (1)
PDF
El uso de presentaciones multimedia en el aula
PDF
IMPLEMENTACIÓN DE LAS TIC EN EL APRENDIZAJE DEL INGLÉS EN LOS GRADOS 6° INS...
PPTX
Diferencias entre las_herramientas_ofimaticas
PDF
Diseño del proyecto multimedia
PPT
Atutor: registro de usuarios
PPTX
Blogs wikis y redes sociales
PPT
Beneficios de la web 2.0 deysi guevara
PPTX
MEDIOS TECNOLÓGICOS : TIC
DOCX
Formato de texto para word y power point
PPTX
Clase 5 archivos multimedia
PPTX
PPTX
3.1 plataformas multimedia
PPSX
Los recursos multimedia y software educativo power 08 06-11- maestria gm
Herramientas TIC para la creación de contenidos digitales
PPT: Internet y página web
comunicación Audiovisual
ADOBE AUDITION
Cuaderno completo-ejercicios-word2007
Etapas de creacion de un producto multimedia
Identidad corporativa (1)
El uso de presentaciones multimedia en el aula
IMPLEMENTACIÓN DE LAS TIC EN EL APRENDIZAJE DEL INGLÉS EN LOS GRADOS 6° INS...
Diferencias entre las_herramientas_ofimaticas
Diseño del proyecto multimedia
Atutor: registro de usuarios
Blogs wikis y redes sociales
Beneficios de la web 2.0 deysi guevara
MEDIOS TECNOLÓGICOS : TIC
Formato de texto para word y power point
Clase 5 archivos multimedia
3.1 plataformas multimedia
Los recursos multimedia y software educativo power 08 06-11- maestria gm
Ad

Similar to CSS3: nuevos selectores y pseudo elementos (20)

PPTX
Hardcore CSS
PPT
PDF
03 css
PDF
CSS3 and jQuery for Designers
PDF
Big Design Conference: CSS3
PDF
Compass, Sass, and the Enlightened CSS Developer
PDF
Introduction to Web Programming
PDF
Html5 intro
PDF
Web Programming Intro
PDF
CSS教材
PDF
Accelerated Stylesheets
PDF
DotNetNuke World CSS3
PPTX
CSS 3 Overview
PPT
Css class-02
PPTX
PPTX
CSS Cascade Style Sheet
PPSX
CSS Comprehensive Overview
PDF
#4 - CSS Selectors, CSS3 and Web typography
PDF
Intro to html, css & sass
Hardcore CSS
03 css
CSS3 and jQuery for Designers
Big Design Conference: CSS3
Compass, Sass, and the Enlightened CSS Developer
Introduction to Web Programming
Html5 intro
Web Programming Intro
CSS教材
Accelerated Stylesheets
DotNetNuke World CSS3
CSS 3 Overview
Css class-02
CSS Cascade Style Sheet
CSS Comprehensive Overview
#4 - CSS Selectors, CSS3 and Web typography
Intro to html, css & sass
Ad

More from Carlos Solis (6)

PDF
Desarrollo de apps con Blackberry 10
PDF
Encuentro de desarrolladores moviles
PDF
Workshop de Desarrollo con Cascades Blackberry Dev Meeting Santiago
PDF
HTML5 nuevas capacidades
PDF
Html5 Audio & video
PDF
Herramientas de desarrollo e implementacion
Desarrollo de apps con Blackberry 10
Encuentro de desarrolladores moviles
Workshop de Desarrollo con Cascades Blackberry Dev Meeting Santiago
HTML5 nuevas capacidades
Html5 Audio & video
Herramientas de desarrollo e implementacion

Recently uploaded (20)

PDF
A review of recent deep learning applications in wood surface defect identifi...
DOCX
search engine optimization ppt fir known well about this
PDF
Getting Started with Data Integration: FME Form 101
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Architecture types and enterprise applications.pdf
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
Modernising the Digital Integration Hub
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Five Habits of High-Impact Board Members
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
A review of recent deep learning applications in wood surface defect identifi...
search engine optimization ppt fir known well about this
Getting Started with Data Integration: FME Form 101
A comparative study of natural language inference in Swahili using monolingua...
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Architecture types and enterprise applications.pdf
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Modernising the Digital Integration Hub
Hindi spoken digit analysis for native and non-native speakers
Chapter 5: Probability Theory and Statistics
Benefits of Physical activity for teenagers.pptx
sustainability-14-14877-v2.pddhzftheheeeee
Taming the Chaos: How to Turn Unstructured Data into Decisions
Five Habits of High-Impact Board Members
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Tartificialntelligence_presentation.pptx
DP Operators-handbook-extract for the Mautical Institute

CSS3: nuevos selectores y pseudo elementos