Click here to Skip to main content
13,092,310 members (59,294 online)
Rate this:
Please Sign up or sign in to 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:

            width: 150px;
            height: 11px;
            z-index: 1;
            left: 44px;
            top: 1px;
            position: absolute;

How to reduce the height?
Posted 10-Jan-13 5:12am
richcb 10-Jan-13 11:22am
Do you have any height set in-line with the table?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100