Page 1 of 1

CSS body problem

Posted: Sun Jan 16, 2005 10:50 am
by Archy
I have the following CSS in a seperate file:

Code: Select all

<style type="text/css">
<!--
body &#123;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 9px;
   color: #6e6e6e;
&#125;
//-->
</style>
And then I include that file in the page:

Code: Select all

<link rel="StyleSheet" href="css.css" type="text/css" media="screen" />
However, it does not seem to like the styling the text in Firefox; it works perfectly in IE.

Anyone know a way around this, or what's wrong with this?

Posted: Sun Jan 16, 2005 12:55 pm
by wwwapu
It seems like the problem is with the html comments in css file.

Posted: Sun Jan 16, 2005 7:03 pm
by feyd
inside a CSS file, there's no need to "comment" out the code, nor store it inside any HTML tags, as it's a seperate entity standard.