Best method to fix the position of table cells to align with specific TH offset

109 views Asked by At

I am new to programming but am trying to make a table like a TV EPG guide,say the has 8pm,9pm,10

I need the TD cells to generate dynamically,and create each cell,at the correct position,a show starts at 8.30,the cell would start halfway between 8 and 9

I am currently using CSS

   {
position:fixed;
left:XXpx;
right:XXpx;
}

with jquery element offset position

Is there a better way of achieving this?

There is an old example from 2012 on here that says to use the above method,when I use Firebug it says the code has a "Deprication" alert,so I guess theres a more modern technique?

0

There are 0 answers