Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-21 20:35:28

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

IE 5.2 for Mac problem

I have a search input field in my page template which is nested in a header div that is set to relative and applied the following style to it:

<code>form { position: absolute; left: 800px; top: 50px;
}</code>

In Firefox that looks great, but IE 5.2 for Mac completely ignores the position left (800px) and displays the search input on the left rather than on the right (layout width total = 990px)

I also tried float: right, which also doesn’t work…Anybody know a work aorund?

Thank you!
Dada

Last edited by dada78 (2005-12-21 20:36:21)

Offline

#2 2005-12-21 20:54:05

SCARECR0W
Member
From: Biloxi, Mississippi
Registered: 2005-12-16
Posts: 13
Website

Re: IE 5.2 for Mac problem

IE 5.2 on a mac is a dead browser.. officially now (MS announced this two days ago)

But, if you still need the support…

IE5 Mac is notoriously bad about Absolute positioning. I had similar problems recently, and was trying to maintain support for this aging browser as well…

I ended up using a CSS hack, specific to IE 5 on a mac.

/* BE NICE TO MAC-IE5 */ /*\*//*/ #form {position: absolute; top: 0; left: 800px;} /**/ /* BE NICE TO MAC-IE5 */

Only IE5 Mac will see the above.. everything else will use your original declaration.

I don’t know how much of a purist you are, but if you have to live with IE Mac on your site.. this hack tends to be worth it.

Hope that helps.


TextPattern User – In Training

Offline

#3 2005-12-21 21:11:18

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Re: IE 5.2 for Mac problem

Thanks so much for the hack Scarecrow!

I cannot express how much I hate IE, but this looks like it will work.

Do you by any chance know how IE5-6 on Windows handles absolute positioning?
Thanks again, you made my headache go away ;-)!
Dada

Offline

#4 2005-12-21 21:29:51

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: IE 5.2 for Mac problem

They do alright for the most part. I haven’t run into too any really odd issues with absolute position. One thing is that it will not vertically absolutely position inside a relative container unless the container has a height specified which is quite annoying.

You can use the mid-pass filter to get around the trouble spots in IE5.x/win (also dead browsers), works like the Band Pass filter for IE/mac already shown here.


Shoving is the answer – pusher robot

Offline

#5 2005-12-21 21:29:52

SCARECR0W
Member
From: Biloxi, Mississippi
Registered: 2005-12-16
Posts: 13
Website

Re: IE 5.2 for Mac problem

Generally IE5 mac and IE on a pc, have no ties whatsoever. They are really different codebases and each have separate bugs and glitches.

The code above, is specific to the mac version of IE only… so IE on a pc will not apply the above rule.


TextPattern User – In Training

Offline

Board footer

Powered by FluxBB