[Javascript] Positioning in IE

Flavio Gomes flavio at economisa.com.br
Fri Jul 23 10:38:44 CDT 2004


It makes me conclude that your problem is somewhere else.
Maybe you got two "glava" in your document, because the code moved the 
div here for me.

<div style="position:absolute; top:64px; left:190px;" align="center"
id="glava">and here Javascript which tries to move the object:</div>

<script>document.getElementById('glava').style.left =  '500';</script>

Flavio Gomes
flavio at economisa.com.br



Iztok Polanic wrote:

>Hi!
>
>Here's the <div> element:
>
><div style="position:absolute; top:64px; left:190px;" align="center"
>id="glava">
>
>
>and here Javascript which tries to move the object:
>
>document.getElementById('glava').style.left =  '500';
>
>This works fine in Mozilla (Firerfox) but not in IE 6.
>
>Bye,
>
>Iztok 
>-----Original Message-----
>From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
>On Behalf Of Flavio Gomes
>Sent: 23. julij 2004 17:00
>To: [JavaScript List]
>Subject: Re: [Javascript] Positioning in IE
>
>
>Well, then you shouldn't have any problems..
>   Post your code, please
>
>Flavio Gomes
>flavio at economisa.com.br
>
>
>
>Iztok Polanic wrote:
>
>  
>
>>Hi!
>>
>>Element is <div> tag and it's positioned absolutely.
>>
>>Bye,
>>
>>Iztok 
>>-----Original Message-----
>>From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
>>On Behalf Of Peter Brunone
>>Sent: 23. julij 2004 16:16
>>To: '[JavaScript List]'
>>Subject: RE: [Javascript] Positioning in IE
>>
>>
>>	What's the element, and is it positioned relatively or
>>absolutely?
>>
>>	Try style.pixelLeft if you're specifying an integer without
>>units.
>>
>>-----Original Message-----
>>From: javascript-bounces at LaTech.edu
>>[mailto:javascript-bounces at LaTech.edu] On Behalf Of Iztok Polanic
>>
>>Hi!
>>
>>I hope this is my last question on positioning on this list :) I'm using
>>document.getElementById('').style.left to position an element to another
>>coordinates. It works fine in firerfox (Mozilla) 0.9 but not in IE 6.0.
>>Any clues?
>>
>>Bye,
>>
>>Iztok
>> 
>>
>>    
>>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>



More information about the Javascript mailing list