Previous Message
Next Message

Absolute Positioning

Sent by Scott Wilcox on 17 June 2009 11:11


--===============0495716648==
Content-Type: multipart/signed; boundary=Apple-Mail-2-637746507; micalg=sha1;
	protocol="application/pkcs7-signature"


--Apple-Mail-2-637746507
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Hello Folks.

[Slightly off topic background info]
I've been working on a system so that I can overlay notes onto my  
photos. A basic run down is that a user will click the top left and  
bottom right of an area within an image then it'll shoot off and save  
the x,y of the clicked area. Now, when a user comes to visit the page,  
I pull the points back and use absolute positioning to place them over  
the image. The x,y points stored in the database are relative to the  
position over the image.

I get the position of the containing element (called 'photoContainer')  
and add that to the x,y points to give me my final absolute position.  
My problem seems to come in when I'm setting the values for the  
absolutely positioned elements. In IE, they don't show at all, Firefox  
3.0.11 displays them correctly sometimes, Safari is about 20px out and  
so is chrome.

The results are shown here:
http://tig.gr/photos/keele-hall/img_4274.jpg

I've really ran out of ideas now and can't understand why they're not  
positioning correctly, any help at all would be appreciated.

Thank you for at least taking the time to read my post.

Scott.

t:	07543 670838
e:	[EMAIL-REMOVED]
w:	http://tig.gr


--Apple-Mail-2-637746507--

--===============0495716648==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
--===============0495716648==--
Previous Message
Next Message

Possibly related: