Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/04/2012, 17:41
quico5
 
Fecha de Ingreso: enero-2008
Mensajes: 580
Antigüedad: 16 años, 4 meses
Puntos: 9
(Menu para móvil) usar enlace local con target para controlar dos etiquetas

Estoy construyendo un menú para moviles con CSS y cargo submenus con los enlaces locales del menu principal, el menu responde bien, pero no consigo a la vez mostrar un titulo diferente según el menú elegido

http://movil.anhida.org/menu.html#menu

P.D: EL menu es navegable

gracias por la ayuda

Cita:
section{left:-100%;}
section#menu:target, section#tdah:target, section#anhida:target, section#enlaces:target{left:2%;}

span{opacity:0.2;}
span#menu:target{opacity:0.8;}
Cita:
...
<section id="menu"> <!-- Menu principal -->
<nav>
<dl>
<dt><a href="#">Inicio</a></dt>
<dt><a href="#tdah">Tdah</a></dt>
<dt><a href="#anhida">Anhida</a></dt>
<dt><a href="#enlaces">Enlaces</a></dt>
<dt><a href="#">Foros</a></dt>
</dl>
</nav>
</section>
...
Cita:
<footer>
<span id="menu">MENU</span>
<span id="tdah">TDAH</span>
<span id="anhida">ANHIDA</span>
<span id="enlaces">ENLACES</span>
</footer>