generalizing basic css