![]() |
|
|
|||||||
![]() |
XML - Invisible Background in Firefox. |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Take a look at http://www.geocities.com/jamesqian2001/test.xml .
Basically, there is a bug in Firefox that does not display the background color/picture for the body tag. Is there any possible workaround for this? Sneamia |
|
|
|
|
#2 |
|
Posts: n/a
|
Sneamia wrote:
> Take a look at http://www.geocities.com/jamesqian2001/test.xml . > Basically, there is a bug in Firefox that does not display the > background color/picture for the body tag. Is there any possible > workaround for this? Replace output type html with xml. Then you get a purple background. You're trying to do two conflicting things here, and FF is acting correctly in refusing to be duped. If you specify output type html then XSLT will create the output file in SGML -- the original HTML without Null End Tags. You can test this by using a standalone XSLT processor and examining the output, which says <br></br> and <link></link>. If you specify output type xml then it will create XML. You are specifying html but then giving the Document Type details as XHTML. So you have an old-style HTML document masquerading as XML, or vice versa. If you want to create output HTML with a DocType Declaration, use HTML 4.xx or something, and code accordingly. If you want to output valid XHTML, set the output type to xml. ///Peter -- XML FAQ: http://xml.silmaril.ie/ |
|
|
|
#3 |
|
Posts: n/a
|
I see.
The background is still a bit funny, but its getting there. Thanks. |
|
|
|
#4 |
|
Posts: n/a
|
Yea, I changed that, but only the background for the text is purple.
Why is that? Is there anything else I screwed up on? |
|
|
|
#5 |
|
Posts: n/a
|
Sneamia wrote:
> Yea, I changed that, but only the background for the text is purple. > Why is that? Is there anything else I screwed up on? What else ought to be purple? Your CSS says any element with the class value "site". ///Peter |
|
|
|
#6 |
|
Posts: n/a
|
Well, the body.
I set the body background as purple, and only the background of the text is purple. |
|
|
|
#7 |
|
Posts: n/a
|
Sneamia wrote:
> Well, the body. > I set the body background as purple, and only the background of the > text is purple. I think we must be at cross-purposes here. Can you screenshot what you're seeing and post it somewhere we can all view it. I've put what I see at http://silmaril.ie/downloads/purple.png What I'm unclear about in your post is that the body *is* the text. I don't see what you mean when you say *only* the background of the text is purple. If body is set to background-color:#CC00FF; then *all* the window background will be purple. If you're seeing something else, then I think you should try reinstalling the browser first. ///Peter -- XML FAQ: http://xml.silmaril.ie/ |
|