None of the specific conditionals in the resource you linked to will work and the reason they won't work is that CSS templates do not have the same parameters passed to them that normal templates do.
Specifically, it won't help the OP because there's no $visitor param available to CSS.