Hey Guys,
I have got a query.
1. I created CSS with following content :
-----------------------------------------
.tableClass {
font-size: 10em;
}
.tableClass TBODY {height =30px;overflow =scroll;
font-size: 1em;
}
-----------------------------------------
2. Next, I created an HTML with following content
<table class="tableClass">
<thead>
<tr><th scope="colgroup" colspan="2">(header table)</th></tr>
</thead>
<tbody id="sourceSummaryForm:_idJsp11:tbody_element">
<tr><td>Source 1</td><td>Type 1</td></tr>
<tr><td>Source 3</td><td>Type 3</td></tr>
</tbody>
</table>
In above HTML, I specified the style class for <Table> and assumed the style for tbody would be picked as specified in CSS but seems it didn't work. Am I trying to achieve something impossible?
P.S. My main problem is I got
JSF Datatble, and I want a fix header and scrolling body. JSF Datatable has styleClass attribute and don't allow me to specify one for tbody. I know few workaround, but just trying to see if CSS can solve problem.
[ December 19, 2006: Message edited by: Varun Khanna ]