Reputation: 979
I am using bootstrap input controls and trying to disable the border by setting it to 0px, but its not working.
I have seen a lot of posts here but none of them worked for me. I tried to use !important
and moved the css classes to the main style.css
file and again its not working.
<div class="form-group">
<select class="form-control" formControlName="manager" required #manager #manager (change)="selectedValueManager(manager.value)">
<option value="">choose manager</option>
<option *ngFor="let manager of this.flowManagers" value={{manager.id}}> {{manager.name}}</option>
</select>
<div class="invalid-feedback"></div>
</div>
css:
.form-group {
border-radius: 0px;
}
Upvotes: 0
Views: 1983
Reputation: 344
Please add this properties to remove border
border-color: transparent;
Upvotes: 0
Reputation: 1301
Make it more specific than bootstrap:
select.from-control {
border-radius:0;
}
Upvotes: 0
Reputation: 776
Do like below. Apply style to .form-control
class
.form-control {
border-radius: 0 !important;
}
Upvotes: 0
Reputation: 900
You should apply that rule on the .form-control
css class, and also make sure you load first the boostrap.css
and after that your styles.css
.form-control {
border-radius: 0;
}
Upvotes: 1