I have a dropdown list using a <select>
element. For where I place this dropdown list on the page, I only want that page's list affected by a style so I give a class of 'posts' on the select element.
In my style sheet, I have:
.posts select
{
margin-left: 40px
}
It does not work UNLESS I remove the .post. Why?
Here's the element:
<select class="form-control posts" (change)="reloadPosts({ userId: u.value })" #u>
<option value="">Select a user...</option>
<option *ngFor="#user of users" value="{{ user.id }}">
{{ user.name }}
</option>
</select>