By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,734 Members | 828 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,734 IT Pros & Developers. It's quick & easy.

Style Sheet disappears when content delivered as XHTML

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Sat, 20 Nov 2004 15:56:10 -0200, Kerberos <me@privacy.net> wrote:
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

Jul 21 '05 #2

P: n/a
Kerberos wrote:
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


What style sheet?

There is something that looks a bit like a stylesheet, but it starts with
"<!--" and ends with "-->", so it's a comment -- it's not a stylesheet.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./u2/stuck_in_a_moment_you_cant_get_out_of.ogg

Jul 21 '05 #3

P: n/a
Em Sat, 20 Nov 2004 18:02:31 +0000, Steve Pugh <st***@pugh.net> escreveu:
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 :D
Thank you anyway!

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.osresources.com
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.