View Full Version : Get Selected Cells HTML Element

21 Jan 2011, 2:54 AM
I am in the process of making a custom grid with some spreadsheet functionality and have a little problem trying to get the selected cell's HTML element to be able to adjust the styles.

I want to be able to replace the default blue highlight when selected, and replaced with the more "excel" idea of a black line around the cell. The problem is that if I have a 2px border, then every other cell will be pushed 4px to the right and 4px down. Therefore I want to adjust the height and width by 4px on click, then putting it back when it is unselected.

Any ideas?

I would also appreciate any help with making a grid into a spreadsheet, I have seen a couple of similar concepts made before.