I am trying to apply CSS commands to finish formatting a data frame in
HTML. I am half way. I would like to format the first column (row
names). I would like to make the fonts darker and use a background
color.

I also would like to add different background color to columns with
names "var1" and "var2".

Does anyone have any ideas?




Hre is the R2HTML code:

      mytable = as.data.frame(x$tables$t1)
      HTMLCSS(file = file, CSSfile = CSSfile)
	HTML(mytable, file = file,
                   # align="center",
                    #innerBorder=2,
                    #digits =2,
                   # Border = 1,
                    row.names =TRUE,
                    #classfirstline = "firstline",
                    #classfirstcolumn = "firstcolumn",  
                    #BackGroundColor="#BBBBEE")




Here is the CSS code so far

TH { text-align: center; 
      color:"white";   
     font-weight: bold;
     background: yellow;
     vertical-align: baseline;
     background: "black";

}



.centered-table {
   margin-left: auto;
   margin-right: auto;
   text-align: center;
   background: #FFFFFF;
}



TD.cellinside {
	text-align: center;
	padding: 5 10;
	background: "#BBBBEE";
	text-align=right
}

Jorge Nieves



	[[alternative HTML version deleted]]

