I would like set a div’s width & height values to be the same as a table’s cell automatically.
Table column <td> will be dynamic width & height.
Purpose : User have to click each cell of table.
Let’s say,
<table>
<tr>
<td> <-------- dynamic width & height
<commandLink>
<div> <---------- I cannot click this <div> as link, can you provide me?
//nod ata
</div>
</commandlink>
</td>
</tr>
</table>
Just apply
but you will need to specify a height for the
tdelement.Anyway by default a div is already fitting the whole width so
height: 100%is enough.If your div has to be clickable either you append a
<a>tag inside the div with the following styleor you attach an handler for
onclickevent to the div via JavaScript.