code_pro
03-12-2009, 01:30 AM
Hi frns
I am trying to create scrolling table inside <div> tag,like this :
<div align = "left" style=" max-width:850px; width: expression(this.width > 850 ? 850 : true);max-height:600px; height: expression(this.height > 600 ? 600 : true); overflow:auto; border:0px;">
<table align ="center"><tr> <td id = "divHolder"> </td > </tr>
</table>
</div>
My this table will be populated dynamically.Otherwise its working fine,but I want to make it independent of pixels ,like 850px or 600px which I am hard coding.Due to these pixels,the size of scroll appears differently on different screens.Can somebody plz tell,how to make it screen dependent rather than pixels dependent?
Thnx
I am trying to create scrolling table inside <div> tag,like this :
<div align = "left" style=" max-width:850px; width: expression(this.width > 850 ? 850 : true);max-height:600px; height: expression(this.height > 600 ? 600 : true); overflow:auto; border:0px;">
<table align ="center"><tr> <td id = "divHolder"> </td > </tr>
</table>
</div>
My this table will be populated dynamically.Otherwise its working fine,but I want to make it independent of pixels ,like 850px or 600px which I am hard coding.Due to these pixels,the size of scroll appears differently on different screens.Can somebody plz tell,how to make it screen dependent rather than pixels dependent?
Thnx