HTML
<div class="red">
<?php printf("- %d ". $maand ." & %d " . $dag , $months, $days); ?>
</div>
CSS
.red {
color: red;
}
The font
tag is deprecated in HTML5.
edit
Try this for your ternary if
:
<?(strtotime($date1) > strtotime($date2)) ? printf("%d " . $maand . " & %d " . $dag , $months, $days) : printf("<div class=\"red\">- %d ". $maand ." & %d " . $dag . "</div>" , $months, $days) . '' ?>