Todos los elementos de una página web tienen un selector CSS llamaoa :hover que nos permite definir un aspecto determinado cuando el cursor está encima de un elemento determinado. Hoy via Digg, descubro unos ejemplos muy interesantes de implementar una forma diferente de hacer un :hover.
HTML:<abbr title="Hypertext Markup language">HTML</abbr>
CSS:
abbr[title]:after{ /*Workaround for Gecko*/ content: ""; } abbr[title]:hover:after{ /*Shows the value of the title attribute when hovered*/ content: " (" attr(title) ")"; }
1 comentarios, 4 referencias
+
#