'How to right align text in Dash Input Select component with CSS-style?

I am trying to right align the text in Dash Bootstrap Input Select component. Adding CSS-style: text-align; right does not work (see below):

import dash_bootstrap_components as dbc

select = dbc.Select(
    id="select",
    options=[
        {"label": "Option 1", "value": "1"},
        {"label": "Option 2", "value": "2"},
    ],
    style={
        'text-align': 'right',
           }

)

returning (with text aligned to the left as default). What am I missing?: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source