Click here to Skip to main content
11,704,768 members (51,636 online)
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
0 Sergey Alexandrovich Kryukov 658
1 OriginalGriff 485
2 Andy Lanng 275
3 CPallini 242
4 Maciej Los 225
0 OriginalGriff 8,864
1 Sergey Alexandrovich Kryukov 8,245
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2015
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