CSS body problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Archy
Forum Contributor
Posts: 129
Joined: Fri Jun 18, 2004 2:25 pm
Location: USA

CSS body problem

Post 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?
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

It seems like the problem is with the html comments in css file.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply