Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/05/2014, 14:51
Avatar de pzin
pzin
Moderata 😈
 
Fecha de Ingreso: julio-2002
Ubicación: Islas Canarias
Mensajes: 10.488
Antigüedad: 21 años, 9 meses
Puntos: 2114
Respuesta: Cambiar diseño de "title"

Con CSS podrías utilizar un pseudo-elemento y la función attr() para tomar el valor de title. Algo así:

Código HTML:
Ver original
  1. <a href="#" title="arriba">Abajo</a>

Código CSS:
Ver original
  1. a[title]:hover {
  2.   position: relative;
  3. }
  4.  
  5. a[title]:hover:after {
  6.   position: absolute;
  7.   left: 50%;
  8.   top: 100%;
  9.   padding: 4px;
  10.   background: grey;
  11.   white-space: nowrap;
  12.   z-index: 99;
  13.   transform: translateX(-50%);
  14.   content: attr(title);
  15. }

Por ejemplo: