all css rules to style attribute