Generating CSS for ref.