I need to change the color of a table cell when the mouse hovers over the left-most 10 pixels of the cell. Currently I have this:
$("#myTable table thead tr th:nth-child(3)").mouseover(function () {
$(this).css("background-color", "red");
});
$("#myTable table thead tr th:nth-child(3)").mouseout(function () {
$(this).css("background-color", "white");
});
This works for hovering over the whole element, but I need it to only happen when hovering over the left-most 10px of it.