![]() |
|
#1
|
|||
|
|||
|
I've been running into some XHTML validation issues due to me getting a little excited over the script and adding a very complex tool tip composed of multiple divs and spans. I would really like to have a page that fully validates even with my crazy tips.
An idea came to me last night that I could get my page to validate by taking the tooltip out of the title attribute and moving it to a span tag with display: none just before or after the element that I want to exhibit the tip. Does anyone have an idea of how easy this modification would be, and could you point me in the right direction on getting it done? Thanks! |
|
#2
|
|||
|
|||
|
That's what i did and it works fine.
I also tried moving the title to a containing <td> and that works well. The only problem with doing it with the TD tag, is that the hover / show tooltip / hide kinda goes away, as you are always just moving from one td to another td with no real break to stop the hover. so you get that nice fade in on the first mouseover, then it's kinda intantaneous after that. That's why i moved to the span idea, so there was some 'dead space' between being in a hover and NOT being in a hover condition. |
|
#3
|
|||
|
|||
|
Sirdude,
Will you post your modified code? I'd love to use it! |
|
#4
|
|||
|
|||
|
Well, i didnt' modify any code. All i did was attach the title to a containing span.
I'll post an example of the generated html though, just to clarify. And i actually used a DIV vs a SPAN, but don't see why you can't do span. Code:
and i'm not sure if this will solve your validation issues though. matter of fact, i don't see this helping you as i re-read your original post sowwy Last edited by Sirdude : 09-22-2007 at 09:16 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|