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.

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

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>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.