Shem Posted May 15, 2006 Share Posted May 15, 2006 FF won't link to my css filemy link:<link rel="stylesheet" href="plastitrade.css" type="text/css" />IE picks it up?the css works if i put it in the html file?anyone encountered a prob like this?its irritating as i can't really test my pages locally nowbtw this is the first time i've encountered this probcheersShem Link to comment Share on other sites More sharing options...
boen_robot Posted May 15, 2006 Share Posted May 15, 2006 That's odd... are you in qirks mode or strict mode. In other words, do you have a doctype? That might be the problem (but I have never encountered it though). Link to comment Share on other sites More sharing options...
Shem Posted May 15, 2006 Author Share Posted May 15, 2006 That's odd... are you in qirks mode or strict mode. In other words, do you have a doctype? That might be the problem (but I have never encountered it though).<{POST_SNAPBACK}> this is the opening of my page:<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Plastitrade</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="plastitrade.css" type="text/css" /></head> Link to comment Share on other sites More sharing options...
boen_robot Posted May 15, 2006 Share Posted May 15, 2006 We've got a winner! In HTML 4.01, there is no slash at the end of the link tag and that's why FF ignores it- because it's not valid. If you use the XHTML DTD, then it should work. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Or for strict 1.1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> Link to comment Share on other sites More sharing options...
Shem Posted May 15, 2006 Author Share Posted May 15, 2006 ok so i've changed the link, and taken out the '/' but still no luck? <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Plastitrade</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="plastitrade.css" type="text/css"></head> is that what i was meant to dothanks for all your help btwShem Link to comment Share on other sites More sharing options...
boen_robot Posted May 15, 2006 Share Posted May 15, 2006 Hmm... try adding the URL to the DTD. Something like: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Still seems really odd actually. I'm starting to ask myself if you actually have the lastest FF (it might be some old version's bug...). I've never had this issue. If that doesn't work, then I'm out of ideas. thanks for all your help btwYou're welcome . Link to comment Share on other sites More sharing options...
Shem Posted May 15, 2006 Author Share Posted May 15, 2006 ok tried that, no luck... <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Plastitrade</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="plastitrade.css" type="text/css"></head> my FF just updated last week? how do i see which version i have, but still that wouldmean my other sites wouldn't work either, as this is the way i've allways linked mycss files?i'm soo stumped, i've tried searching the net too, nothing remotely similar to this prob? Link to comment Share on other sites More sharing options...
boen_robot Posted May 15, 2006 Share Posted May 15, 2006 One last idea. This time I'm TRULY out of ideas...remove the <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> I mean, is it really needed? Is that an ASP script or what? It shouldn't be in the output. I must say I was thinking about that scince the beginning, but I have seen a page which uses it and yet has CSS applyed to it, so up until now I didn't though it's the problem. I'm out. If I post another post here, I ask the moderators to give me a warning or something (cause I already feel like a flooder or something ). Link to comment Share on other sites More sharing options...
Shem Posted May 15, 2006 Author Share Posted May 15, 2006 One last idea. This time I'm TRULY out of ideas...remove the<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> I mean, is it really needed? Is that an ASP script or what? It shouldn't be in the output. I must say I was thinking about that scince the beginning, but I have seen a page which uses it and yet has CSS applyed to it, so up until now I didn't though it's the problem. I'm out. If I post another post here, I ask the moderators to give me a warning or something (cause I already feel like a flooder or something ). <{POST_SNAPBACK}> unfortunately I have tried that before....all my other pages are set up the same, and they work?? i'm currently posting on theFF forums, hopefully something comes of that, otherwise i'll end up haveing to putmy styles on every bloody page.thanks for trying tho'Shem Link to comment Share on other sites More sharing options...
Shem Posted May 15, 2006 Author Share Posted May 15, 2006 ok so if i give the full path to the css file, it works?? <link href="C:\Inetpub\wwwroot\plastitrade\plastitrade.css" rel="stylesheet" type="text/css"> Link to comment Share on other sites More sharing options...
aspnetguy Posted May 15, 2006 Share Posted May 15, 2006 I am going to ask a dumb question! Is the file that you are linking the stylesheet to in C:\Inetpub\wwwroot\plastitrade\ as well?EDIT: NM...if it wasn't IE wouldn't pick it up either. Sorry. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now