Código:
Y el html es este:<style type="text/css"> /*Credits: Dynamic Drive CSS Library */ /*URL: http://www.dynamicdrive.com/style/ */ .indentmenu{ font: bold 13px Arial; width: 100%; /*leave this value as is in most cases*/ overflow: hidden; } .indentmenu ul{ margin: 0; padding: 0; float: left; width: 80%; /*width of menu*/ border: 1px solid #564c66; /*dark purple border*/ border-width: 1px 0; background: black url(indentbg.gif) center center repeat-x; } .indentmenu ul li{ display: inline; } .indentmenu ul li a{ float: left; color: white; /*text color*/ padding: 5px 11px; text-decoration: none; border-right: 1px solid #564c66; /*dark purple divider between menu items*/ } .indentmenu ul li a:visited{ color: white; } .indentmenu ul li a:hover, .indentmenu ul li .current{ color: white !important; /*text color of selected and active item*/ padding-top: 6px; /*shift text down 1px for selected and active item*/ padding-bottom: 4px; /*shift text down 1px for selected and active item*/ background: black url(indentbg2.gif) center center repeat-x; } </style>
Código:
Y las solapas aparecen de esta forma:<link type="text/css" rel="stylesheet" href="1.css"> <body id="top"> <div class="indentmenu"> <ul> <li><a href="#">Home</a></li> <li><a href="#" class="current">CSS</a></li> <li><a href="#">Forums</a></li> <li><a href="#">Webmaster Tools</a></li> <li><a href="#">JavaScript</a></li> <li><a href="#">Gallery</a></li> </ul> </div> </body>
![](http://www.newgym.com.ar/x/tabs.jpg)
Pregunta:
¿Me podrían decir por favor qué líneas debo agregar al CSS para que al presionar sobre una solapa, quede activa (como está ahora la solapa CSS) y la que ahora esta activa pase al micmo estado de las demás?
Muchas gracias a todos.
Saludos. Marx.