Hi
How to set font size , width etc for all dropdowns . All dropdowns are in tfoot.
Select Book
Select Session
Thanks
Deepak RawatPosted Apr 14, 2023, 2:19 PM
Hi try this method may it can help you.
Ramco RamcoPosted Apr 4, 2023, 3:21 AM
Hi Tuhi
Still not working. IN dropdown it is showing the same way as image attached
Thanks
Tuhin PaulPosted Apr 3, 2023, 6:17 PM
To set font size and width for all dropdowns in the table footer (
), you can use CSS to target all dropdowns in the footer and apply the desired styles.we're targeting all elements with the class form-control within the
tag using the tfoot .form-control selector. Then, we're setting the font-size and width properties to 14px and 200px, respectively.Tuhin PaulPosted Apr 3, 2023, 6:16 PM
Along with the existing CSS rules that set the font size and color of the DropDownList control, I have added two new rules to align the text of the dropdown values to the left. The first rule applies the text alignment to the DropDownList control itself, while the second rule applies it to each of its option elements.
Ramco RamcoPosted Apr 3, 2023, 5:56 AM
Hi Pasand
Issue i am facing is that it shows list on right side. When i select value does not shows up in dropdown . I ant that it should be left aligned. I have attached image also.
Thanks
Pasang TamangPosted Apr 3, 2023, 5:18 AM
Hi Ramco,
If you are using Boostrap then you should get desired design already. Please check this link as a reference https://getbootstrap.com/docs/4.1/components/forms/#sizing.
Regards,
Pasang
Ramco RamcoPosted Apr 3, 2023, 5:09 AM
Hi Pasand
It is working but the shape should appear like which i have shown in square or like where date is shown
Image attached
/forums/uploadfile/f61a1a/04032023050400AM/Format.png
Thanks
Pasang TamangPosted Apr 3, 2023, 4:40 AM
Hi,
You can add another class for your dropdown. And write CSS for that class. Please check below example.
Regards,
Pasang
Ramco RamcoPosted Apr 2, 2023, 3:34 AM
Hi
If already given class="form-control" , then what should be done
Thanks
Abhishek ChadhaPosted Apr 1, 2023, 6:55 PM
Put a class to listItem like -
and give a font property to this class like -