473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1501
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: ken | last post by:
IN the new gcc 3.3.1 I am getting messages like these: /data2/office/tools/bootstrp/sstring.cxx:105: error: cannot call member function `ULONG Container::Count() const' without object Where...
8
by: Bob | last post by:
I'm trying to decide on what data types to put into my caching object (a class with a static instance of Hashtable). I'm facing the choice of either putting the string values or SqlParameter...
3
by: Ernst | last post by:
I have a script for a menu. However, this menu uses absolute coordinates. This menu had to be placed on a website. This website is position (centered) using a table. How can I determine/calculate...
3
by: Emjay | last post by:
Newbie needs to know how to set the mouse position.
2
by: seth | last post by:
The Environment: I have a 3rd party control referenced as an object on an aspx page with inline code in script tags accessing the methods of properties of same. I also have a Codebehind page...
9
by: Jaybuffet | last post by:
my aspx has something like this <asp:Repeater id="Repeater1" runat="server"> <ItemTemplate> <mycontrol:ctl id="ctlId" obj='<%# Container.DataItem %>' showItem="true"/> </ItemTemplate>...
35
by: Frederick Gotham | last post by:
(Before I begin, please don't suggest to me to use "std::vector" rather than actual arrays.) I understand that an object can have resources (e.g. dynamically allocated memory), and so we have to...
7
by: Christian Christmann | last post by:
Hi, in my source code I've included a library I've not written and source code is available. In a function, I've generate an object of that library class dynamically with "new" and at the...
1
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.