December 23rd, 2003, 05:34 PM
external css, body-tag
I have a page where I want to use an external css file to specify the font-family and font-size of the body in all the pages that include that css-file. I include it by doing this: <link rel="stylesheet" type="text/css" href="../main.css" /> and in that file I have this (among other things):
It works in Opera 7.x but it doesn't work in IE 5.0, it ignores everything I put in there... It works if I copy the body tag to the page that should use it, but I don't want to do that...
font-family: helvetica, arial;
border: 0px solid black;
What is wrong?
December 25th, 2003, 06:29 AM
December 26th, 2003, 11:04 AM
Could you post the link the the page please?
That will help further to see the problem but it could be a case of you having set the boy properties different in the page itself which has higher priorities over the external css which is ignored.
December 26th, 2003, 11:46 AM
I've tried it in MSIE6 and works...
I've also checked the compatibility between the CSS properties you've used and MSIE5 but I haven't found anything wrong!
TRshady is right: post a link to the page!
December 26th, 2003, 02:02 PM
December 26th, 2003, 02:07 PM
December 26th, 2003, 02:20 PM
External css files should not have the <style> tags in them. They should have no HTML at all....
remove the <style..> </style> tags and it should work...
December 26th, 2003, 02:23 PM