Forum Moderators: open

Message Too Old, No Replies

Mac IE5 browser intermittently disappearing jpgs & div float problems

         

zollerwagner

11:17 pm on Feb 17, 2005 (gmt 0)

10+ Year Member



I've been testing my sites on IE5 for Mac. This site has two odd problems.

The pages valid perfectly for CSS and XHTML 1.0 Strict.

1.) There are two floated divs right and left of each other. They are placed in another div used as a float wrap. Sometimes this works and sometimes it doesn't (the right float drops down below the left float).

2.) The jpgs loaded directly into the page don't always appear.

The same page design with different text content works on some pages all or most of the time, and other pages only occasionally. The pages use common SSI, so most of the top and bottom are the same, except for the title, and a few metatags.

When I shut the browser down and restart it, some time everything appears fine for the first view, but then didn't on the second view of the same page. Other times the images will appear but some pages will have the floating divs bursting out of their layout and some won't.

I see now, too, that the view > text-zoom setting on the browser makes a difference. If I select smaller text (going from 100% to 90%), for example, it might blow the divs out of alignment.

Do you think this is just IE5 on Mac's quirkiness and I should forget about it, or can it be fixed?

Do you all still test on IE5 for Mac?

tedster

2:40 am on Feb 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you read through DrDoc's post: Taking on IE Bugs [webmasterworld.com]? You may find some ideas in there.

zollerwagner

9:09 am on Feb 18, 2005 (gmt 0)

10+ Year Member



Thanks for the suggestion, Tedster. DrDoc's post is very interesting, but not exactly what I was dealing with.

But it turns out it was CSS after all. (You can tell that I didn't think so, given that I posted here in the Browser forum! You can move this to that forum, if you like.)

IE5/mac didn't like the float: right. Once I took that out everything worked, (except for the padding).

So, in the style sheet, I did a two step:
1. feed ie5/mac what it needed, and
2. use the comment hack to hide the real padding data from ie5/mac, but feed it to the rest.


...

#maincontent {
padding: 24px 0 22px 246px; /*fake out mac ie5*/

/* commented backslash hack v2 hide from mac ie5 \*/
float: right;
padding: 24px 0 22px 60px;
/* end hack */

...

It works now.

tedster

9:54 am on Feb 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you mentioned two floated divs, I immediately suspected a CSS problem - so I made the suggestion. Glad you got it sorted out.