HighDots Forums  

CSS works for IE but not Firefox

Website Design comp.infosystems.www.authoring.site-design


Discuss CSS works for IE but not Firefox in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
finbogey
 
Posts: n/a

Default CSS works for IE but not Firefox - 07-09-2006 , 10:42 PM








I've designed a fairly simple site that I want to take advantage of
CSS in. Unfortunately, the bit I've used so far only seems to show up
when viewed with IE and not Firefox (not sure about Mozilla at the
moment).

Here's the link from the applicable page:

<LINK REL="stylesheet" TYPE="text/css" HREF="dough1.css"
TITLE="dough">

And here's the css file referenced:

<style type="text/css">
<!--
BODY { color: #33CCCC; background: #800080; }

-->
</style>

I'm a total noob so feel free to hit me with obvious corrections.



fin

Reply With Quote
  #2  
Old   
dp
 
Posts: n/a

Default Re: CSS works for IE but not Firefox - 07-09-2006 , 11:02 PM






finbogey wrote:
Quote:
I've designed a fairly simple site that I want to take advantage of
CSS in. Unfortunately, the bit I've used so far only seems to show up
when viewed with IE and not Firefox (not sure about Mozilla at the
moment).

Here's the link from the applicable page:

LINK REL="stylesheet" TYPE="text/css" HREF="dough1.css"
TITLE="dough"

And here's the css file referenced:

style type="text/css"
!--
BODY { color: #33CCCC; background: #800080; }

--
/style

I'm a total noob so feel free to hit me with obvious corrections.



fin
Remove
<style type="text/css">
<!--
and
-->
</style>

from the css file you are including. <style type="text/css">... </style>
are only used for styles defined within the html page. They are not used in
an included css file.

<!-- and --> are html comments. They were only useful with css in very old
browsers. They serve no practical purpose within a css definition nowadays.

--
dp




Reply With Quote
  #3  
Old   
finbogey
 
Posts: n/a

Default Re: CSS works for IE but not Firefox - 07-10-2006 , 12:18 AM



On Mon, 10 Jul 2006 03:02:37 GMT, "dp" <noreplyhere (AT) hotmail (DOT) com>
wrote:

Quote:
finbogey wrote:
move
style type="text/css"
!--
and
--
/style

from the css file you are including. <style type="text/css">... </style
are only used for styles defined within the html page. They are not used in
an included css file.

!-- and --> are html comments. They were only useful with css in very old
browsers. They serve no practical purpose within a css definition nowadays.

Thanks, that did the trick. I knew it had to be something dead simple.

fin


Reply With Quote
  #4  
Old   
melissamarasigan@gmail.com
 
Posts: n/a

Default Re: CSS works for IE but not Firefox - 07-10-2006 , 03:08 AM



CSS works is not just for the Internet Explorer but it is also for the
Firefox too. We can encode it as an HTML document.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.