By using CSS. You don't have to add a class to each item, you can use
child selectors for
select
and
option
, only only the parent's part of selector can come with a class:
https://developer.mozilla.org/en-US/docs/Web/CSS/Child_selectors[
^].
The style property you can use would be
padding
, or
margin
. Please try; this is pretty simple.
(Did I have to explain that the "list box" is rendered on client side as
select
element with
option
elements? :-))
—SA