diff --git a/py-polars/polars/dataframe/_html.py b/py-polars/polars/dataframe/_html.py
index dcd8449f9323..624ab83ed32f 100644
--- a/py-polars/polars/dataframe/_html.py
+++ b/py-polars/polars/dataframe/_html.py
@@ -159,8 +159,8 @@ class NotebookFormatter(HTMLFormatter):
def write_style(self) -> None:
style = """\