Forum Moderators: travelin cat
The html validates, as does the css. My customer reports that the page does not function correctly in various versions - including most recent - of IE on Mac (positioning is all wrong, with upper half of page missing).
I suspect (?) the problem comes from method I'm using to centre site in browser, which is:
#container {top:50%; left:50%; position:absolute; width:760px; height:500px; margin-top:-250px; margin-left: -380px; z-index:1; background-color:#FFFFFF; border:1px solid #DDDDDD;}
The mock-up is at <edited>
Can anyone help? Please? ...
<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>
[edited by: tedster at 7:19 pm (utc) on Mar. 27, 2006]
Sorry to say that URL you've posted will probably be "snipped" soon since it is against WebmasterWorld policy [url:http://www.webmasterworld.com/help.cgi?cat=agree]WebmasterWorld policy[/url] to allow specific URLs like that.
(They prefer you include all the relevant info in the post itself, so that the thread can be a useful reference even after you've fixed the trouble with your site.)
This question is a good one for the [url=tp://www.webmasterworld.com/forum21/]HTML & Browsers[/url] forum although you can sometimes get good Mac advice here.
Now that we've got that out of the way, yes, you are correct, the #container line is causing the problem.
Would a "graceful downgrade" satisfy your customer here, or does IE 5 have to look perfect like the modern browsers? If a downgrade is OK, you can try hiding the offending code from Mac IE 5:
#container {
( Your existing CSS stuff here. )
padding: 10px;
/* hide from IE5/Mac \*/
left: 50%;
margin-top: -250px;
margin-left: -380px;
/* End hide from IE5/Mac \*/
}
CSS
/* hide from IE5/Mac \*/
@import url(styles/for/modern/browsers.css);
/* End hide from IE5/Mac \*/
Alternatively, if you think it's untidy to have two stylesheets to do a simple job, you could put the same code in the page head between two style tags.
-b
including most recent - of IE on Mac
Microsoft has officially ended support [webmasterworld.com] for the product.
Most sites traffic logs will prove that Mac IE users are statistically insignificant. (With a few sector's exceptions.)
If you can, convince your clients to stop caring about Mac IE.
If you can, convince your clients to stop caring about Mac IE.
Also good advice, but this should not mean serving up a broken page--especially when there's a simple means to hide css from the browser (see above...) One caveat: to make this work, you'll have to give your html pages a meaningful document structure...
-b
I did try to implement your first suggestion, just to satisfy my curiosity - it didn't work, and I may have misunderstood what to do with the snippet of code you gave.
If I serve up any page in curl they look like utter bollox. Does this make them broken? No, it just means that curl is incapable of understanding the content in any way other than plain text. A broken page is one that "does not work as intended." A page that was never intended to work in IE 5 Mac is not broken if it does not work in IE 5 Mac. That is like saying a Word document saved for Word 97 or better is broken because it doesn't quite show up right in Word 95. It might arguably be "broken in Word 95" [or "broken in IE 5 Mac"] but that doesn't make the document broken. Of course it's probably not going to work in something outside of its intended scope.
Damn, I outta sue my electric company because their energy won't power my gas range. Thanks for the eye opener, everywhere I look, everything is broken. ;)
If MS doesn't even support the thing, why should a web developer spend any time doing so?
It might be different if IE/Mac had any sort of significant market share, but the numbers are tiny and shrinking by the day.
If MS doesn't even support the thing, why should a web developer spend any time doing so?
Time? I offered a three line solution for properly marked-up documents! What do you want, a solution in a keystroke?!
Of course it's probably not going to work in something outside of its intended scope.
But this is one of the great things about the web--your documents can work outside their intended scope if you do a little planning at the outset. Note that I'm not necessarily talking about doing any extra work, and I'm not necessarily talking about making pages that render exactly the same way in old browsers as they do in new ones--though that should be clear enough if you re-read my comments above.
The great majority of documents on the web are just that: documents. Provided new documents are marked up as documents with a meaningful structure--this means, for example, using headers, paragraphs and lists to appropriately mark up information as headers, paragraphs and lists--they can be made to degrade perfectly well in older browsers.
In browsers (really I should say 'useragents') that don't support css these documents simply show up as text pages--they're ugly, but they work (i.e. they render as well-organized, readable, but unstyled documents). This means that most of the pages I build today work in Netscape 2, Lynx and even curl if you like. It does not mean that I'm doing even 2 minutes' extra work to achieve that result though.
The problem comes with browsers that only partially support css. In these cases, you do sometimes need a way to hide the css to keep them from making pages into an unusable jumble. If you consider IE Mac to be one of these can't-handle-css-well-enough-to-bother browsers, then timster and I provided a simple (three line!) solution to hide css from it.
However, in my opinion, when it comes to commonly used css, IE Mac's support is not weak enough to serve up text only pages--I spend much more (but not actually very much) time building a separate box-model-fixer stylesheet for IE 5.x for Windows and fixing various 'haslayout' bugs for the whole IE Windows family than I usually do needing to fix anything for IE Mac.
At some point, I will stop doing even the small fixes for IE Mac, but for now I don't see enough problems with it to cease support altogether--the set of css it supports is not significantly better or worse than other browsers that are still on the 'irritating-but-still-supported' list (IE 5 Windows, I'm looking at you...)
-b
Time? I offered a three line solution for properly marked-up documents! What do you want, a solution in a keystroke?!
No, I don't even want to launch IE/Mac to see what things look like. I simply don't support it, period. It's a dead browser with a market share that's so minuscule as to be non-existent -- and it has no future whatsoever. Its market share will never grow, it will only continue to shrink. If there are any security vulnerabilities in it, Microsoft will not be releasing any patches -- their response would be, that browser is officially unsupported, use a different browser. Well, for a change, I agree with MS, and that's my response, too, and I'll point people to MS's announcement on their site if necessary.
Of course, it's fine that you want to support it and are willing to spend time tweaking for it, but I don't, and I think my course of action is as legitimate as yours.
No, I don't even want to launch IE/Mac to see what things look like.
Please try to understand that what I actually recommended is an extremely minimal level of support: if your documents are well marked-up (and I guess you'll want to do this for seo purposes if for no other reason) and you simply hide the css from older browsers, you won't even need to open the page to know that it works in them...besides, you'll already know how it looks from the development stage before the css was added...
-b
Re not wanting to bother with designing for the Mac, which usually runs about 3% of traffic, if you had 1000 visitors that would be 30 of them that may not be able to read your site correctly. If this was a physical store would you lock 30 people out of your store?