Hi,

I have an object called "invoice" and I want to print the output x.
in addition I want to edit the printout using CSS and I don't know how.
Right now everything display inline without any spaces and I want to change it to be one by one horizontally and font color red.

This is how I try unsuccessfully.... to do that.
any idea for help ?

Thanks in advanced !

HTML Code:
<head>
<meta charset="utf-8">
<style>
.yo{
color:red;
}
</style>
</head>

<body>

<script>
var invoice=new Object();
invoice.height=30;
invoice.width=50;
invoice.approve=false;
invoice.number="1140001764";

for(var x in invoice){
document.write(invoice[x]);
invoice[x].className="yo";
}

</script>

</body>