|
Posted by Jukka K. Korpela on September 24, 2006, 4:13 pm
Please log in for more thread options
Martin Pöpping wrote:
> I want to design a mouseover text using the following example:
You should have posted the URL, and you should have considered whether you
really have an HTML problem or something else.
> <div id="box"><a href="#">INFOBOX<span>Lorem ipsum dolor sit
> amet.</span></a></div>
- -
> As you see the text in the span-tag is hidden (display:none) until the
> mouseover (hover) effect is called.
You forgot the usual CSS caveats. When CSS is off - e.g., when a search
engine robot analyzes you document, the content is
INFOBOXLorem ipsum dolor sit amet.
(without a space after the "X").
> This works fine, also in IE.
For some values of "works". By the way, when the user clicks on the link
text, he jumps to the start of the document. This doesn't match my value for
"works".
> My problem is now, that if I am using a <a>-tag in the <span>-tag,
> everything after the <a>-tag is _NOT_ hidden with display:none.
That would be invalid markup, so why would you use it?
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
|