Forum Moderators: not2easy

Message Too Old, No Replies

Hair-pulling over IE Mac

my css is hosed but only in one browser

         

toothfish

6:04 am on Aug 5, 2003 (gmt 0)

10+ Year Member



Hi all. I've been visiting webmasterworld for a while but I've always seemed to find answers for my questions without having to ask them. Now it seems that even after having searched google and this site i can't find the reason for this paricular weirdness:

I am in the process of redesigning a site, and am trying to take pains to validate a I go and write correct XHTML. It's very small (8 or so pages). It's displaying correctly in every browser I test it on except for IE Mac.

this is the relevant CSS:

body
{
margin: 0px;
padding: 0px;
color: #000;
background-color: #fee;
}
.mass
{
margin: 150px 150px 30px 150px;
padding: 20px 0px 0px 0px;
}
#main
{
position: absolute;
left: 50%;
width: 750px;
margin-top: 50px;
margin-left: -391px;
border: 1px solid #333;
color: #000;
background-color: #f63;
background-image: url("jpg.jpg");
background-position: top center;
background-repeat: no-repeat;
}

p.copy
{
font-family: Verdana, sans-serif;
background-color: #f63;
color: #eee;
font-size: 12px;
}

and this is the HTML:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>page title</title> <meta name="generator" content="BBEdit 6.5.2" />
<link rel="StyleSheet" href="css.css" type="text/css" media="screen" />
</head>
<body>

<div id="main">

<!-- menu stuff here. it's a php include-->

<div class="mass">
<p class="copy">
title of article
</p><p class="copy">
copy copy copy
</p><p class="copy">
more copy etc.
</p>
</div>
</div>
</body>
</html>

the problem is that IE mac squeezes all the copy into a one-word width column of type, whereas all other broswers i have yet to see display it as normal copy-- about 450px across. any ideas? I have validated both the XHTML and the CSS (but not together, which I understand is a limitation of the W3C validator), and they seem fine (no warnings, even!).

BlobFisk

11:09 am on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, toothfish

What version of IE are you using on the Mac? Have a look at the Mac IE bug list [macedition.com] here to see if any of them could be the problem...

toothfish

11:29 am on Aug 5, 2003 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld, toothfish

Thanks. I have to say that it's nice to be greeted-- the entirety of WebmasterWorld is remarkably friendly, at least what I've seen.

I'm using IE Mac 5.2.3- I had actually uninstalled it, but I noticed the site looked funky on a friend's machine and had to download the latest version.

I did look at the IE Mac bug list you mention BlobFisk, but
either I'm overlooking something or I'm not experienced enough to know what I'm looking for. I'm tempted to blame one of the float bugs, but none of them appear to be relevant. I'm using the second centering technique proposed by BlueRobot [bluerobot.com]-- does that have any known side effects?

BlobFisk

11:43 am on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried taking #main out of the containing <div class="mass"> and seeing if it fixes the problem? Why are you nesting it?

BlobFisk

11:45 am on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, have a look at the Incorrect inheritance of positioning information to children of relatively positioned elements [macedition.com] bug... I wonder if this could be part of the problem.

toothfish

12:17 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



Have you tried taking #main...

no. I'll have to try that-- blame it on a bad cut and paste job on my part, but the .mass div is in the #main div and not the other way around. it shouldn't matter, though, right? i am nesting them because there are a couple pages where i'm using #main but not .mass (like on image thumbnail pages).

it seems that the "Incorrect inheritance of positioning information..." bug is what's causing it. i'll have to mess with it. the macedition page says that using "position:static;" is not an effective workaround, but are there any?

dragonlady7

1:37 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



Eww, IE for Mac. A poor, neglected, red-headed stepchild...
Good luck. It's a terrible browser as far as I can tell. Nothing I do looks right in it and I've had the luxury of giving up on it, as none of our visitors seems to use it.
:D Mozilla for Mac and Windows seems to render just the same-- I vote we get everyone to switch to it so that my job becomes much easier. Who's with me? It should be simple, right?
*sigh*

toothfish

2:15 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



I'd like to abandon IE entirely but the logs suggest I do otherwise-- I actually haven't used it in a very long time and I forgot it didn't have tabs (!). Moz is a little poky on my box but Safari and Camino have been great-- and don't choke on my CSS.

Ryan8720

4:08 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



I wouldn't worry about IE Mac anyway. Microsoft has announced that they are abandoning the project. Safari was kickin' their @$$.

toothfish

2:19 am on Aug 9, 2003 (gmt 0)

10+ Year Member



Well I was all set to abandon IE/Mac but then I found a whole new set of problems. I think I'm going to have to Tantek [tantek.com] the whole thing out which is going to be a pain.

what i'm looking for is a fixed-width horizontal menu. it doesn't seem to be that hard, but it's driving me nuts. any suggestions for things to look at?