Hi
I have below code & values are appearing on right side. Can it be done on left side. In same class class="form-control"
Trying like this but not working - class="form-control left:0"
/forums/uploadfile/f61a1a/04022023111932AM/DropDown.jpg
Thanks
Ramco RamcoPosted Apr 2, 2023, 2:37 PM
Hi Tuhin
Dropdown is in Table footer
Thanks
Ramco RamcoPosted Apr 2, 2023, 2:32 PM
still not working
Thanks
Tuhin PaulPosted Apr 2, 2023, 2:27 PM
Not working the nare you gereting any error ?
Ramco RamcoPosted Apr 2, 2023, 2:09 PM
Hi Tuhin
not still working
Thanks
Ramco RamcoPosted Apr 2, 2023, 2:04 PM
Hi Tuhin
Can u pls explain with code
Thanks
Tuhin PaulPosted Apr 2, 2023, 2:04 PM
the CSS rule .form-control select has a margin-left property set to -50px, which might be causing the issue with the dropdown list. Instead of using a negative margin to position the select element, you can try using padding or margin on the container element to achieve the desired layout.
In this updated code, the select element within the DropDownList control is given the "form-control" class using the CssClass attribute. The negative margin rule is replaced with a padding-left rule on the container element (.col-md-6), and the width of the DropDownList control is set to 100% to fill its container.
Tuhin PaulPosted Apr 2, 2023, 2:02 PM
I think you are trying to style the select element within the DropDownList control using the CSS rule .form-control select, but the select element does not have the form-control class applied to it. To apply this class to the select element, you can add the CssClass attribute to the DropDownList control and set its value to "form-control".
Ramco RamcoPosted Apr 2, 2023, 12:51 PM
Hi Rajkiran
I have used below but not working
Thanks
Rajkiran SwainPosted Apr 2, 2023, 12:02 PM
In the example above, we added the
float-leftclass to theclassattribute of theDropDownListcontrol. This class contains the following CSS code:This will make the
DropDownListfloat to the left side of its container. Also, note that we removed theleft:0property from theclassattribute, as it is not necessary to achieve the desired effect.