I am trying to change the background image of a glyphicon calendar with my own image. But when, after updating the image, I can’t change the parent class of the btn btn-default property to remove the extra padding in the button. Here my code looks like CSS:
.glyphicon-calendar{
background : url('../app/images/datePickerIcon.png') no-repeat;
padding: 3px 6px;
width:26px;
height:26px;
font-family: none;
font-size: 0;
vertical-align: top;
}
HTML: Date Picker Dynamically Generates Calendar Functionality
<div class="input-group">
<mydatepicker ng-model="nextDate" date-options="dateOptions"
opened="opened" name="nextDate" ng-pattern="datePattern" />
</div>
and in the code of the developer tools it looks like this:
<span class="input-group">
<button class="btn btn-default" ng-click="open($event)">
<i class="glyphicon glyphicon-calendar"></i>
</button>
</span>
in the browser it looks like this:

I need a conclusion, as without filling in the button. Thanks at Advance
source
share