|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
external css, body-tag
Hi,
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): Code:
body
{
font-family: helvetica, arial;
font-size: 12px;
color: #000000;
background-color: #FFFFFF;
margin: 0px;
border: 0px solid black;
}
What is wrong? |
|
#2
|
|||
|
|||
|
*bump*
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
Really strange!!
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! Good luck.
__________________
Cheers, Dave |
|
#5
|
|||
|
|||
|
Here's a link to the page I wrote it for: http://home.swipnet.se/~w-63611/NyaFS/index.html But I have to warn you - it is in Swedish
|
|
#6
|
|||
|
|||
|
I've written a small test-page displaying the error as well. Here's a link: http://home.swipnet.se/~w-63611/NyaFS/test.html (This one is in English)
|
|
#7
|
|||
|
|||
|
Solution
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... |
|
#8
|
|||
|
|||
|
Ahh, sweet! Thanks!
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > external css, body-tag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|