Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/10/2012, 13:23
furoya
(Desactivado)
 
Fecha de Ingreso: noviembre-2002
Ubicación: Ciudad Autónoma de Buenos Aires
Mensajes: 2.367
Antigüedad: 21 años, 6 meses
Puntos: 317
Respuesta: evitar heredar estilos

Hola todos.

dieguicho, tanto tiempo.

¿Te sirve esto? (No sé en cuantos navegadores funcionará.)

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<style type="text/css">
body > h1 {color:red; }
#nada {background-color: yellow; }
</style>
</head>
<body>

<h1>este debe tener un estilo (rojo)</h1>

<div id="nada">
<h1>nada de lo que este aqui tiene que heredar estilos</h1>
<p>otra cosa...</p>
</div>

<h1>este debe tener un estilo (rojo)</h1>

</body>
</html>