Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The height of a 'table' is not reducing even if I set the value to 5px in script side. Its size remains same with 11px.
My code:

CSS
.style5
        {
            width: 150px;
            height: 11px;
            z-index: 1;
            left: 44px;
            top: 1px;
            position: absolute;
        }


How to reduce the height?
Regards.
Posted
Comments
Richard C Bishop 10-Jan-13 11:22am    
Do you have any height set in-line with the table?

The actually rendered HTML table size is defined by the content of the cells, not just the style. It cannot be less then that required to fit in its content.

—SA
 
Share this answer
 
does your table contain any data (text)? if so, the row height depend on the size of the font. decrease the font size and check. if not send us your HTML code please.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900