Depending on the block you may not need to resort to CSS
. You can hide things with capabilities. Also note that "students" only exist in a course context
, so if you're talking about students on the Home page, or on the dashboard
, there's no simple way of detecting them.