<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def capitalize_float_margin(css_body):
 """Capitalize float and margin CSS property names """


    def _capitalize_property(match):
        return "{0}:{1}{2}".format(
            match.group("property").capitalize(),
            match.group("value"),
            match.group("terminator"),
        )

    return _lowercase_margin_float_rule.sub(_capitalize_property, css_body)