Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/04/2006, 12:07
Jorolo
 
Fecha de Ingreso: octubre-2005
Mensajes: 536
Antigüedad: 18 años, 6 meses
Puntos: 1
Un ejemplo simple

Hola a todos.

Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>un ejemplo simple</title>
<style type="text/css">

#parrafo1:hover + #parrafo2 { background: olive; }
 
</style> </head>
<body>
  <p id='parrafo1'>Al posicionar el raton sobre este parrafo debe cambiar el background de parrafo2</p>
  <p id='parrafo2'>parrafo2, con fondo cambiante</p>
 </body> </html>