Hi and welcome to the forum

Take a look at using "use formule"

=$D2<$C2 format fill read
new rule (use formula)...
=$D2>$C2 format fill green

If you want the entire row to be highlighted, select the entire range 1st, then apply the rules