CSS IE issue

A

aerotops

Hi,
I have a form with multiple fields (textfields, drop downs etc.) I am
using CSS to pop up a box with an explanation for that field when a
particular field has focus. I am using layers (div tags) and the
z-index to do this. All is fine on Firefox. But on IE, when the pop up
box is over a drop down field, the drop down field is superimposed over
the pop up box which does not look good. Its works fine for text fields
etc. Is anyone aware of this issue and how I might correct it?
Thanks,
Harsh.
 
B

BootNic

aerotops said:
Hi,
I have a form with multiple fields (textfields, drop downs etc.) I
am using CSS to pop up a box with an explanation for that field
when a particular field has focus. I am using layers (div tags) and
the z-index to do this. All is fine on Firefox. But on IE, when the
pop up box is over a drop down field, the drop down field is
superimposed over the pop up box which does not look good. Its
works fine for text fields etc. Is anyone aware of this issue and
how I might correct it?

You could hide the select.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function tellerror(msg, url, lnn){
alert('Error message= '+msg+'\nURL= '+url+'\nLine Number= '+lnn)
return true
}
window.onerror=tellerror
</script>
<script type="text/javascript">
function blip(b){
var a = document.getElementsByTagName('select');
for (var i=0, j=a.length; i<j; i++) {
a.style.visibility=(a.style.visibility=='hidden')?
'':'hidden';
}
b.childNodes[0].data=(b.childNodes[0].data=='hide')?'show':'hide';
}
</script>
<title></title>
</head>
<body>
<form action="javascript:void(this)">
<select>
<option>
one
</option>
<option>
two
</option>
<option>
three
</option>
</select>
</form>
<div style=
"width:200px;height:200px;position:absolute;top:0;left:25px;background-color:red;">
<p style="text-align:right;"><button onclick=
"blip(this)">hide</button></p>
</div>
</body>
</html>

Or you could use an Iframe

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<form action="javascript:void(this)">
<select>
<option>
one
</option>
<option>
two
</option>
<option>
three
</option>
</select>
</form><iframe style=
"width:200px;height:200px;position:absolute;top:0;left:25px;"></iframe>
</body>
</html>


--
BootNic Thursday, March 09, 2006 3:40 PM

It's not that some people have willpower and some don't. It's that
some people are ready to change and others are not.
*James Gordon*
 
R

RobG

aerotops said:
Hi,
I have a form with multiple fields (textfields, drop downs etc.) I am
using CSS to pop up a box with an explanation for that field when a
particular field has focus. I am using layers (div tags) and the
z-index to do this. All is fine on Firefox. But on IE, when the pop up
box is over a drop down field, the drop down field is superimposed over
the pop up box which does not look good. Its works fine for text fields
etc. Is anyone aware of this issue and how I might correct it?

A well known issue, BootNic's suggested iFrame solution seems more
popular. There is a discussion here:

<URL:http://weblogs.asp.net/bleroy/archive/2005/08/09/422047.aspx>
 
J

Jonas Raoni

aerotops said:
But on IE, when the pop up
box is over a drop down field, the drop down field is superimposed over
the pop up box which does not look good. Its works fine for text fields
etc. Is anyone aware of this issue and how I might correct it?

You can:
- Create your div inside an iframe
- Hide the control when showing the div
- Leave the tooltip out the input area =b
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top