Hi,
I have a dcc.RangeSlider defined as below, I am struggling to adjust the padding.
dcc.RangeSlider(
id='years-selector',
min=min,
max=max,
step=1,
marks={
int(d[:4]) : d[:4] for d in dates
},
value=[min, max],
persistence=True,
persistence_type='session',
)
Although the RangeSlider component doesn’t seem to accept a style property, Chrome’s inspector suggests that somehow the padding is defined somewhere for the div and class that shares a name with my rangeslider ‘id’.
<div id="years-selector" class="years-selector" style="padding: 0px 25px 25px;">
By the way, adding className='years-selector'
to the component definition, and the following css in the asset folder didn’t seem to affect the div’s padding values above:
.years-selector {
padding-left:5 !important;
padding-bottom: 5 !important;
padding-right: 0;
padding-top: 5 !important;
}
Could anyone please suggest how to adjust the padding for a dcc.RangeSlider?
Thanks!