Click here to get back home

css file won't link to xhtml

 HomeNewsGroups | Search

comp.infosystems.www.authoring.html - discuss HTML authoring here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
css file won't link to xhtml Alexander Bolotnov 04-20-2005
Posted by Alexander Bolotnov on April 20, 2005, 10:15 pm
Please log in for more thread options


I am trying to read xhtml spec and use one of its examples about css2 in
xhtml.

The example on the PDF paper with internal styles defenition works just
fine. When I try to use an external file with css defs it just does not work
show/hide quoted text
xhtml examples link style sheets and I would like to know the reason why it
is not working for me.

Here is the html file:

show/hide quoted text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
show/hide quoted text

and here is the CSS file:

hehe {
color: red;
font-family: monospace;
font-weight: normal;
}

What is wrong, can someone tell me please?





Posted by David Dorward on April 20, 2005, 9:31 pm
Please log in for more thread options


Alexander Bolotnov wrote:

show/hide quoted text

show/hide quoted text

show/hide quoted text

The Doctype you specified doesn't include a "hehe" element.

What content type are you serving the file with?

--
show/hide quoted text
Home is where the ~/.bashrc is


Posted by Andy Dingley on April 20, 2005, 10:47 pm
Please log in for more thread options


On Wed, 20 Apr 2005 21:15:36 +0200, "Alexander Bolotnov"

show/hide quoted text

Which XHTML Spec ?
URL ?

show/hide quoted text
Which PDF Paper ?
URL ?

show/hide quoted text
Do I understand this right ?
The example you quote _is_ working. You have another example that links
to "an external file with css defs" that doesn't work. What does this
broken example look like ?

show/hide quoted text

No - I don't know what is wrong, so I can't tell you why it is not
working.

For me, I have the styles applied and it appears to "work". Give us the
URL of your server and we can look at your example that isn't working.

show/hide quoted text
and .hehe {} (which works in all HTML versions) Or else use
namespacing, but that's not usually a good idea.



Posted by Alexander Bolotnov on April 21, 2005, 11:57 am
Please log in for more thread options



show/hide quoted text

show/hide quoted text

show/hide quoted text
header.

show/hide quoted text

I kind of figured this out - if I serve the file as xml type from httpd then
it works. If I open it with my brower as an html page. It does not.

Thanks to all.

the papers and specs I am reading some from www.w3c.org



Posted by Henri Sivonen on April 21, 2005, 1:21 am
Please log in for more thread options



show/hide quoted text

The PI only works for real XML--not text/html.

--
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html


Similar ThreadsPosted
Link inside the ZIP file ? December 24, 2006, 4:07 am
Hyper link that opens the newest file in a dir? March 25, 2005, 1:43 pm
Forcing retrieval of a fresh copy of a file with a link May 30, 2008, 8:47 am
Target frame link anchor in new parent html file December 13, 2004, 3:47 am
Link to a frames based page links to wrong html file. June 14, 2006, 6:53 pm
multiple instances of a CSS link due to server-side file inclusion and tools requirements November 18, 2008, 12:03 am
in Firefox March 19, 2008, 9:57 pm
File Uploads using October 13, 2004, 9:19 pm
html link from browser link to xml editor September 9, 2004, 5:53 am
Playing a local mpeg file from a local HTML file... July 24, 2005, 6:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy