Click to See Complete Forum and Search --> : <DIV style="position:absolute; top=50; left=50" with IE


kusi
11-03-2003, 03:56 AM
It simply works as expected on Opera, NN, Mozilla.but not with IE. how can I find a streamline?

fredmv
11-03-2003, 03:59 AM
If that's how your code really looks, it isn't correct syntax. The way you define things in CSS is like this:property: value;Note the usage of a colon as opposed to an equals sign. So, your code should really look like this:<div style="position: absolute; left: 50px; top: 50px;">Some content here.</div>I hope that helps you out.

kusi
11-03-2003, 04:02 AM
<div id="tologin" style="position:absolute; top:150; left:150;" >

it is like this.
sorry in the post it is wrongly edited.

fredmv
11-03-2003, 04:11 AM
Alright, I just tested your code under Mozilla Firebird 0.7, Opera 7.21, Mozilla 1.5, and IE6. It worked fine under all of them. Could there possibly be something in the tologin ID causing problems?

kusi
11-03-2003, 04:27 AM
No, actually ID is used there just to refer to the DIV in JS functions which will later show the divs according to selection.

It just appears in IE some 100s of pixels far away from the expected location: ie the frames beginning location.

Can it be a frame related problem in IE?

fredmv
11-03-2003, 04:29 AM
Originally posted by kusi
Can it be a frame related problem in IE? That sure is a possibility. What version of IE are you testing this code under? If it's IE5.x, that's quite understandable. From what I understand, IE5.x completely mis-implements the CSS box model.

kusi
11-03-2003, 04:48 AM
It is IE 6.0.2600.xxxxxxxxxxxx