Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tbody padding-top ignored by IE

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Why won't IE honour the tbody padding-top ?
Code:
#ajwin {
    display:none;
    background-color:#fff;
    z-index:999; 
    width:685px;
    height:200px !important; 
    position:absolute;      
    margin-top:-15px;
    margin-left:-5px;
    border:0px solid #000;
    overflow:auto; 
    }

#ajwin thead {
    height:20px !important;
    display:block; 
    width:665px;    
    position: fixed; 
    background-color:#fff;
    z-index:9999; 
    margin-top:-2px;       
    }
    
#ajwin tbody {
    height:180px !important;
    display:block;  
    width:100%;    
    padding-top:15px !important;     
    }

I have a div with an overflow, I set the thead as fixed so when the content is scrolled the table headings stay visible, only I need to compensate as the first table row in the tbody get's hidden behind the fixed thead.

So I add padding to the tbody, and this works in FireFox, Opera, Chrome but not IE?

How do I fix this?

Thanks,
1DMF.

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
well I found a resolve, by ignoring sematics and creating two tables, one with just headings that is position:fixed and a second with the table row data with the padding applied.

not great but it works, so hey ho!

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top