HighDots Forums  

Style Sheet disappears when content delivered as XHTML

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Style Sheet disappears when content delivered as XHTML in the Cascading Style Sheets forum.



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

Default Style Sheet disappears when content delivered as XHTML - 11-20-2004 , 11:56 AM






This is weird. I have made a simple page using XHTML & CSS. It works great
on all browsers when the content is delivered as HTML:
http://www.auriance.com/clientes/cpe
However, when I deliver the content as XHTML, the style sheet is not
interpreted on Opera, Firefox and the Mozilla Suite:
http://www.auriance.com/clientes/cpe/index.php

Source code can be viewed here:
http://www.auriance.com/clientes/cpe/index.phps

I changed charset to iso-8859-1 and utf-8, same problem. What am I missing?

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.osresources.com

Reply With Quote
  #2  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Style Sheet disappears when content delivered as XHTML - 11-20-2004 , 12:02 PM






On Sat, 20 Nov 2004 15:56:10 -0200, Kerberos <me (AT) privacy (DOT) net> wrote:

Quote:
This is weird. I have made a simple page using XHTML & CSS. It works great
on all browsers when the content is delivered as HTML:
http://www.auriance.com/clientes/cpe
However, when I deliver the content as XHTML, the style sheet is not
interpreted on Opera, Firefox and the Mozilla Suite:
http://www.auriance.com/clientes/cpe/index.php
Because in XHTML a comment <!-- --> inside a <style> element really is
a comment. So all your styles are commented out.

It's almost always a good idea to use an external stylesheet anyway.

Steve



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

Default Re: Thanks! - 11-20-2004 , 02:19 PM



Em Sat, 20 Nov 2004 18:02:31 +0000, Steve Pugh <steve (AT) pugh (DOT) net> escreveu:

Quote:
Because in XHTML a comment <!-- --> inside a <style> element really is
a comment. So all your styles are commented out.

It's almost always a good idea to use an external stylesheet anyway.

Steve
That's right!! I removed these comments (that Dreamweaver added just in
case some one browses my site with Mosaic or Netscape 1.0!!), and it
worked just fine.
I read that comments were interpreted as such in XHTML PDF book, but until
I put into practice, I didn't really understand what this would mean.
Only Internet Explorer doesn't respect the XHTML specification. No
surprise
Thank you anyway!

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.osresources.com


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.