How can I center the text in a Dropdown List?

Hi,

I'm a beginner with Syncfusion.

I have started to learn Syncfusion components for Blazor.

I have the following layout

For the NumericTextBox I have changed the text alignment, font size and weight using the following CssClass

Now I would like to apply the same display properties to the DropDown List but I didn't succed.

How can I customize the text displayed il a DropDown List?



1 Reply

VJ Vinitha Jeyakumar Syncfusion Team January 18, 2022 12:09 PM UTC

Hi Bertrand,


Your requirement to customize the Dropdown list input field can be achieved by using the below CSS styles. please check the code,

Code snippet:
.e-ddl.e-input-group.e-control-wrapper .e-input {
        font-size: large;
        font-weight: bold;
        text-align: center;
    }

To change style and appearance of the Dropdown list , please check the below documentation,


Regards,
Vinitha



Loader.
Up arrow icon