[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CSS / Layers not working the same IE and Firefox

Posted on 2007-08-05
4
Medium Priority
?
688 Views
Last Modified: 2013-12-07
I need to display a layer on the right of the screen. It works perfectlly in IE, but not in firefox, anybody knows why ???

<table width="100%"><tr>
<td align="right" class="tdmiddle" onmouseover="document.getElementById('Pop1').style.display='inline';">My popup</td>
</tr></table>
<div style="z-index:1; position:relative; top:0px; right:0px; display:none;" id="Pop1">
<div style="z-index:2; position:absolute; top:0px; right:0px; ">
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
bla bla bla bla bla bla bla bla bla <br>
</div></div>
0
Comment
Question by:javilmer
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:VirusMinus
ID: 19633750
use the strict DOCTYPE at the top of your page.

there is no neeed of position
:relative and top:0; right:0; only position:relative is enough. unless you have other positioning applied to parents that I can't see in your souce.

and you have display:none on the outer div. which means its children will also inherit display:none; remove this and it should work.
0
 

Author Comment

by:javilmer
ID: 19633765
- I can't remove the diplay none because by default this is not supposed to display, only when the user puts his mouse on the "my popup".
- When I take out position :relative and top:0; right:0; the bla bla bla text recovers the my popyp, which I don't want, I want it below (just like it works with IE, which is perfect).
0
 
LVL 30

Accepted Solution

by:
VirusMinus earned 1000 total points
ID: 19633806
try onmouseover="document.getElementById('Pop1').style.display='block';"
0
 

Author Comment

by:javilmer
ID: 19633880
it does work perfect with block instead of inline. Thank you very much :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question