Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#ASP:NET
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:
 
.style5
        {
            width: 150px;
            height: 11px;
            z-index: 1;
            left: 44px;
            top: 1px;
            position: absolute;
        }
 
How to reduce the height?
Regards.
Posted 10-Jan-13 5:12am
Comments
richcb at 10-Jan-13 11:22am
   
Do you have any height set in-line with the table?
Rate this: bad
good
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.
 
—SA
  Permalink  
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,010
1 OriginalGriff 447
2 Manas Bhardwaj 378
3 Tadit Dash 330
4 Damith Weerasinghe 320
0 Sergey Alexandrovich Kryukov 9,625
1 OriginalGriff 6,065
2 Peter Leow 4,500
3 Maciej Los 3,565
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid