Tema: CSS Avanzado
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2008, 10:56
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: CSS Avanzado

De no usar algún lenguaje de programación que añada tamaño a los hermanos adyacentes (que imagino que es lo que buscas), se podría hacer así:

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es-es">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title></title>
<style type="text/css">
ol {font-size: 1em;}
ol li {font-size: 120%;}
ol li + li {font-size: 140%;}
ol li + li +li {font-size: 160%;}
ol li + li +li +li {font-size: 180%;}
ol li + li +li +li +li {font-size: 200%;}
ol li + li +li +li +li +li {font-size: 220%;}
</style>
</head>
<body>
<ol>
<li>Seccion 1</li>
<li>Seccion 2</li>
<li>Seccion 3</li>
<li>Seccion 4</li>
<li>Seccion 5</li>
<li>Seccion 6</li>
</ol>
</body>
</html>
__________________
Visita mi nueva web idplus.org