Updated set_css so it can handle a dictionary of keys and values.