Link to home
Start Free TrialLog in
Avatar of Badder
Badder

asked on

CSS compatibility problems.

Greets.

After glancing at the CSS 2 Specification, I wrote the following style sheet:

BODY {
    font-family:"Verdana", "Arial", sans-serif; font-style:normal;     font-size:medium;
    background-image:URL(Images/Universe.gif);     background-repeat:repeat; background-attachment: fixed;
    text-decoration:none; text-transform:none;
      color:#CDC9B4;
}

@font-face {
 font-family: "Verdana";
 src: local("Verdana"), url("System/Verdana.ttf") format ("type-1");
}

A:link {
 color: #A6CAF0;
 text-decoration: none;
}

A:visited {
 color: #A6CAF0;
 text-decoration: none;
}

A:active {
 color: #A6CAF0;
 text-decoration: none;
}

TABLE {
    border-top:0; border-bottom:0; border-left:0; border-right:0;     border-top-width:0; border-bottom-width:0; border-left-width:0;     border-right-width:0; border-style:none;
    font-style:normal; font-size:medium;
    text-decoration:none; text-transform:none;       
}

TH {
    font-weight:lighter;
    color:#BFA262;
}

This works perfectly with IE 4 but it gets all messed up with Netscape. Do you know where the problem might be? The only thing I know is that if I remove the TH and its specifications it will work better.

Thank you in advance.
Avatar of genef
genef

First of all, try to exclude complicated colors, just use simple ones. They may mess everything, though this is not obvious.
I'm not sure what else could help,
Gene
Netscape does not fully support CSS yet. One of the areas it really lacks is CSS support for tables.  Gecko promises to fully support CSS like IE5 does now...

You could create your own class and add it to the individual table cells:

..tblHeader {
    font-weight:lighter;
    color:#BFA262;
}

<th class="tblHeader">


Kurt
That should be a single dot on tblHeader:

..tblHeader {
    font-weight:lighter;
    color:#BFA262;
}

Kurt



It is adding another period for some reason! It should be a single period in front of tblHeader like so

>>   .tblHeader{
>>    font-weight:lighter;
>>    color:#BFA262;
>>   }


ASKER CERTIFIED SOLUTION
Avatar of nettrom
nettrom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
About the last paragraph added to nettrom's manifesto (which, I might add, only expounds my comment!) =)

IE4/5's handling of CSS may be 98% of what the standard holds, but this is almost double what Netscape handles!  So saying that IE4/5's handling of CSS is "sucky" is taking it a little too far?

By the way, nettrom, you owe me.  Or have you forgotten???

Kurt

ack Kurt, I've totally forgotten.  sorry.  refresh my memory, please. if you don't want to do it here, mail me on warnckew@online.no

re the 'sucky' comment... yes, it's a slightly provocative exaggeration, it's not totally bad.  and yes, compared to Netscape it has great CSS-handling.  but I've never said that Netscape doesn't suck when it comes to CSS either (at least I haven't tried to, but I might've come across as saying so).

I'm fairly biased when it comes to IE4/5 and CSS.  back when IE5 was released about a year ago, Microsoft went out and claimed that things would be so much better.  they aren't.  I've run IE5 through the CSS 1 test suite, and compared to the CSS standard the result is not at all pleasing.  that they don't support pseudo-classes like 'first-letter' and 'first-line', but do support CSS2 'hover' tells me that someone, somewhere hasn't got their priorities straight.

I'd rather have a really, really, really good CSS1-implementation over a partly good CSS1 + CSS2-implementation any day.

the only browsers I feel don't suck when it comes to CSS is Mozilla and Opera.  I know I'm very biased about the latter. :)

(I'll be happy to move this into a different question if that's necessary, like creating a 0-point question just for the thread, if that's not against E-E policies.)
Just a thought but I have added imported style sheets based on the browser using a little coding...  I know it isn't a solution but it might do as a work around.

My site basically states that if you don't have IE 5 then you are missing half the effects.  I am IE partial obviously.  I refuse to condone anything Netscape as long as AOL has their teeth in it.

Former Netscape Fanatic
Entropy
Avatar of Badder

ASKER

Both KMartin and Nettrom elucidated me of the source of the problem.. As I don't have much time to search the web, those links proved to be very useful.

Thank you all.