Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I'ev two DIV elements. One is container, other is box. There ar three boxes in the container DIV. I use CSS toolip for the boxes. This is the code I use:
HTML
<div class="conatiner">
<div class='container'>

<a href='#' class='tooltp'> <div class="box"></div><span>This is the tooltip text</span></a>

<a href='#' class='tooltp'> <div class="box"></div><span>This is the tooltip text</span></a>

<a href='#' class='tooltp'> <div class="box"></div><span>This is the tooltip text</span></a>

</div>


The problem occurs with Firefox. It thinks that the tooltip has to be displayed right to the container DIV, whereas , it has to be displayed right to the box DIV. Is there any way that I can specify that which DIV is ending? I mean something like this :
HTML
</div class="box">


Thanks!
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jul-12 1:51am    
And where is that CSS?
--SA

1 solution

No, there is no such way. Not only your "something like this" shows non-existing syntax, and not only there is no any equivalent syntax, but such syntax would not make any sense due to its total redundancy: which element is ending is always known to HTML processor through the context. Isn't this obvious?

Also, this non-existing problem (yes, not only the syntax does not exist, but the problem itself also does not exist) is not related to the problem of styles. In other words: the rendering problem may exist, but you hypothesize on its nature inaccurately.

The rest of it needs some more information. You have the problem with CSS? OK, please present a complete code sample, including CSS. You can present the sample in just one short HTML file with embedded style sheet. If you can do it the way it reproduces the problem, please use "Improve question", don't forget to write what you expected to see and what's wrong in Firefox rendering, exactly.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900