IE clipping rectangle differently than Mozilla

T

tshad

I am using a slidemenu program that I download and seem to have a problem
with IE when sliding down.

I have 2 containers (div) on top of each other and the menu slides out from
behind the other. The problem is that in IE the position is completely
different from Mozilla.

I have a sample program in
http://www.payrollworkshop.com/samples/slideDemo.htm.

If you run the program in IE and Mozilla, it is apparent what the problem
is. IE puts the menu way over to the right from where Mozilla puts it and
it cuts off the right half of the menu (clips it).

The program is using the following to define the 2 containers.

#menu1Container { visibility:hidden; left:470px; top:12px; overflow:hidden;
z-index:10000; }#menu1Container,
#menu1Content { position:absolute; width:190px; height:300px; clip:rect(0px
190px 300px 0px); }

I realize that there is more to the objects, but is there anything apparent
that IE would handle differently than Mozilla?

What would cause IE to put the containers way over to the left from Mozilla
and why would it clip the right half of the the rectangle?

Thanks

Tom
 
C

c.anandkumar

The program is using the following to define the 2 containers.
#menu1Container { visibility:hidden; left:470px; top:12px; overflow:hidden;
z-index:10000; }#menu1Container,
#menu1Content { position:absolute; width:190px; height:300px; clip:rect(0px
190px 300px 0px); }

I realize that there is more to the objects, but is there anything apparent
that IE would handle differently than Mozilla?

In mozilla, clip should be specified as rect(top, left, bottom, right),
where right and bottom are the distances from the left and upper edges.

also you should specify the unit in mozilla (px) unlike IE which can
live without it.

thanks

anand
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top