import re


def convert_to_class(name):
    """Converts a section name to a CSS class.

    Args:
      name: (string) The section name.

    Returns:
      Returns a CSS class (string) of the section name.
    """
    return re.sub(r"\s", "-", name.lower())