By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,738 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,738 IT Pros & Developers. It's quick & easy.

Position of image or div tags

P: n/a
I would like to know how I can be able to know the position of an
image or a div tag. My aim is to put layers in any position I want to,
relative to an image or a div tag. For example If I have the following
code
<div id=layer1>
item1<br>
item2<br>
item3<br>
</div>

<div id=layer2>
item4<br>
item5<br>
</div>

I would like to place layer2 on the left of item2 in layer1. How would
I know the position of item2?

Thank you
John.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 27 Apr 2004 15:47:26 -0700, jo******@fastermail.com (John) wrote:
I would like to know how I can be able to know the position of an
image or a div tag.
Tags don't have "positions" as a property connected to them. As used in
a markup language they only mark the beginning and the end of elements
with possible content written between the start tag and the end tag.
My aim is to put layers in any position I want to...
Oh...Promise that if you ever find out how to do that "any position I
want to" thingy on the www, please report back here because just about
all of us wants to know how to do the same :-)
For example If I have the following code
<div id=layer1>
item1<br>
item2<br>
item3<br>
</div>
<div id=layer2>
item4<br>
item5<br>
</div> I would like to place layer2 on the left of item2 in layer1.
How would I know the position of item2?


You have started to dig a hole in the wrong place; before you go any
deeper, stop digging and revert to give us all an idea of what it is
that you _really_ want to achieve. Helpful hints /may/ be available but
we do need a better context from you to apply them to.

--
Rex
Jul 20 '05 #2

P: n/a
John, I used coordinates like you want in my website (http://www.raymondloman.nl)
The leftmost frame uses JavaScript and CSS to emulate a movie (works
correctly using IE). Probably you can benefit from the source code.
(you can set the style.properties as I read them).

Raymond Loman
e: ra*****@raymondloman.nl
i: http://www.raymondloman.nl

jo******@fastermail.com (John) wrote in message news:<1a**************************@posting.google. com>...
I would like to know how I can be able to know the position of an
image or a div tag. My aim is to put layers in any position I want to,
relative to an image or a div tag. For example If I have the following
code
<div id=layer1>
item1<br>
item2<br>
item3<br>
</div>

<div id=layer2>
item4<br>
item5<br>
</div>

I would like to place layer2 on the left of item2 in layer1. How would
I know the position of item2?

Thank you
John.

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.