/ Published in: HTML
Expand |
Embed | Plain Text
<style type="text/css"> /* general */ body { margin:0; padding:40px 80px; background:#fff; font:70% Arial, Helvetica, sans-serif; color:#555; line-height:180%; } h1, h2{ font-size:180%; font-weight:normal; color:#555; } h2{ font-size:140%; } p{ margin:1em 0; width:500px; } a{ color:#f20; text-decoration:none; } a:hover{ color:#999; } /* // here comes the goodnes */ a{ z-index:10; } a:hover{ position:relative; z-index:100; } a span{ display:none; } a:hover span{ display:block; position:absolute; float:left; white-space:nowrap; top:-2.2em; left:.5em; background:#fffcd1; border:1px solid #444; color:#444; padding:1px 5px; z-index:10; } /* // goodnes */ /* // general */ </style>
Comments
Subscribe to comments
You need to login to post a comment.

I've seen this before and still think that it's non-semantic. Screen readers will hit a span and then what? It's extra content that's not needed for them. Stick with the title= or a javascript solution. At least that's my opinion.
I disagree with you, Curtis. The idea of having a tool tip is for informative purposes. So why would it be a problem if the blind would also have access to this information.
But I do feel the code is bloated. I prefer using a jquery option.