SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: XHTML as application/xhtml+xml
-
Jun 29, 2005, 11:29 #1
- Join Date
- Mar 2005
- Location
- Rio de Janeiro - Brazil - South America
- Posts
- 409
- 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 helpLast edited by Maujor; Jun 30, 2005 at 03:50. Reason: Solved! - Links no more relevants
Mauricio Samy Silva
http://www.maujor.com/
-
Jun 30, 2005, 02:42 #2
- 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');}
-
Jun 30, 2005, 03:51 #3
- 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.
-
Jun 30, 2005, 03:52 #4
- Join Date
- Mar 2005
- Location
- Rio de Janeiro - Brazil - South America
- Posts
- 409
- 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/
-
Jun 30, 2005, 04:03 #5
- Join Date
- Jun 2005
- Location
- Belgium
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Maujor
-
Jun 30, 2005, 05:06 #6
- Join Date
- Mar 2005
- Location
- Rio de Janeiro - Brazil - South America
- Posts
- 409
- 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