aah, my css doesn't work in Firefox?

Tim

New Member
www.timvandevathorst.nl

This is really wierd, i don't know what to do. I checked my code for mistakes and i could not find them. My site works good on Safari and Chrome but not at Firefox!

If you know what it is please tell me! Or if you have other tips i'm happy to hear them to.

Thanks,

Tim
 

Phreaddee

Super Moderator
Staff member
the problem lies in your font face rule.
Code:
font-family:font1;
src: url('../font/font1.ttf'),
}

I'm sure anyone with a keen eye can spot the problem.
 

Phreaddee

Super Moderator
Staff member
in css the comma is used when you have two styles that both have similar styles for instance

h1, h2, h3, h4, h5, h6 {
font-family:verdana;
}

what happened was firefox was searching for the next style to assign to but couldn't so had a hissy fit and died.

I think the webkit engine is a bit more forgiving of such things which is why it worked in both safari and chrome.
 

PapaGeek

New Member
My favorite quote comes from Andrew s. Tannenbaum, Computer Networks, p 254


"The nice thing about standards is that there are so many to choose from."


I've been writing a Javascript to change css files based on page width. That quote has been the backbone of all the work I've done so far.
 
Top