SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XHTML as application/xhtml+xml

    Hello,
    I'd like to use the Mathias code: XHTML content negotiation through PHP for serve my XHTML 1.1 pages.
    All works fine, but the body background imagem (simulates shadows and background-colors for navigations columns) stops extends along y-axis when align whith the bottom of the header. This happens only when MIME is application/xhtml+xml (compliant browsers).
    Well, I hosted a test page at:
    http://www.maujor.com/contentnego.php Link removed - xhtmlcoder point out the solution!

    If you see it in IE all is OK, but in Firefox you'll notice the lost background.
    And here the document served as text/html for good browsers: http://www.maujor.com/index.php Link removed - xhtmlcoder point out the solution!
    Thanks for any welcome help
    Last edited by Maujor; Jun 30, 2005 at 03:50. Reason: Solved! - Links no more relevants
    Mauricio Samy Silva
    http://www.maujor.com/

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Remember with application/xhtml+xml the root is html thus apply the image to html rather than body. For example: html { background-image:url('image.png');}

  3. #3
    SitePoint Member
    Join Date
    Jun 2005
    Location
    Belgium
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See MIME Test — CSS body Element Test:

    When served as text/html, the body element fills the whole viewport, whereas the html element fills the viewport when served as application/xhtml+xml.

  4. #4
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many Thanks Robert.
    OPS! Mathias just posted. - Thanks man for explanation and the script!
    Last edited by Maujor; Jun 30, 2005 at 03:54. Reason: Add Mathias
    Mauricio Samy Silva
    http://www.maujor.com/

  5. #5
    SitePoint Member
    Join Date
    Jun 2005
    Location
    Belgium
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Maujor
    OPS! Mathias just posted. - Thanks man for explanation and the script!
    You’re welcome! Hell, I just wanted to point out that your problem wasn’t caused by my script!

  6. #6
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes Mathias I know.
    I didn't realize that the XML root was the html element.
    Your script is great
    And is great too the #infobar of your site.
    I'm using your CSS code for that IE effect, and sending my visitors to "Browser Happy".
    Last edited by Maujor; Jun 30, 2005 at 05:41.
    Mauricio Samy Silva
    http://www.maujor.com/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •