473,378 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Style Sheet disappears when content delivered as XHTML

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
3 1614
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mike | last post by:
I have a page with the following code (just the essentials...) Anyway, the style sheet loads and formats perfectly locally on all my test browsers (IE 6, NS 7.1, K-Meleon, Phoenix/Mozilla, Opera),...
7
by: Bura Tino | last post by:
Hi, Going forward, what's better to use <td height="20"> or <td style="height:20;">
1
by: blue | last post by:
My app draws a bunch of tables on the page and has a form for the user to enter data and submit. The form is contained within a User Control called DecisionCtl. When they submit the form, a bunch...
3
by: Chris | last post by:
Hi I have another style sheet question: We effectively have a page that has two text boxes on it. We would like one text box to be in one style and the other text box to be in another style....
1
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. ...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
1
by: abaybas | last post by:
I'm creating a page in which a certain "content" part of the page is refreshed using ajax. I do this by using a div#content, and it's child div#container. the code: ... ...
2
by: raghulvarma | last post by:
I have a master page like <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
4
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.