I try to apply a background color on a div, in a way the div is completely filled with the background.
I succesfully achieved it on Chrome, but have some issue with Firefox.
Here is my .html
:
<div class="col-sm-3 text-center">
<div class="to_be_filled" id="status-sessions">
<div class="background-icon">
</div>
<div class="row">
<div class="col-xs-6 text-right">
</div>
</div>
</div>
</div>
And my .css
.to_be_filled {
background: #fff;
background-size: contain;
-webkit-border-radius: .25em;
-moz-border-radius: .25em;
border-radius: .25em;
margin: 0 1em;
padding: 2em;
position: relative;
color: #929292;
}
On Chrome, the whole div is filled with a white background.
In Firefox, the white background filled the whole height of the div, but not the whole width.
How can i make Firefox to have the same behaviour as in Chrome?