0

Hi
Sorry for my bad english.

I am using a <tbody> section and I had set height of Tbody .But When the number of rows are small the height of the row will increase.

I have tried to use max-height instead of height. But it doesn't works. I am using Mozilla Firefox.

Can anyone give a solution for this.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by anoopkh
0

you tried to set heights to the rows? and you shouldnt use max-height for the tbody, cause you need min-height in the problem you have

0

Hello
Thanks for the replies.

I solved it by adding the following javascript

<script>
var tbody=document.getElementById('collection_body');
if(tbody.scrollHeight<=280) tbody.style.height="auto";
</script>

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.