|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello, Im trying to learn XML from tutorials (WC3, XML.COM)
I am attempting to make a simple web page, but have come across a few problems that i cannot find a solution to from the tutorials or on forums. I am trying to change the XML document background color, like the HTML <body bgcolor="#999999"> XML document: Code:
<?xml version="1.0" ?>
<?xml-stylsheet type="text/css" href="main.css"?>
<document>
<para>Hello world!</para>
</document>
CSS document: Code:
document
{
display: body;
background-color: #ff00cc;
}
para
{
display: block;
}
With this i get document background-color as the para's text background color. Any suggestions? Thanks in advance. |
|
#2
|
|||
|
|||
|
In your CSS file:
body {background: #999999;} |
|
#3
|
|||
|
|||
|
New to XML, I came here with a similar problem in that my page displays a white border. I have tried ricstr's after fishing through a few books. Using mulligh's code with background set in the .css, I still have a white background (IE6, SP1 etc).
body {background: black;} document { display: body; background-color: #ff00cc; } para { display: block; } |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML Document background color |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|