Border-subtitle-style¶
The border-subtitle-style style sets the text style of the border_subtitle.
Syntax¶
border-subtitle-style: <text-style>;
Example¶
The following examples demonstrates customization of the border color and text style rules.
from textual.app import App, ComposeResult
from textual.widgets import Label
class BorderTitleApp(App):
    CSS_PATH = "border_title_colors.tcss"
    def compose(self) -> ComposeResult:
        yield Label("Hello, World!")
    def on_mount(self) -> None:
        label = self.query_one(Label)
        label.border_title = "Textual Rocks"
        label.border_subtitle = "Textual Rocks"
if __name__ == "__main__":
    app = BorderTitleApp()
    app.run()
CSS¶
Python¶
See also¶
border-title-alignto set the title's alignment.border-title-colorto set the title's color.border-title-backgroundto set the title's background color.- 
border-title-styleto set the title's text style. - 
border-subtitle-alignto set the sub-title's alignment. border-subtitle-colorto set the sub-title's color.border-subtitle-backgroundto set the sub-title's background color.border-subtitle-styleto set the sub-title's text style.