469,343 Members | 5,478 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

Object postion within the container object.

HI All,

I have a problem in positioning a span within a div. In IE, the top and
left attribute of inner object
(span) is calculated from the container object, but in Firefox it is
getting calculated from the
body.

Since the value which I am setting for the top and left attribute is
from the top, the display is
coming proper in Firefox, but in IE the span position is getting
shifted to right and bottom.
( ie. Position of the container div within body)

Is there any way to make IE position the inner object from the body.

Thanks,
Sriram.

Apr 6 '06 #1
2 1360
Sriram said on 04/04/2006 3:54 AM AEST:
HI All,

I have a problem in positioning a span within a div. In IE, the top and
left attribute of inner object
(span) is calculated from the container object, but in Firefox it is
getting calculated from the
body.

Since the value which I am setting for the top and left attribute is
from the top, the display is
coming proper in Firefox, but in IE the span position is getting
shifted to right and bottom.
( ie. Position of the container div within body)

Is there any way to make IE position the inner object from the body.


<URL:http://www.quirksmode.org/js/findpos.html>

--
Rob
Group FAQ: <URL:http://www.jibbering.com/FAQ>
Apr 7 '06 #2

RobG wrote:
Sriram said on 04/04/2006 3:54 AM AEST:
HI All,

I have a problem in positioning a span within a div. In IE, the top and
left attribute of inner object
(span) is calculated from the container object, but in Firefox it is
getting calculated from the
body.

Since the value which I am setting for the top and left attribute is
from the top, the display is
coming proper in Firefox, but in IE the span position is getting
shifted to right and bottom.
( ie. Position of the container div within body)

Is there any way to make IE position the inner object from the body.


<URL:http://www.quirksmode.org/js/findpos.html>


http://www.javascripttoolbox.com/lib/objectposition/

Apr 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by ken | last post: by
3 posts views Thread by Emjay | last post: by
2 posts views Thread by seth | last post: by
35 posts views Thread by Frederick Gotham | last post: by
7 posts views Thread by Christian Christmann | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.