diff --git a/docs/examples/styles/margin.css b/docs/examples/styles/margin.css index e1b01fa03..296a88174 100644 --- a/docs/examples/styles/margin.css +++ b/docs/examples/styles/margin.css @@ -3,8 +3,8 @@ Screen { color: black; } -Static { - margin: 4 8; - background: blue 20%; +Label { + margin: 4 8; + background: blue 20%; border: blue wide; -} +} diff --git a/docs/examples/styles/margin.py b/docs/examples/styles/margin.py index 3e6129ead..7551d5865 100644 --- a/docs/examples/styles/margin.py +++ b/docs/examples/styles/margin.py @@ -1,5 +1,5 @@ from textual.app import App -from textual.widgets import Static +from textual.widgets import Label TEXT = """I must not fear. Fear is the mind-killer. @@ -12,7 +12,7 @@ Where the fear has gone there will be nothing. Only I will remain.""" class MarginApp(App): def compose(self): - yield Static(TEXT) + yield Label(TEXT) app = MarginApp(css_path="margin.css")