Hey all. I hate my first post to be a plea for help, but... well, I was looking for a solution and found this forum. Searched for a CSS and XML and found nothing.
I have a page with a field that holds XML generated when the user enters information in a popup input form. I want to use css to simply make the XML readable for the user. No translation, interpretation, etc.
Knowing diddly about css (I've never done anything out of the ordinary before), I assumed I could apply it to the XML that I insert onto the page.
This works fine in Firefox, is a little funky in Opera, but doesn't do much of anything in IE7.
Can anyone tell me what I'm doing wrong?
XML sent to browser:
<?xml version="1.0" encoding="utf-8"?><companyData> <company name=""><name>Company Name</name><staffing>Staffing</staffing><workStatus>Work Status</workStatus><deliveries>Deliveries</deliveries><comments>Comments</comments><equipment>Equipment</equipment></company><company name="Training Example Company"><name>Training Example Company</name><staffing>72</staffing><workStatus>On track</workStatus><deliveries>None</deliveries><comments>None</comments><equipment>books</equipment></company><company name="Steel Workers 354.com Inc."><name>Steel Workers 354.com Inc.</name><staffing>19</staffing><workStatus>On schedule</workStatus><deliveries>None</deliveries><comments>Work progressing well. No problems.</comments><equipment>1 crane, 1 generator</equipment></company><company name="Thoma Electric"><name>Thoma Electric</name><staffing>19</staffing><workStatus>Behind schedule by 2 days</workStatus><deliveries>1 case romex</deliveries><comments>three guys called in sick</comments><equipment>panel truck</equipment></company><company name="UseYourClub"><name>UseYourClub</name><staffing>6</staffing><workStatus>Good</workStatus><deliveries>ice Cream</deliveries><comments>noce kids</comments><equipment>Roller skates</equipment></company></companyData>
Firefox results:
IE results:
CSS (as of this moment):
companyData {display:table; border-collapse: separate; border-spacing: 20px; }
company {display:table-row; font-family:arial; font-size:90%; color:black; width:5em }
name {display:table-cell; font-family:arial; font-size:90%; color:blue; width:200px; padding:5px;}
staffing {display:table-cell; font-family:arial; font-size:90%; color:black; width:50px; padding:5px;}
workStatus {display:table-cell; font-family:arial; font-size:90%; width:100px; padding:5px;}
deliveries {display:table-cell; font-family:arial; font-size:90%; width:100px; padding:5px;}
comments {display:table-cell; font-family:arial; font-size:90%; width:200px; padding:5px;}
equipment {display:table-cell; font-family:arial; font-size:90%; width:100px; padding:5px;}
Any words of guidance would be greatly appreciated.
Thanks,
Kary





Reply With Quote


Bookmarks