[R-SIG-Finance] R2HTML

Jeff Ryan jeff.a.ryan at gmail.com
Thu Mar 19 21:03:45 CET 2009


Hi Jorge,

You really need to have this redirected to R-help.  Or possibly even a
CSS/web mailing list.

Thanks,
Jeff



On Thu, Mar 19, 2009 at 12:53 PM, Jorge Nieves
<jorge.nieves at moorecap.com> wrote:
> 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]]
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



-- 
Jeffrey Ryan
jeffrey.ryan at insightalgo.com

ia: insight algorithmics
www.insightalgo.com



More information about the R-SIG-Finance mailing list