Hi, Can anyone help...
What im trying to do is as follows:
I capture and X and Y co-ordinate and then position using
<STYLE TYPE="text/css">
#positionElement1
{
position:absolute;
top: <CFOUTPUT>PositionElement1X</cfoutput>px;
left: <cfoutput>PositionElement1Y</cfoutput>px;
}
</style>
And If I want to position an element I just use this tag:
<DIV ID="PositionElement1">
"the object I want to position"
</div>
So what happens is that "<div ID="PositionElement1">...</Div>
then goes back up to the CSS code above and positions whatever I want using the X and Y co-ordinate.
This is OK when positioning one at a time e.g. If I want to position another element I just reference another CSS style stylesheet and give it another name e.g.
<STYLE TYPE="text/css">
#positionElement2
{
position:absolute;
top: <CFOUTPUT>PositionElement2X</cfoutput>px;
left: <cfoutput>PositionElement1Y</cfoutput>px;
}
</style>
This works fine, But is it possible to display 2 or more positioned elements simultaneously using their respective co-ordinates i.e.
<DIV ID="PositionElement2">
"the object I want to position"
</div>
<DIV ID="PositionElement2">
"the object I want to position"
</div>
The X and Y co-ordinates are being retrieved from a database
ANy comments or suggestions will be greatly appreciated..
Many thanks
Sam....
What im trying to do is as follows:
I capture and X and Y co-ordinate and then position using
<STYLE TYPE="text/css">
#positionElement1
{
position:absolute;
top: <CFOUTPUT>PositionElement1X</cfoutput>px;
left: <cfoutput>PositionElement1Y</cfoutput>px;
}
</style>
And If I want to position an element I just use this tag:
<DIV ID="PositionElement1">
"the object I want to position"
</div>
So what happens is that "<div ID="PositionElement1">...</Div>
then goes back up to the CSS code above and positions whatever I want using the X and Y co-ordinate.
This is OK when positioning one at a time e.g. If I want to position another element I just reference another CSS style stylesheet and give it another name e.g.
<STYLE TYPE="text/css">
#positionElement2
{
position:absolute;
top: <CFOUTPUT>PositionElement2X</cfoutput>px;
left: <cfoutput>PositionElement1Y</cfoutput>px;
}
</style>
This works fine, But is it possible to display 2 or more positioned elements simultaneously using their respective co-ordinates i.e.
<DIV ID="PositionElement2">
"the object I want to position"
</div>
<DIV ID="PositionElement2">
"the object I want to position"
</div>
The X and Y co-ordinates are being retrieved from a database
ANy comments or suggestions will be greatly appreciated..
Many thanks
Sam....