You can manually escape ">" with ">". A more generic approach is to escape your CSS with ..EscapeHTML().