Nice one. I was looking for this. I made a periodic table in the past but accidentally deleted it. I can't remember how I did it but I got a PHP script to display the periodic table properly using data from a db. I think I added the row number and column number to each entry then made a grid of table cells and displayed data only in the cells which matched the col and row num of one of the elements.