White screen when attaching css to function.php

“White screen” generally means there is a PHP error preventing the page from being generated. You should check your WordPress error log (wp-content/debug.log by default) for any relevant errors.

Adding CSS code would not prevent the page from loading.