Deducting taxes from salary components caluclated on gross salary

hello ,
please advise if there is a way to deduct taxes from specific salary components from Gross rather than net salary .many thanks