CSS not visible with XHTML decleration

Discussion in 'HTML' started by peteraward@gmail.com, Sep 28, 2006.

  1. Guest

    I have a page (valid by w3c, for CSS and XHTML), but when it has the
    xml/XHTML/html decleration, the CSS doesn't work. (FF1507Win98)

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    ....head...
    <link rel="stylesheet" type="text/css" title="Blue and Orange"
    href="page.css" />
    ....close head, body with div elements...
    ....end html...

    I'm working on my local server (Apache 2.0.59, with PHP 5).

    When the xml/XHTML/html decleration is replaced by just "<html>", the
    css is loaded, and renders perfectly.
     
    , Sep 28, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    6
    Views:
    433
    Andy Dingley
    Sep 29, 2006
  2. Tapeesh

    extern decleration intialization

    Tapeesh, Nov 10, 2005, in forum: C Programming
    Replies:
    17
    Views:
    853
    Chris Torek
    Nov 12, 2005
  3. xhtml champs
    Replies:
    0
    Views:
    537
    xhtml champs
    Aug 1, 2011
  4. xhtml champs
    Replies:
    0
    Views:
    1,044
    xhtml champs
    Aug 2, 2011
  5. Jurjen de Groot
    Replies:
    0
    Views:
    309
    Jurjen de Groot
    May 19, 2008
Loading...

Share This Page