Entendiendo el funcionamiento de “z-index” en CSS

   HTML y CSS, Estándares   December 18th, 2007   Enviar por e-mail
2 Votes | Average: 3 out of 42 Votes | Average: 3 out of 42 Votes | Average: 3 out of 42 Votes | Average: 3 out of 4 (2 votos, promedio: 3 de 4)
Loading ... Loading ...

Interesante artículo, con su página de demostración, que explica qué es y como funciona la propiedad "z-index" en el CSS. Según el artículo, estas son las reglas de oro aplicables a esta propiedad:

  • A box is at the same stack level as its parent’s unless it is given a different stack level through the ‘z-index’ property.
  • z-index applies only to objects that have the position property set to relative, fixed or absolute.
  • Assigning an opacity value less than 1 to a positioned element implicitly creates a stacking context, just like adding a z-index value.

For a positioned box, the z-index property specifies:

  1. The stack level of the box in the current stacking context.
  2. Whether the box establishes a local stacking context.

If there is no z-index specified, elements are stacked in the following order (from back to front):

  1. boxes in the normal flow, according to the sequence in the source code
  2. floating boxes
  3. positioned boxes, according to the sequence in the source code

Artículo completo: http://tjkdesign.com/
Demo: Understanding z-index

Suscríbete a los comentarios con RSS RSS o haz un Trackback TrackBack a 'Entendiendo el funcionamiento de “z-index” en CSS'.

Comenta aquí

XHTML: Puedes usa estos tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Populares


Comentarios Recientes


Artículos Anteriores


Los Temas


Archivos

Acerca del Autor

Michael Müller C. es un diseñador y desarrollador de sitios web radicado en Guayaquil, Ecuador. Creador de MMC Design en 1998 y de Iconiza en el 2007.


Del Portafolio


Lo que leo


Servicios


Contribuye

¿Te ha servido la información de este blog? Considera hacer una donación a través de:

Conoce más recomendaciones personales de libros relacionados con Diseño y Desarrollo Web en Amazon.


MMC Design | michaelmuller.net | Diseño y Desarrollo Web
Macromedia Certified Developer
MMC Design