Using CSS:
Place the CSS in the head section of your page - or a separate style sheet.
CSS:
<style type="text/css" media="screen">
.CCreportTable {
width:100%;
background-color:#ff0000; /* red background */
color: #000000; /* black font */
padding: 10px;
border:1px solid #000000;
}
</style>
HTML:
<table class='CCreportTable'>
and as a bonus, here’s how to change it using jquery
place this in the head section - after a call to include jquery.
jQuery:
<script type="text/javascript">
$(document).ready(function() {
$(".CCreportTable").css('backgroundColor', '#0000ff'); // change bg colour to blue.
});
</script>
Hope that helps,
Red