Use two :not() selectors combined, thereby referring to elements that match both of them, i.e. to elements that match neither of the selectors used as operands of :not():
table.programs td:not(:first-child):not(:last-child)
Use two :not() selectors combined, thereby referring to elements that match both of them, i.e. to elements that match neither of the selectors used as operands of :not():
table.programs td:not(:first-child):not(:last-child)