XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 10th, 2003, 07:53 PM
ricstr ricstr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 7 ricstr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m 53 sec
Reputation Power: 0
Question XML Document background color

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.

Reply With Quote
  #2  
Old August 11th, 2003, 10:04 AM
mulligh mulligh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 mulligh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In your CSS file:

body {background: #999999;}

Reply With Quote
  #3  
Old March 3rd, 2004, 02:02 PM
Avalan Avalan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Arkansas
Posts: 3 Avalan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Avalan
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;
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML Document background color


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway