2008-01-25

Test CSS codes


TEST


Since we need to list lots of R codes, I found a more convenient way (instead of the table) to demonstrate them from the following URL: http://synnwang.blogspot.com/2006/11/blog.html

Thank the author for sharing the tips, codes as well as the pictures.

ALL I have to do is to put the following section into the CSS template section,

code {
display: block;
font-family: 'Courier New';
overflow: auto;
border: 1px solid #ccc;
padding: 1px 10px 10px 21px;
max-height: 1200px;
line-height: 1.2em;
letter-spacing: 0px;
margin: 5px 5px 0 15px;
}


code.general{
font-size: 9pt;
color: #FFFFFF;
background: #000 url(http://ky.hsiao.googlepages.com/sBar_code.gif) left top repeat-y;
}

code.R{
font-size: 9pt;
color: #33CC00;
background: #000 url(http://ky.hsiao.googlepages.com/sBar_R-code.gif) left top repeat-y;
}

code.html{
font-size: 9pt;
color: #FFCC00;
background: #000 url(http://ky.hsiao.googlepages.com/sBar_html.gif) left top repeat-y;
}



Then use < code class="R"> put R codes here </code> to bracket your codes!