Click here to Skip to main content
12,405,088 members (66,482 online)
Rate this:
 
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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2016
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