Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

let me know the equvalent javascript code for

top: expression(this.offsetParent.scrollTop);

im trying to set the top of table row which(table) is inside div.

as this is not working in other browsers except in IE
Posted

You mean you have to align the top of the table to top of the div, is it?

The why need this expression, you can use

myTable.style.verticalAlign="top";<br />
 
Share this answer
 
not for table for header row inside table...
 
Share this answer
 
Comments
Radhakrishnan G. 12-Aug-10 5:49am    
You have to align text inside the row header??

give an id to your table row and use getElemnetById("myRow").style.verticalAlign="top";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900