I'm not 100% sure what you mean but if I'm correct then this is the closest I can come up with:
Code:
<html><body><script lannguage="javascript">
var one = new Array();
var two = new Array();
var three = new Array();
var four = new Array();
var maxone=0;
var maxtwo=0;
var maxthree=0;
var maxfour=0;
var i=0;
var table;
one[i]="Colour";
two[i]="Red";
three[i]="Green";
four[i]="Blue";
i++;
one[i]="Blue"
two[i]="00";
three[i]="00";
four[i]="FF";
i++;
one[i]="Red";
two[i]="FF";
three[i]="00";
four[i]="00";
i++;
one[i]="Green";
two[i]="00";
three[i]="FF";
four[i]="00";
i++;
for(num=0; num<i; num++){
if(one[num].length>maxone){maxone=one[num].length+2}
if(two[num].length>maxtwo){maxtwo=two[num].length+2}
if(three[num].length>maxthree){maxthree=three[num].length+2}
if(four[num].length>maxfour){maxfour=four[num].length+2}
}
for(num=0; num<i; num++){
while(one[num].length<maxone){one[num]+="_"}
while(two[num].length<maxtwo){two[num]+="_"}
while(three[num].length<maxthree){three[num]+="_"}
while(four[num].length<maxfour){four[num]+="_"}
table+="\n"+one[num]+two[num]+three[num]+four[num];
}
alert(table);
</script></body></html>