0

I have a Select control. I want to add margin (or padding) in expanded items (expanded area) of select control.

$("<select style='outline:none;' name='MaxAcceptableName'
data-value-update='MaxAcceptableText' data-bind='text: MaxAcceptableText' id='MaxAcceptableId'></select > ")

This is how it looks right now

enter image description here

I tried adding padding, margin but directly applies for select control not for the UI after opening it. How can I add margin or padding in items and for bottom item as well so that it will good look.

R15
  • 13,982
  • 14
  • 97
  • 173
  • 2
    You can't style a ` – freedomn-m Feb 21 '23 at 12:49
  • Here's an existing question, but all answers are relatively old and there may be newer posibilities: https://stackoverflow.com/questions/1895476/how-do-i-style-a-select-dropdown-with-only-css – freedomn-m Feb 21 '23 at 12:54

0 Answers0