You will need to know the size of the background image and size of the element, then it's just math. However, if the bgimage is going to be part of your ui, you should make it and the label both child elements, positioning will be way easier, and you can probably just do it with css.

Sent from my iPhone

On 2010-05-27, at 8:53 AM, JOSE QUINTERO <[email protected]> wrote:

Remi;
Sorry. That was not my intention. I just wanted to take this email address.
I am a member of this group for some time and I know that it works.
Yesterday I sent an email with a question about how knowledge of the properties of a Image background and was not sure whether he had mailed.

2010/5/27 Remi Grumeau <[email protected]>
@JOSE: please, do not copy paste another issue content on other posts
If you have no answer to your question, perhaps no one has one to share...

R.

Le 27 mai 2010 à 15:41, Jose Lopez Quintero a écrit :

Hi.
How can i known The size, top and left position when one div have a background image using JavaScript.
In css this div:
Backgroundimage: URL......
Backgroud-repeat:no- repeat
Background position: center
Width:auto
Position: relative
Heigth:auto

I need know this to place some input text in The correct place.
Thanks.



--
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en .

--
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to