def colored_div(*spans, color=''):
    """Produce an HTML div box with color."""
    spans = '<br>'.join(str(item) for item in spans)
    div = (
        f'<div style="background:{color}; display:inline-block">'
        + spans
        + '</div>'
    )
    return div