Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CSS: Mac_IE vs. Win_IE

CSS: Mac_IE vs. Win_IE
Thread Tools
Mac Elite
Join Date: Mar 2001
Location: München, Deutschland
Status: Offline
Reply With Quote
Mar 15, 2005, 10:29 AM
 
I've a CSS anomaly here I can't get a (CSS) solution for. I have these two css classes:

class="prod_headline"
{
text-decoration: none;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 12pt;
color: #000000;
font-weight: bold;
font-style: normal;
}

class="prod_text"
{
text-decoration: none;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 10pt;
color: #000000;
font-weight: normal;
font-style: normal;
}


The source pages are PHP-based - eg. from the index.php:

<tr>
<td colspan="2" align="left" valign="middle" class="prod_headline">
it-services
</td>
</tr>
<tr>
<td width="600" align="left" valign="top" class="prod_text">
Unser Service-Angebot erstreckt sich auf
die Bereiche Beratung, e-Business, WebDesign,
Software-Entwicklung, Datenbank-Programmierung,
Datenbank-Konzeption, Schulung, Netzwerklösungen,
Corporate-Identity-Design, Web-Hosting und Multimedia,
bis hin zu Ihrem individuellen Online-Spiel.
</td>


Output:
WIN_IE: white background (css stated), black headline, black text
MAC_IE: white background (css stated), black headline, WHITE text !??!? WHY?



Regards,
PB.
Aut Caesar aut nihil.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 15, 2005, 10:42 AM
 
Is the CSS you posted your actual code? Those aren't valid CSS selectors; they should be '.prod_header' and '.prod_text' rather than 'class="prod_header"' and 'class="prod_text"'.

I think we're going to need to see more of the code, in any case. What you're talking about sounds like an IE/Mac bug, but I don't see any code in your examples that would trigger anything like that.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: Mar 2001
Location: München, Deutschland
Status: Offline
Reply With Quote
Mar 15, 2005, 11:46 AM
 
Originally posted by Millennium:
Is the CSS you posted your actual code? Those aren't valid CSS selectors; they should be '.prod_header' and '.prod_text' rather than 'class="prod_header"' and 'class="prod_text"'.

I think we're going to need to see more of the code, in any case. What you're talking about sounds like an IE/Mac bug, but I don't see any code in your examples that would trigger anything like that.

Of course, these are .xyz, I just edited the properties for better reading.

I parked this temp site under http://www.runtime.de , if you want to check this with Macbrowsers.

Regards,
PB.
Aut Caesar aut nihil.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 15, 2005, 12:12 PM
 
I'm still looking, but one thing jumped out immediately: you have semicolons after all your CSS rules. These need to be removed. Here's an example:
Code:
.prod_headline { text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; color: #000000; font-weight: bold; font-style: normal; }; <--- Remove this semicolon
Firefox seems to be having this same issue, though I'm not yet sure why. However, it would point to this being an IE/Win bug, not an IE/Mac bug as I'd previously thought.
(Last edited by Millennium; Mar 15, 2005 at 12:23 PM. )
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Moderator
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Mar 16, 2005, 09:02 AM
 
Originally posted by Millennium:
Firefox seems to be having this same issue, though I'm not yet sure why. However, it would point to this being an IE/Win bug, not an IE/Mac bug as I'd previously thought.
Yup, Opera as well.
     
Mac Elite
Join Date: Mar 2001
Location: München, Deutschland
Status: Offline
Reply With Quote
Mar 16, 2005, 02:12 PM
 
Originally posted by Millennium:
I'm still looking, but one thing jumped out immediately: you have semicolons after all your CSS rules. These need to be removed. Here's an example:
Code:
.prod_headline { text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; color: #000000; font-weight: bold; font-style: normal; }; <--- Remove this semicolon
Firefox seems to be having this same issue, though I'm not yet sure why. However, it would point to this being an IE/Win bug, not an IE/Mac bug as I'd previously thought.

I just worked over all .css classes and... now it works! Awesome, Millennium, thanks!

PB.
Aut Caesar aut nihil.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2