1

I have this code :

<select style="font-size:0.9em;" ng-model="course" ng-options="c.Id as c.Name for c in model.courses">
<option value="">--select--</option>

I need to add padding/margin for each of the options.

Is there a straight way of doing this ?

Mayuri
  • 37
  • 5
  • There is no way to adding padding/margin to the options. Alternatively could use a custom dropdown which can be created easily using [angular-bootstrap](http://angular-ui.github.io/bootstrap/). – Unknown User Sep 12 '14 at 07:44
  • hope this link will help you. http://stackoverflow.com/a/23906973/3940478 – Dale Sep 12 '14 at 07:44
  • @UnknownUser Thanks. Using angular-bootstrap dropdown. – Mayuri Sep 12 '14 at 07:58

1 Answers1

0

You can't do this because the select list is rendered by browser/os.

But you can use some third party plugin like Select2 (angularjs directive)

Marian Ban
  • 8,158
  • 1
  • 32
  • 45