Why won't IE honour the tbody padding-top ?
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
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